February 2018
Intermediate to advanced
382 pages
11h 33m
English
When a slave instance is promoted to a master instance, other slaves have to resync from the new master. Prior to Redis 4.0, this process is a full resynchronization because master_replid changed on the master. Since Redis 4.0, the new master remembers the master_replid and offset from the old master and therefore can accept partial resynchronization requests from other slaves, even if the master_replid in the requests is different. Specifically, when master failover happens, on the new master, (master_replid; master_repl_offset+1) will be copied to (master_replid2; second_repl_offset).
Read now
Unlock full access