December 2023
Intermediate to advanced
464 pages
12h 35m
English
A monotonically increasing number indicating the generation of the server.
Also known as: Term
Also known as: Epoch
Also known as: Generation
In Leader and Followers setup, there is a possibility of the leader being temporarily disconnected from the followers. There might be a garbage collection pause in the leader process, or a temporary network disruption which disconnects the leader from the follower. In this case the leader process is still running, and after the pause or the network disruption is over, it will try sending replication requests to the followers. This is dangerous, as meanwhile the rest of the cluster might have selected a new leader and accepted requests from the client. It is important ...