Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

REPLICATION.PAUSE

Last updated
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.

Simple string OK in RESP2 and RESP3. Without a license that includes replication: NOLICENSE replication requires a HotKV license. Contact sales@hotkv.com.

127.0.0.1:6379> REPLICATION.PAUSE
OK
127.0.0.1:6379> REPLICATION.INFO
1) "role"
2) "primary"
3) "state"
4) "paused"
5) "repl_offset"
6) (integer) 1849302
7) "connected_replicas"
8) (integer) 2

HotKV-only command.

REPLICATION.RESUME, REPLICATION.INFO