REPLICAOF

    The command can change the replication settings of a replica on the fly.

    If a server is already a replica of some master, hostname port will stop the replication against the old server and start the synchronization against the new one, discarding the old dataset.

    Simple string reply

    1. dragonfly> REPLICAOF 127.0.0.1 6799