redis哨兵群问题

[img]http://dl2.iteye.com/upload/attachment/0112/6105/b6de458e-b20b-3f94-8012-f86e4d9cfa5d.png[/img]
现在局域网下已经有了一个哨兵群了,我要新建一个。问题是我这边的master一直跑去隔壁哨兵群当slave了,真是搞死我了。
据我所查是因为我的redis订阅了__sentinel__:hello的默认频道,这样隔壁哨兵群的主机会发送消息到我的master redis重写我的config并且slaveof到隔壁master,我想问问大神是怎么解决的?

4643:M 25 Jan 15:45:44.982 - 13 clients connected (0 slaves), 2130656 bytes in use
4643:S 25 Jan 15:45:47.427 * SLAVE OF 192.168.31.222:6379 enabled (user request from 'id=47 addr=192.168.31.222:38536 fd=12 name=sentinel-41ba1490-cmd age=321 idle=0 flags=x db=0 sub=0 psub=0 multi=3 qbuf=0 qbuf-free=32768 obl=36 oll=0 omem=0 events=rw cmd=exec')
4643:S 25 Jan 15:45:47.430 # CONFIG REWRITE executed with success.
4643:S 25 Jan 15:45:47.452 - Accepted 192.168.31.123:48841
4643:S 25 Jan 15:45:47.453 - Accepted 192.168.31.220:35314
4643:S 25 Jan 15:45:47.474 - Accepted 192.168.31.121:60501
4643:S 25 Jan 15:45:47.504 - Accepted 192.168.31.221:36368
4643:S 25 Jan 15:45:47.513 - Accepted 192.168.31.122:58782
4643:S 25 Jan 15:45:48.006 * Connecting to MASTER 192.168.31.222:6379
4643:S 25 Jan 15:45:48.006 * MASTER <-> SLAVE sync started
4643:S 25 Jan 15:45:48.007 * Non blocking connect for SYNC fired the event.
4643:S 25 Jan 15:45:48.009 * Master replied to PING, replication can continue...
4643:S 25 Jan 15:45:48.012 * Partial resynchronization not possible (no cached master)
4643:S 25 Jan 15:45:48.015 * Full resync from master: 5c9e8405681d94f456c85b2ce4b5fca9bb336b62:52948302
4643:S 25 Jan 15:45:48.102 * MASTER <-> SLAVE sync: receiving 690458 bytes from master
4643:S 25 Jan 15:45:48.162 * MASTER <-> SLAVE sync: Flushing old data
4643:S 25 Jan 15:45:48.162 * MASTER <-> SLAVE sync: Loading DB in memory
4643:S 25 Jan 15:45:48.171 * MASTER <-> SLAVE sync: Finished with success
4643:S 25 Jan 15:45:48.171 * Background append only file rewriting started by pid 4706
4643:S 25 Jan 15:45:48.222 * AOF rewrite child asks to stop sending diffs.
4706:C 25 Jan 15:45:48.222 * Parent agreed to stop sending diffs. Finalizing AOF...
4706:C 25 Jan 15:45:48.222 * Concatenating 0.00 MB of AOF diff received from parent.
4706:C 25 Jan 15:45:48.222 * SYNC append only file rewrite performed
4706:C 25 Jan 15:45:48.222 * AOF rewrite: 0 MB of memory used by copy-on-write
4643:S 25 Jan 15:45:48.308 * Background AOF rewrite terminated with success
4643:S 25 Jan 15:45:48.308 * Residual parent diff successfully flushed to the rewritten AOF (0.00 MB)
4643:S 25 Jan 15:45:48.308 * Background AOF rewrite finished successfully
4643:S 25 Jan 15:45:48.309 - Background AOF rewrite signal handler took 736us
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值