There's more...
Another parameter for the replication backlog is repl-backlog-ttl, which indicates, if all slaves get disconnected from the master, how long the master Redis instance will wait to release the memory of the backlog. The default value of this parameter is 3600s, which is generally not a problem since the backlog buffer is quite small compared to the Redis instance memory.
Apart from the backlog size, there are some other configurations you can tweak in order to get better replication performance in some cases. From the point of view of network transmission, you can use less bandwidth by tuning the parameter repl-disable-tcp-nodelay to yes. If set to yes, Redis will try to combine several small packets into one packet. This is ...
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