Promote a replica to master
RedisReplicationCommand
REPLICAOF NO ONEWhat it does
Breaks the node's replica link, turning it into a standalone master.
When to use it
When you want to promote a replica in a failover scenario.
Caution
After the promotion, manage the topology carefully so there is no data divergence (split-brain) with the old master.