Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25EA9200BE2 for ; Thu, 1 Dec 2016 01:36:32 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 247A2160B19; Thu, 1 Dec 2016 00:36:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B4EC160B13 for ; Thu, 1 Dec 2016 01:36:31 +0100 (CET) Received: (qmail 23297 invoked by uid 500); 1 Dec 2016 00:36:30 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 23279 invoked by uid 99); 1 Dec 2016 00:36:30 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 00:36:30 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 0D84C2D8F68; Thu, 1 Dec 2016 00:36:30 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6665231223717393994==" MIME-Version: 1.0 Subject: Re: Review Request 54147: Added a server side component for the IOSwitchboard. From: Jie Yu To: Jie Yu Cc: Kevin Klues , mesos Date: Thu, 01 Dec 2016 00:36:30 -0000 Message-ID: <20161201003630.1642.39447@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Jie Yu X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/54147/ X-Sender: Jie Yu References: <20161130222612.1641.43036@reviews.apache.org> In-Reply-To: <20161130222612.1641.43036@reviews.apache.org> X-ReviewBoard-Diff-For: src/tests/containerizer/io_switchboard_tests.cpp Reply-To: Jie Yu X-ReviewRequest-Repository: mesos archived-at: Thu, 01 Dec 2016 00:36:32 -0000 --===============6665231223717393994== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/54147/#review157515 ----------------------------------------------------------- src/tests/containerizer/io_switchboard_tests.cpp (line 58) close this and stderrFd as well? - Jie Yu On Nov. 30, 2016, 10:26 p.m., Kevin Klues wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/54147/ > ----------------------------------------------------------- > > (Updated Nov. 30, 2016, 10:26 p.m.) > > > Review request for mesos and Jie Yu. > > > 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 > ----- > > 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 > > --===============6665231223717393994==--