mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrei Budnik <>
Subject Review Request 70892: Added `/containerizer/debug` endpoint.
Date Wed, 19 Jun 2019 14:49:49 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos, Gilbert Song, James Peach, and Qian Zhang.

Bugs: MESOS-9841

Repository: mesos


This patch introduces an agent's `/containerizer/debug` endpoint,
which exposes the debug info related to Mesos containerizer.
Currently, this endpoint returns a list of pending futures related to
isolators or containerizer launcher. This endpoint is experimental,
and the format of its output may change over time.


  src/slave/http.hpp b8c83f1db95c2175bb94f6cd76cc2c58aa118c4e 
  src/slave/http.cpp 69e6d74e8b113cc6c937f47df8984ff9a63e5bb4 
  src/slave/slave.cpp 30039b0857a4d85b4b96fa95d7f8724d57cdec6e 



Manual testing.
1. Add `::sleep(5)` to the beginning of the `LinuxSeccompIsolatorProcess::prepare` method.
2. Rebuild Mesos and then spin up a local Mesos cluster.
3. Run simple task, e.g.:
./src/mesos-execute --master="`hostname`:5050" --name="test" --containerizer=mesos --command="sleep
4. In the parallel terminal session:
curl `hostname`:5051/containerizer/debug
# will return: {"pending":[["linux/seccomp::prepare",{"containerId":"<container id>"}]]}
5. After 5 seconds this endpoint returns an empty list of pending futures: `{"pending":[]}`

Unit tests: TBD in the following patches.


Andrei Budnik

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