[TACHYON-180] Added support for multiple workers on the same node, and a...

...dded a utility script for launching multiple workers
Only one master info ever so doesn't buy anything
On Oct 26, 2014 10:40 PM, "Henry Saputra" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/master/MasterInfo.java:
>
> > @@ -271,6 +273,11 @@ public void run() {
> >    private final ExecutorService mRecomputeExecutor = Executors.newFixedThreadPool(1,
> >        new ThreadFactoryBuilder().setNameFormat("recompute-scheduler-%d").build());
> >
> > +  /**
> > +   * Used for host selection when there are multiple works on the same host.
> > +   */
> > +  private final Random mRandom = new Random();
>
> Since java.util.Random is thread safe maybe we could just use static here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/472/files#r19389055>.
>