Project: mesos
Issue MESOS-2653: Slave should act on correction events from QoS controller
Slave might want to kill revocable tasks based on correction events from the QoS controller. The QoS controller communicates corrections through a stream (or process::Queue) to the slave which corrections it needs to carry out, in order to mitigate interference with production tasks. The correction is communicated through a message: [code] message QoSCorrection { enum CorrectionType { KillExecutor = 1 // KillTask = 2 // Resize, throttle task } optional string reason = X; optional ExecutorID executor_id = X; // optional TaskID task_id = X; } [/code] And the slave will setup a handler to process these events. Initially, only executor termination is supported and cause the slave to issue 'containerizer->destroy()'.
Story points: 8