How it works...
In the Setting up Redis replication recipe, we learned that after processing write commands, the master will then send them to its slaves in order to have them synchronized with the master. From the master's point of view, to tell whether slaves are still alive, the master sends a PING at a predefined interval. You can adjust this interval by setting the configuration repl-ping-slave-period in the configuration file or from redis-cli. The default value of the ping interval is 10 s. From the slave's point of view, one slave sends REPLCONF ACK {offset} every second to report its replication offset. For both PING and REPLCONF ACK, there is a timeout specified by repl-timeout. The default value of the replication timeout is 60 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access