aurora-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Niemitz" <st...@tellapart.com>
Subject Re: Review Request 29464: Add option to override local scheduler address published into ZooKeeper
Date Tue, 06 Jan 2015 21:49:53 GMT


> On Jan. 6, 2015, 9:46 p.m., Bill Farner wrote:
> > src/main/java/org/apache/aurora/scheduler/app/LocalServiceRegistryWithOverrides.java,
line 29
> > <https://reviews.apache.org/r/29464/diff/5/?file=804823#file804823line29>
> >
> >     There's some legacy baggage we could shed here if you're game - it should actually
simplify the code and your patch if so.
> >     
> >     `LocalServiceRegistry` was designed to be an abstract registry for a framework
we are moving away from, supporting an arbitrary number of services.  Since we now know we
_only_ have an HTTP port, we can remove the abstraction.
> >     
> >     I'm imagining this would mean extracting `JettyServerModule.HttpServerLauncher`
into its own source file, and addressing the TODO to use `AbstractIdleService`.  You would
then add a method like `public HostAndPort getListeningAddress()`, where the host part is
either the locally-resolved name or the override.
> >     
> >     That said - i understand if this yak shave exceeds your appetite, and would
accept `TODO(wfarner)`.
> >     
> >     Holding on your decision here before i review other code that might change based
on your path.

I'd prefer to keep this patch small so it doesn't get held up a lot.  However, I wouldn't
mind spending some time in the near future helping out with that refactor.


> On Jan. 6, 2015, 9:46 p.m., Bill Farner wrote:
> > src/main/java/org/apache/aurora/scheduler/app/LocalServiceRegistryWithOverrides.java,
line 33
> > <https://reviews.apache.org/r/29464/diff/5/?file=804823#file804823line33>
> >
> >     Prefer Optional<String> over nullable values.

:thumbsup:


- Steve


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/29464/#review66920
-----------------------------------------------------------


On Jan. 5, 2015, 6:47 p.m., Steve Niemitz wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/29464/
> -----------------------------------------------------------
> 
> (Updated Jan. 5, 2015, 6:47 p.m.)
> 
> 
> Review request for Aurora, Kevin Sweeney and Bill Farner.
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> I've added a new flag for the aurora scheduler, -hostname 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
> -----
> 
>   api/src/main/thrift/org/apache/thermos/thermos_internal.thrift 2c449a491bc5a8ac858ea6487e4cef0591f36f66

>   src/main/java/org/apache/aurora/scheduler/app/AppModule.java 360e161b6c3f6fd412c7e8de7f1b9a3af109593c

>   src/main/java/org/apache/aurora/scheduler/app/LocalServiceRegistryWithOverrides.java
PRE-CREATION 
>   src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java 72c7545e7f16549f6a9ccb5fb74a06f154a7ea94

>   src/main/java/org/apache/aurora/scheduler/http/LeaderRedirect.java cf173850635572c0df38bdd5cb14de8ce2016bf7

>   src/main/python/apache/aurora/executor/common/announcer.py 9e5bdc3885e76d8d03aa946caac9fdec7e1e9186

>   src/main/python/apache/aurora/executor/thermos_task_runner.py 5e4bd65537d186459003c0b9434f1b769e04f448

>   src/main/python/apache/thermos/bin/thermos_runner.py 647de2771f301b17de33d8b45198c211d2e84367

>   src/main/python/apache/thermos/core/runner.py 8aac6b50c66080abbb5308b367e9f74c487f42e3

>   src/test/java/org/apache/aurora/scheduler/app/LocalServiceRegistryWithOverridesTest.java
PRE-CREATION 
>   src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java 5e54364a49a208bd5f19b9649633dc8feca591e9

>   src/test/java/org/apache/aurora/scheduler/http/JettyServerModuleTest.java fbc3da3ab239b67ce3012d5a14fccd3ccb20a241

>   src/test/java/org/apache/aurora/scheduler/http/LeaderRedirectTest.java c3bf5ea4cbeaad03e187f84215b86531d55c25b3

>   src/test/python/apache/aurora/executor/common/test_announcer.py e329a90b8fba43611f5120e2a5ee82220dbe2a91

> 
> Diff: https://reviews.apache.org/r/29464/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Steve Niemitz
> 
>


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