Maintenance allows the slaves to be removed from the cluster for performing hardware upgrades or maintenance tasks, such as upgrading the operating system on the slave. Maintenance features in Mesos provide you with the ability to inform frameworks about the slave that wants to go through maintenance so that frameworks do not launch new tasks on the slave. Mesos can drain the tasks from a set of slaves and provides you with a way to notify the frameworks about future draining. This allows frameworks to take a preemptive action and smoother operation while draining.
The following are the steps to be performed by a slave for maintenance.
A slave who wants to be drained starts mentioning his intentions in the resource offers.
The Mesos master stops offering these resources to frameworks.
Mesos sends inverse offers to frameworks that are running tasks on the slave.
The framework on receiving...