2021-07-08 17:24:56 +08:00

8 lines
343 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

bind 0.0.0.0
port 9003
# 配置主节点地址至少需要2个哨兵节点同意才能判定主节点故障并进行故障转移
# 注意这里配置的域名会被动态修改为ip
sentinel monitor mymaster redis-main 6379 2
# 允许解析域名(如果上面一行要使用域名要设置此项为yes)
sentinel resolve-hostnames yes