[DocDB] Remove delay for load balancer after leader failover #24937
Labels
area/docdb
YugabyteDB core features
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
status/awaiting-triage
Issue awaiting triage
Jira Link: DB-14077
Description
The load balancer is not run for the first two minutes after a master leader becomes leader:
yugabyte-db/src/yb/master/catalog_manager_bg_tasks.cc
Lines 261 to 262 in b4b3a40
This delay is to wait for the new master leader to receive initial heartbeats from tablet servers. However when the persisted tablet server registry (#22925) is active the full membership of tablet servers in the cluster is available from the sys catalog so new master leaders no longer need to wait for so long. Instead a new master leader could start running the load balancer as soon as it has received a heartbeat from every tablet server considered
LIVE
in the registry. This should be a few seconds in the common case.Issue Type
kind/enhancement
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: