Redis - Promoting a slave to master manually

前端 未结 3 1275
伪装坚强ぢ
伪装坚强ぢ 2021-02-19 08:02

Suppose I have [Slave IP Address] which is the slave of [Master IP Address].

Now my master server has been shut down, and I need to set this slave to be master MANUALLY

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 08:34

    it depends, if you are in a cluster you will be better using the fail over. You will need to use the force option in the command

    http://redis.io/commands/cluster-failover

提交回复
热议问题