Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xindoo
redis
提交
23023fc6
R
redis
项目概览
xindoo
/
redis
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
redis
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
23023fc6
编写于
7月 25, 2012
作者:
M
mrb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some cleanup in sentinel.conf
上级
9e5bef38
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
3 deletion
+11
-3
sentinel.conf
sentinel.conf
+11
-3
未找到文件。
sentinel.conf
浏览文件 @
23023fc6
# Example sentinel.conf
# sentinel monitor <name> <ip> <port> quorum. Tells Sentinel to monitor this
# slave, and to consider it in O_DOWN (Objectively Down) state only if at
# least <quorum> sentinels agree.
# port <sentinel-port>
# The port that this sentinel instance will run on
port
26379
# sentinel monitor <name> <ip> <redis-port> <quorum>
# Tells Sentinel to monitor this slave, and to consider it in O_DOWN
# (Objectively Down) state only if at least <quorum> sentinels agree.
#
# Note: master name should not include special characters or spaces.
# The valid charset is A-z 0-9 and the three characters ".-_".
sentinel
monitor
mymaster
127
.
0
.
0
.
1
6379
2
# sentinel down-after-milliseconds <mymaster> <milliseconds>
# Number of milliseconds the master (or any attached slave or sentinel) should
# be unreachable (as in, not acceptable reply to PING, continuously, for the
# specified period) in order to consider it in S_DOWN state (Subjectively
...
...
@@ -16,15 +21,18 @@ sentinel monitor mymaster 127.0.0.1 6379 2
# Default is 30 seconds.
sentinel
down
-
after
-
milliseconds
mymaster
30000
# sentinel can-failover <mymaster> <yes|no>
# Specify if this Sentinel can start the failover for this master.
sentinel
can
-
failover
mymaster
yes
# sentinel parallel-syncs <mymaster> <numslaves>
# How many slaves we can reconfigure to point to the new slave simultaneously
# during the failover. Use a low number if you use the slaves to serve query
# to avoid that all the slaves will be unreachable at about the same
# time while performing the synchronization with the master.
sentinel
parallel
-
syncs
mymaster
1
# sentinel failover-timeout <mymaster> <milliseconds>
# Specifies the failover timeout in milliseconds. When this time has elapsed
# without any progress in the failover process, it is considered concluded by
# the sentinel even if not all the attached slaves were correctly configured
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录