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 EAE11100A9 for ; Mon, 29 Dec 2014 20:52:50 +0000 (UTC) Received: (qmail 49784 invoked by uid 500); 29 Dec 2014 20:52:51 -0000 Delivered-To: apmail-aurora-reviews-archive@aurora.apache.org Received: (qmail 49742 invoked by uid 500); 29 Dec 2014 20:52:51 -0000 Mailing-List: contact reviews-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.incubator.apache.org Delivered-To: mailing list reviews@aurora.incubator.apache.org Received: (qmail 49724 invoked by uid 99); 29 Dec 2014 20:52:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2014 20:52:49 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Dec 2014 20:52:26 +0000 Received: (qmail 48758 invoked by uid 99); 29 Dec 2014 20:52:24 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2014 20:52:24 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C718E1D3B04; Mon, 29 Dec 2014 20:52:22 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5173645677599080814==" MIME-Version: 1.0 Subject: Re: Review Request 29464: Add option to override local scheduler address published into ZooKeeper From: "Steve Niemitz" To: "Aurora" , "Steve Niemitz" , "Kevin Sweeney" Date: Mon, 29 Dec 2014 20:52:22 -0000 Message-ID: <20141229205222.31226.77001@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Steve Niemitz" X-ReviewGroup: Aurora X-ReviewRequest-URL: https://reviews.apache.org/r/29464/ X-Sender: "Steve Niemitz" References: <20141229203607.31225.57961@reviews.apache.org> In-Reply-To: <20141229203607.31225.57961@reviews.apache.org> Reply-To: "Steve Niemitz" X-ReviewRequest-Repository: aurora X-Virus-Checked: Checked by ClamAV on apache.org --===============5173645677599080814== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Dec. 29, 2014, 8:36 p.m., Kevin Sweeney wrote: > > src/main/java/org/apache/aurora/scheduler/configuration/LocalServiceRegistryWithOverrides.java, line 39 > > > > > > have you run checkstyle? method names are lowerCamelCase Yeah, good catch, I'm still not out of C# world yet. checkstyleMain didn't pick this up though oddly enough. There are a couple other things it did though, new patch set coming up with those fixes. > On Dec. 29, 2014, 8:36 p.m., Kevin Sweeney wrote: > > src/main/java/org/apache/aurora/scheduler/configuration/LocalServiceRegistryWithOverrides.java, line 51 > > > > > > Why not ask for the IP address to advertise on the command-line? It looks like by the time this is called it's too late for us to do anything with a DNS resolution error. I'd rather publish the actual DNS name rather than the IP in this case (since the underlying IP could change over time). I agree though this should fail-fast at app start rather than the first time the service registry is used (which is also at startup, but it'll be more explicit the other way). > On Dec. 29, 2014, 8:36 p.m., Kevin Sweeney wrote: > > src/main/java/org/apache/aurora/scheduler/configuration/LocalServiceRegistryWithOverrides.java, line 21 > > > > > > Convention is to place CmdLine Args in Guice Modules (to separate wiring from implementation). Also, this value will need to be plumbed into the mesos Log somehow. Ok cool, I can make that change. - Steve ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29464/#review66297 ----------------------------------------------------------- On Dec. 29, 2014, 8:23 p.m., Steve Niemitz wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29464/ > ----------------------------------------------------------- > > (Updated Dec. 29, 2014, 8:23 p.m.) > > > Review request for Aurora. > > > Repository: aurora > > > Description > ------- > > I've added a new flag for the aurora scheduler, -dns_name_override which can override the scheduler server address published into ZK. > > This is useful for cases such as running the scheduler in EC2, where the autodetected local address is actual an interal IP and not the public address of the machine. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java 72c7545e7f16549f6a9ccb5fb74a06f154a7ea94 > src/main/java/org/apache/aurora/scheduler/configuration/LocalServiceRegistryWithOverrides.java PRE-CREATION > src/main/java/org/apache/aurora/scheduler/http/LeaderRedirect.java cf173850635572c0df38bdd5cb14de8ce2016bf7 > src/test/java/org/apache/aurora/scheduler/http/LeaderRedirectTest.java c3bf5ea4cbeaad03e187f84215b86531d55c25b3 > > Diff: https://reviews.apache.org/r/29464/diff/ > > > Testing > ------- > > > Thanks, > > Steve Niemitz > > --===============5173645677599080814==--