REPLCONF

Since 1.1.0Server

Syntax

REPLCONF ...
  • Flags: admin
  • ACL categories: @admin, @dangerous, @server, @slow
  • Arity: -1

Sent by a replica to its master during replication, and not meant for applications. A replica sends it before PSYNC to give the port it listens on (listening-port) and what it can do (capa), then to acknowledge how far it has applied the master's stream (ACK offset): at once after applying commands, and about once a second when idle. WAIT counts these acknowledgements. A KiviDB master does not send GETACK.

Replication describes the whole exchange.

Reply

OK. On the replication link, ACK is read without a reply.

Examples

> REPLCONF listening-port 6381
OK
> REPLCONF capa eof capa psync2
OK