make slaves not getting tasks anymore

2015-12-30 Thread Mike Michel
Hi, i need to update slaves from time to time and looking for a way to take them out of the cluster but without killing the running tasks. I need to wait until all tasks are done and during this time no new tasks should be started on this slave. My first idea was to set a constraint "status:onl

Re: make slaves not getting tasks anymore

2015-12-30 Thread Dick Davies
It sounds like you want to use checkpointing, that should keep the tasks alive as you update the mesos slave process itself. On 30 December 2015 at 11:43, Mike Michel wrote: > Hi, > > > > i need to update slaves from time to time and looking for a way to take them > out of the cluster but without

Re: make slaves not getting tasks anymore

2015-12-30 Thread Klaus Ma
Hi Mike, Which framework are you using? How about Maintenance's scheduling feature? My understanding is that framework show not dispatch task to the maintenance agent; so Operator can wait for all tasks finished before taking any action. For "When maintenance is triggered by the operator", it's u

Re: make slaves not getting tasks anymore

2015-12-30 Thread Shuai Lin
> > I need to wait until all tasks are done and during this time no new tasks > should be started on this slave This is exactly what maintenance mode is designed for. But to achieve this, it requires the cooperation of the framework. When the operator adds a maintenance schedule for a slave, mes

Re: make slaves not getting tasks anymore

2015-12-30 Thread Jeremy Olexa
e job termination Of course, there is also satellite, which does all this for you :) https://github.com/twosigma/satellite/ Hope that helps, -Jeremy From: Mike Michel Sent: Wednesday, December 30, 2015 5:43 AM To: user@mesos.apache.org Subject: make slave

AW: make slaves not getting tasks anymore

2015-12-30 Thread Mike Michel
@mesos.apache.org Betreff: Re: make slaves not getting tasks anymore Hi Mike, Which framework are you using? How about Maintenance's scheduling feature? My understanding is that framework show not dispatch task to the maintenance agent; so Operator can wait for all tasks finished before takin

AW: make slaves not getting tasks anymore

2015-12-30 Thread Mike Michel
Whitelist seems to be the best option right now. I will try that. thanks Von: Jeremy Olexa [mailto:jol...@spscommerce.com] Gesendet: Mittwoch, 30. Dezember 2015 17:22 An: user@mesos.apache.org Betreff: Re: make slaves not getting tasks anymore Hi Mike, Yes, there is another way