如何让redis哨兵忘记主人?

weylhg0b  于 2021-06-08  发布在  Redis
关注(0)|答案(1)|浏览(324)

我的redis示例有很多问题-masters、slaves(旧安装)和sentinel。部分原因是我的redis主机和从机运行的是windows3.0.2版本,对此我无能为力。我也不能访问运行sentinel的unix设备上的root或redis帐户。
我可以使用redis cli连接到sentinel。
我怎样才能让我的一个哨兵忘记师父?我用monitor命令设法让它监视第二个主控器,但却找不到方法让它忘记它。
我没有权限,无法编辑配置文件。
我也找不到cli可用sentinel命令的列表。像config get这样的东西似乎不起作用。如果有人能给我一个链接,那就太棒了!

pw136qt2

pw136qt21#

我在哨兵中找到了命令

"MASTERS -- Show a list of monitored masters and their state.",
"MASTER <master-name> -- Show the state and info of the specified master.",
"REPLICAS <master-name> -- Show a list of replicas for this master and their state.",
"SENTINELS <master-name> -- Show a list of Sentinel instances for this master and their state.",
"IS-MASTER-DOWN-BY-ADDR <ip> <port> <current-epoch> <runid> -- Check if the master specified by ip:port is down from current Sentinel's point of view.",
"GET-MASTER-ADDR-BY-NAME <master-name> -- Return the ip and port number of the master with that name.",
"RESET <pattern> -- Reset masters for specific master name matching this pattern.",
"FAILOVER <master-name> -- Manually failover a master node without asking for agreement from other Sentinels",
"PENDING-SCRIPTS -- Get pending scripts information.", 
"MONITOR <name> <ip> <port> <quorum> -- Start monitoring a new master with the specified name, ip, port and quorum.",
"FLUSHCONFIG -- Force Sentinel to rewrite its configuration on disk, including the current Sentinel state.",
"REMOVE <master-name> -- Remove master from Sentinel's monitor list.",
"CKQUORUM <master-name> -- Check if the current Sentinel configuration is able to reach the quorum needed to failover a master "
"and the majority needed to authorize the failover.",
"SET <master-name> <option> <value> -- Set configuration paramters for certain masters.",
"INFO-CACHE <master-name> -- Return last cached INFO output from masters and all its replicas.",
"SIMULATE-FAILURE (crash-after-election|crash-after-promotion|help) -- Simulate a Sentinel crash.",
"HELP -- Prints this help.",

所以回答我的问题是:
移除哨兵<master\u name>

相关问题