You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Anand Mazumdar <ma...@gmail.com> on 2015/09/30 05:39:54 UTC

Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

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

Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.


Bugs: MESOS-3515
    https://issues.apache.org/jira/browse/MESOS-3515


Repository: mesos


Description
-------

This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.


Diffs
-----

  src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
  src/slave/paths.cpp fb77e64a6da017d8c9a00916d8935b670da0d374 

Diff: https://reviews.apache.org/r/38876/diff/


Testing
-------

make check


Thanks,

Anand Mazumdar


Re: Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

Posted by Guangya Liu <gy...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38876/#review101076
-----------------------------------------------------------

Ship it!


Ship It!

- Guangya Liu


On 九月 30, 2015, 3:39 a.m., Anand Mazumdar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38876/
> -----------------------------------------------------------
> 
> (Updated 九月 30, 2015, 3:39 a.m.)
> 
> 
> Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.
> 
> 
> Bugs: MESOS-3515
>     https://issues.apache.org/jira/browse/MESOS-3515
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.
> 
> 
> Diffs
> -----
> 
>   src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
>   src/slave/paths.cpp fb77e64a6da017d8c9a00916d8935b670da0d374 
> 
> Diff: https://reviews.apache.org/r/38876/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Anand Mazumdar
> 
>


Re: Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

Posted by Anand Mazumdar <ma...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38876/
-----------------------------------------------------------

(Updated Nov. 10, 2015, 2:22 p.m.)


Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.


Changes
-------

Address comments from BenM + Updated Description


Bugs: MESOS-3515
    https://issues.apache.org/jira/browse/MESOS-3515


Repository: mesos


Description (updated)
-------

This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.

-- Detailed Explanation of Changes ( not to be included in the commit message )
This marker file is used when recovering HTTP based executors (assuming framework checkpointing is enabled). Currently we support the following recovery options on the agent.

1. `--cleanup` : If `PID` marker file is not found, the current behavior is to directly destroy the container the executor was running in. With the help of this `HTTP` marker file, we can now check if the executor was connected via HTTP previously and if so, send it a `Event::SHUTDOWN` when it retries the `Subscribe` call.
2. `--reconnect` : If `PID` marker file is not found, the current behavior is to just `LOG` that we were not able to reconnect back to the executor. With the help of the `HTTP` marker file, we are able to correctly distinguish between the cases when a `PID` based executor failed to checkpoint its PID and it being an `HTTP` based executor. An example: https://github.com/apache/mesos/blob/master/src/slave/slave.cpp#L4177


Diffs (updated)
-----

  src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
  src/slave/paths.cpp aab7a4b63f0e7c2104097077369bb10bcd28c6a1 

Diff: https://reviews.apache.org/r/38876/diff/


Testing
-------

make check


Thanks,

Anand Mazumdar


Re: Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

Posted by Ben Mahler <be...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38876/#review105807
-----------------------------------------------------------

Ship it!


Thanks, just some small cleanups and we should be all set. Would you mind adding a bit more context to the description to explain more specifically what the marker is used for?


src/slave/paths.hpp (line 185)
<https://reviews.apache.org/r/38876/#comment164464>

    How about getExecutorHttpMarkerPath per my other suggestion?



src/slave/paths.cpp (line 53)
<https://reviews.apache.org/r/38876/#comment164463>

    How about just HTTP_MARKER_FILE and "http.marker" to make this more symettric with the libprocess pid file stuff?


- Ben Mahler


On Nov. 7, 2015, 1:07 a.m., Anand Mazumdar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38876/
> -----------------------------------------------------------
> 
> (Updated Nov. 7, 2015, 1:07 a.m.)
> 
> 
> Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.
> 
> 
> Bugs: MESOS-3515
>     https://issues.apache.org/jira/browse/MESOS-3515
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.
> 
> 
> Diffs
> -----
> 
>   src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
>   src/slave/paths.cpp fb77e64a6da017d8c9a00916d8935b670da0d374 
> 
> Diff: https://reviews.apache.org/r/38876/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Anand Mazumdar
> 
>


Re: Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

Posted by Anand Mazumdar <ma...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38876/
-----------------------------------------------------------

(Updated Nov. 7, 2015, 1:07 a.m.)


Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.


Changes
-------

Modified Deps


Bugs: MESOS-3515
    https://issues.apache.org/jira/browse/MESOS-3515


Repository: mesos


Description
-------

This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.


Diffs
-----

  src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
  src/slave/paths.cpp fb77e64a6da017d8c9a00916d8935b670da0d374 

Diff: https://reviews.apache.org/r/38876/diff/


Testing
-------

make check


Thanks,

Anand Mazumdar


Re: Review Request 38876: Added functionality to store a marker file to denote HTTP based executors

Posted by Anand Mazumdar <ma...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/38876/
-----------------------------------------------------------

(Updated Oct. 14, 2015, 12:08 a.m.)


Review request for mesos, Ben Mahler, Isabel Jimenez, and Vinod Kone.


Changes
-------

Corrected deps


Bugs: MESOS-3515
    https://issues.apache.org/jira/browse/MESOS-3515


Repository: mesos


Description
-------

This change adds the relevant functionality to `src/slave/paths.cpp/hpp` to store a marker file to denote HTTP based executors. We create the file when `checkpointing` is enabled as part of handling the `Subscribe` request. This is then used by the agent when recovering to ascertain if the executor was connected via `HTTP` before the agent restart.


Diffs
-----

  src/slave/paths.hpp f743fb4b1ca278fade9134e0ae8f6a6450d4a977 
  src/slave/paths.cpp fb77e64a6da017d8c9a00916d8935b670da0d374 

Diff: https://reviews.apache.org/r/38876/diff/


Testing
-------

make check


Thanks,

Anand Mazumdar