Return-Path: X-Original-To: apmail-aurora-reviews-archive@minotaur.apache.org Delivered-To: apmail-aurora-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21F7518F7B for ; Mon, 28 Dec 2015 20:32:55 +0000 (UTC) Received: (qmail 23736 invoked by uid 500); 28 Dec 2015 20:32:55 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 23673 invoked by uid 500); 28 Dec 2015 20:32:55 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 23659 invoked by uid 99); 28 Dec 2015 20:32:54 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Dec 2015 20:32:54 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id DFE52296AB2; Mon, 28 Dec 2015 20:32:53 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7318414435906439598==" MIME-Version: 1.0 Subject: Re: Review Request 40922: Thermos: Add ability to specify process outputs destination From: "Martin Hrabovcin" To: "John Sirois" Cc: "Stephan Erb" , "Martin Hrabovcin" , "Aurora" Date: Mon, 28 Dec 2015 20:32:53 -0000 Message-ID: <20151228203253.4181.25169@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Martin Hrabovcin" X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/40922/ X-Sender: "Martin Hrabovcin" References: <20151225101020.663.90190@reviews.apache.org> In-Reply-To: <20151225101020.663.90190@reviews.apache.org> Reply-To: "Martin Hrabovcin" X-ReviewRequest-Repository: aurora --===============7318414435906439598== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Dec. 25, 2015, 10:10 a.m., Stephan Erb wrote: > > I will implemnet all recommended changes. > On Dec. 25, 2015, 10:10 a.m., Stephan Erb wrote: > > src/main/python/apache/thermos/core/process.py, line 62 > > > > > > `mixed` does somewhat imply that some bits go there, some other there. `both` would be more precise. > > > > However, I can also envision that we might have something like `syslog` in the future. So, maybe specifying those as a list of applicable options would be easier to extend? The `none` case would then be an empty list. > > > > What do you think? I will update this to `both`. Main motivation for this patch was to get stdout/stderr to `console` output. I can see the value of different logging plugins but I'd leave this tools designed specifically for that purpose. With `console` and `file` support you can use `docker` and its logging drivers (https://docs.docker.com/engine/reference/logging/overview/) or tools like `fluentd` (http://www.fluentd.org/) which can read files, process messages and forward them to any output, including syslog. > On Dec. 25, 2015, 10:10 a.m., Stephan Erb wrote: > > src/main/python/apache/thermos/core/process.py, line 61 > > > > > > I'd find `console` more obvious than `stream`. What do you think? I agree! Initially I've googled for common name for stdout/stderr and I've found https://en.wikipedia.org/wiki/Standard_streams - Martin ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40922/#review111888 ----------------------------------------------------------- On Dec. 23, 2015, 5:39 p.m., Martin Hrabovcin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40922/ > ----------------------------------------------------------- > > (Updated Dec. 23, 2015, 5:39 p.m.) > > > Review request for Aurora and John Sirois. > > > Bugs: AURORA-1548 > https://issues.apache.org/jira/browse/AURORA-1548 > > > Repository: aurora > > > Description > ------- > > This patch will provide way to **optionally** specify running process outputs destination. Implementation was built on top of https://reviews.apache.org/r/30695/ > > **What was changed:** > > New `destination` parameter is available on global cluster level and also on each `Process` level. Possible options are `file` (default), `stream` to parent process stdout/stderr, `mixed` will split output to files and stream and finally `none` to discard any logs produced by running process. > > > Diffs > ----- > > NEWS ebfc3a6 > docs/configuration-reference.md cf63cfa > docs/deploying-aurora-scheduler.md 73b2e04 > src/main/python/apache/aurora/executor/bin/thermos_executor_main.py 7b7ef4b > src/main/python/apache/aurora/executor/thermos_task_runner.py 25fcca2 > src/main/python/apache/thermos/config/schema_base.py 5552108 > src/main/python/apache/thermos/core/process.py 8efdfdc > src/main/python/apache/thermos/core/runner.py 11c06a8 > src/main/python/apache/thermos/runner/thermos_runner.py a36bd2a > src/test/python/apache/thermos/core/test_process.py 261371d > > Diff: https://reviews.apache.org/r/40922/diff/ > > > Testing > ------- > > Unit test coverage is provided for new functionality. > > I did also manual testing with mesos/docker and I made sure that logs are being written to expected files and also same output gets to docker daemon. > > > Thanks, > > Martin Hrabovcin > > --===============7318414435906439598==--