REPLICATION.PAUSE
REPLICATION.PAUSE
- Group
- Replication
- Complexity
- O(1)
- Arity
- 1 (exactly, counting the command name)
- Flags
- admin, slow
- HotKV Cloud
- Scale
- On-Premise
- requires the replication license feature
REPLICATION.PAUSE holds replication on this node, for example during
maintenance on the network or on a replica host.
- On a primary, writes keep being accepted and are queued for the replicas, but nothing is sent to them until you resume. Heartbeats and the acknowledgements WAIT asks for still go out.
- On a replica, the replica stops reading its primary’s stream; it serves its data as it was when paused.
REPLICATION.INFO shows state paused until
REPLICATION.RESUME. Pausing twice is
harmless. A long pause on a busy primary makes the replicas fall further
behind, so resume promptly.
Return value
Section titled “Return value”Simple string OK in RESP2 and RESP3. Without a license that includes
replication: NOLICENSE replication requires a HotKV license. Contact sales@hotkv.com.
Examples
Section titled “Examples”127.0.0.1:6379> REPLICATION.PAUSEOK127.0.0.1:6379> REPLICATION.INFO1) "role"2) "primary"3) "state"4) "paused"5) "repl_offset"6) (integer) 18493027) "connected_replicas"8) (integer) 2Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.