mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand Mazumdar" <mazumdar.an...@gmail.com>
Subject Re: Review Request 41275: Introduced a field for specifying grace period in Shutdown Event for Executor V1 API.
Date Mon, 14 Dec 2015 03:36:04 GMT


> On Dec. 13, 2015, 11:47 p.m., Qian Zhang wrote:
> > include/mesos/executor/executor.proto, line 96
> > <https://reviews.apache.org/r/41275/diff/1/?file=1160521#file1160521line96>
> >
> >     Just a quicky question, how will agent fill this field when it asks the executor
to shutdown? Is this something that executor itself can decide/configure? Or it is a per-slave
configuration via slave command line option?

The agent can fill this field when it asks the executor to shutdown i.e. ( via the `Event::Shutdown`
message ). The value of this field can be set via a slave command line option.

Currently, the existing executor library implementation just uses a hard-coded value https://github.com/apache/mesos/blob/master/src/exec/exec.cpp#L83


- Anand


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41275/#review110143
-----------------------------------------------------------


On Dec. 11, 2015, 11:51 p.m., Anand Mazumdar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/41275/
> -----------------------------------------------------------
> 
> (Updated Dec. 11, 2015, 11:51 p.m.)
> 
> 
> Review request for mesos, Ben Mahler and Vinod Kone.
> 
> 
> Bugs: MESOS-3550
>     https://issues.apache.org/jira/browse/MESOS-3550
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This change introduces a field `grace_period_seconds` that specifies the time an agent
would wait for the executor to terminate before forcefully destroying the container.
> 
> 
> Diffs
> -----
> 
>   include/mesos/executor/executor.proto 8f97ad8952b3156e9c299a5a297693c8d2ffccd4 
>   include/mesos/v1/executor/executor.proto 7eaa40bf38845befeba477d074396e7660a7b231 
> 
> Diff: https://reviews.apache.org/r/41275/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Anand Mazumdar
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message