Joseph Wu created MESOS-3044:
--------------------------------

             Summary: Deactivate slaves upon reaching a maintenance window
                 Key: MESOS-3044
                 URL: https://issues.apache.org/jira/browse/MESOS-3044
             Project: Mesos
          Issue Type: Task
          Components: master
            Reporter: Joseph Wu


After a maintenance window is reached, the slave should be deactivated to 
prevent further tasks from utilizing it.


* For slaves that have completely drained, simply deactivate the slave.  See 
Master::deactivate(Slave*).
* For tasks which have not explicitly declined the InverseOffers (i.e. they've 
accepted them or do not understand InverseOffers), send kill signals.  See 
Master::killTask
* If a slave has tasks that have declined the InverseOffers, do not deactivate 
the slave.

Possible test(s):
* SlaveDrainedTest
** Start master, slave.
** Set maintenance to now.
** Check that slave gets deactivated
* InverseOfferAgnosticTest
** Start master, slave, framework.
** Have a task run on the slave (ignores InverseOffers).
** Set maintenance to now.
** Check that task gets killed.
** Check that slave gets deactivated.
* InverseOfferAcceptanceTest
** Start master, slave, framework.
** Run a task on the slave.
** Set maintenance to future.
** Have task accept InverseOffer.
** Check task gets killed, slave gets deactivated.
* InverseOfferDeclinedTest
** Start master, slave, framework.
** Run task on slave.
** Set maintenance to future.
** Have task decline maintenance with reason.
** Check task lives, slave still active.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to