You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[server] Speed up controlled shutdown leader migration with batch ZooKeeper operations #3653
I searched in the issues and found nothing similar.
Motivation
During controlled shutdown, the coordinator needs to migrate bucket leaders away from the shutting-down tablet server.
Currently this path processes leader buckets one by one. Each bucket does synchronous ZooKeeper read/update of LeaderAndIsr, which becomes expensive when a tablet server owns many leader buckets. In one test with 10,131 leader buckets, controlled shutdown leader state changes took about 113s, while dispatching the batched tablet server requests only took 22ms. The main cost was ZooKeeper reads and updates.
We can improve this by batching LeaderAndIsr reads and updates for the controlled shutdown path, while preserving the existing leader election semantics. The optimized path should be limited to controlled shutdown, and should fall back to the existing individual update path when batch reads are incomplete or batch updates fail.
Activity