> On Nov. 13, 2014, 2:07 a.m., Bill Farner wrote:
> > src/main/java/org/apache/aurora/scheduler/events/PubsubEventModule.java, 
> > line 93
> > <https://reviews.apache.org/r/27947/diff/1/?file=760831#file760831line93>
> >
> >     Given that we're moving from an effective "same thread executor" to 
> > async, i think we can get by with fewer knobs for now.  How about:
> >     
> >         Executors.newFixedThreadPool(
> >             PUBSUB_WORKER_THREADS.get(),
> >             ...

That was my first choice but ulimately decided in favor of the current approach 
to avoid a fixed memory tax of 1Mb X num_threads. With the current setting of 
500 that would result in a constant "waste" of 500MB of JVM heap even when 
there is no event pressure.


- Maxim


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


On Nov. 13, 2014, 1:12 a.m., Maxim Khutornenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/27947/
> -----------------------------------------------------------
> 
> (Updated Nov. 13, 2014, 1:12 a.m.)
> 
> 
> Review request for Aurora and Bill Farner.
> 
> 
> Bugs: AURORA-926
>     https://issues.apache.org/jira/browse/AURORA-926
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> Setting the max thread limit on AsyncEventBus.
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/scheduler/events/PubsubEventModule.java 
> 24cd750c676a280d1cc953c96df126f19fc478f2 
> 
> Diff: https://reviews.apache.org/r/27947/diff/
> 
> 
> Testing
> -------
> 
> ./gradlew -Pq build
> 
> 
> Thanks,
> 
> Maxim Khutornenko
> 
>

Reply via email to