Skip to content

Commit

Permalink
rebalance: add start log
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Chernin <[email protected]>
  • Loading branch information
leonidc committed Jan 2, 2025
1 parent 985e750 commit 25ff5ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control/rebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def __init__(self, gateway_service):
"max_ns_to_change_lb_grp",
8)
self.rebalance_event = threading.Event()
self.logger.info(f" Starting rebalance thread: period: {self.rebalance_period_sec},"
f" max number ns to move: {self.rebalance_max_ns_to_change_lb_grp}")
self.auto_rebalance = threading.Thread(target=self.auto_rebalance_task,
daemon=True, args=(self.rebalance_event,))
self.auto_rebalance.start() # start the thread
Expand Down

0 comments on commit 25ff5ba

Please sign in to comment.