2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 10:39:23 +00:00

Have a rebalance shortly after becoming leader

This will handle startup and takeover when the current leader dies.
This commit is contained in:
Jarrod Johnson 2021-01-08 16:15:11 -05:00
parent 086ce9823b
commit 5812a0eef6

View File

@ -569,6 +569,7 @@ def become_leader(connection):
if dronecandidate in skipem or member == myname:
continue
eventlet.spawn_n(try_assimilate, dronecandidate)
schedule_rebalance()
def startup():