-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54147/
-----------------------------------------------------------
(Updated Nov. 30, 2016, 6:53 p.m.)
Review request for mesos and Jie Yu.
Changes
-------
Rebased on master.
Bugs: MESOS-6639
https://issues.apache.org/jira/browse/MESOS-6639
Repository: mesos
Description
-------
The 'IOSwitchboardServer' component encapsulates the server side logic
for redirecting the 'stdin/stdout/stderr' of a container to/from
multiple sources/targets. For now, we only redirect IO from a
container to the FDs supplied to us by the logger. We also send the
stdout/stderr data to a simple HTTP server that we launch on a unix
domain socket set up by the agent. Right now this server is just a
stub and doesn't do anything useful.
In future commits, we will expand this HTTP server to handle
'ATTACH_CONTAINER_INPUT' and 'ATTACH_CONTAINER_OUTPUT' calls on behalf
of a container. It will use the stdout/stderr messages passed to it to
and send that data over the response stream to any clients connected
with an 'ATTACH_CONTAINER_OUTPUT' call. Likewise, it will take any
input streamed in over a 'ATTACH_CONTAINER_INPUT' request and write it
to a container's stdin.
In 'local' mode, it will be run inside the agent itself. In
'non-local' mode, it will be run as an external process to survive
agent restarts.
Diffs (updated)
-----
src/Makefile.am d1cc1016b1642c504f52c27623bc12c7ddf07599
src/slave/containerizer/mesos/io/switchboard.hpp aaa3a35245b291f6003f519dbf8c0e1b82bc15fd
src/slave/containerizer/mesos/io/switchboard.cpp 25cbf2447d197134f0753b062b6f4130821005b2
src/tests/containerizer/io_switchboard_tests.cpp PRE-CREATION
Diff: https://reviews.apache.org/r/54147/diff/
Testing
-------
GTEST_FILTER="" make -j check
sudo src/mesos-tests
Thanks,
Kevin Klues
|