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.INFO

Last updated
REPLICATION.INFO
Group
Replication
Complexity
O(1)
Arity
1 (exactly, counting the command name)
Flags
admin, fast
HotKV Cloud
Scale
On-Premise
requires the replication license feature

REPLICATION.INFO gives a short summary of HotKV’s replication on this node: whether it is a primary or a replica, what its link is doing, how far its replication stream has got, and how many replicas are attached. For the full picture, see the replication section of INFO.

A flat array of field and value pairs, in RESP2 and RESP3:

Field Type Meaning
role Bulk string primary, replica or candidate
state Bulk string disconnected, connecting, syncing, streaming, paused (after REPLICATION.PAUSE) or electing
repl_offset Integer The replication offset: how far this node’s replication stream has got
connected_replicas Integer Replicas attached to this primary (0 on a replica)

Without a license that includes replication, the reply is NOLICENSE replication requires a HotKV license. Contact sales@hotkv.com.

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

HotKV-only command. Redis and Valkey report replication in INFO replication and ROLE, which HotKV also supports.

REPLICATION.PAUSE, REPLICATION.RESUME, REPLICATION.FAILOVER, INFO, ROLE