npawar opened a new pull request #3622: Start and stop ControllerPeriodicTasks 
based on leadership changes
URL: https://github.com/apache/incubator-pinot/pull/3622
 
 
   Currently the ControllerPeriodicTasks are scheduled on all controllers , 
everytime checking for leadership, and executing on their schedule if on a 
leader controller. This makes it difficult for us to control when the periodic 
tasks can start and stop. When lead controller changes, it is desirable that 
the services restart on the new leader, and gracefully shutdown immediately on 
the old leader.
   Introducing a ControllerPeriodicTasksScheduler and making it a subscriber of 
LeadershipChangeSubscriber. This will enable the scheduler to start the 
periodic tasks on a controller whenever it becomes leader, as well as stop the 
tasks on a controller who lost leadership.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to