Skip to content

Commit

Permalink
Merge pull request #1007 from leonidc/fix_start_rebalance_logs
Browse files Browse the repository at this point in the history
add logs for starting rebalance thread
  • Loading branch information
leonidc authored Jan 2, 2025
2 parents 985e750 + 25ff5ba commit 3a649fe
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 3a649fe

Please sign in to comment.