kevy4.0

FAILOVER

Planned zero-loss handover: quiesce writes, wait for the target replica to drain, promote it, and follow it.

FAILOVER host port [TIMEOUT ms] | ABORT
Group
Replication
Since
3.0.0
Arity
at least 3
Flags
write admin

Complexity

O(1) at the command — the handover runs in the background, polling the target until it is caught up

Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.

Redis compatibility

Differs

Redis's syntax is FAILOVER [TO host port [FORCE]] [ABORT] [TIMEOUT ms] with an optional target; kevy's is FAILOVER host port [TIMEOUT ms] | ABORT — the target is mandatory and positional, and the port given is the target's client port

See also

REPL.TOKENREPL.WAITREPLICAOFROLESLAVEOFWAIT

← All commands