`
橙臣1314
  • 浏览: 6325 次
社区版块
存档分类
最新评论

redis哨兵群问题

阅读更多

现在局域网下已经有了一个哨兵群了,我要新建一个。问题是我这边的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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics