You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by Egor Pahomov <pa...@gmail.com> on 2014/07/17 14:01:49 UTC

Gang scheduling.

Hi, I'm looking for library, which will allow me using gang scheduling in
yarn. I've read Twill code, but I couldn't find even creation of multiple
containers(not just one). Is this framework is right choice for my needs?

-- 



*Sincerely yoursEgor PakhomovScala Developer, Yandex*

Re: Gang scheduling.

Posted by Alvin Wang <al...@continuuity.com>.
Using TwillApplication (instead of TwillRunnable), it's possible to run
TwillRunnables with multiple instances and also multiple groups of
TwillRunnables. Unfortunately, there isn't actually an example of this in
the twill-examples module (sorry).

Anyway, running this TwillApplication would run 4 containers for
HelloWorldRunnable and 2 containers for HelloWorld2Runnable:

public class HelloWorldApplication implements TwillApplication {

  @Override
  public TwillSpecification configure() {
    return TwillSpecification.Builder.with()
      .setName("HelloWorld")
      .withRunnable()
      .add("hello1", new HelloWorldRunnable(),
ResourceSpecification.Builder.with()
        .setVirtualCores(2)
        .setMemory(2, ResourceSpecification.SizeUnit.MEGA)
        .setInstances(4).build())
      .noLocalFiles()
      .add("hello2", new HelloWorld2Runnable(),
ResourceSpecification.Builder.with()
        .setVirtualCores(2)
        .setMemory(2, ResourceSpecification.SizeUnit.MEGA)
        .setInstances(2).build())
      .noLocalFiles()
      .anyOrder()
      .build();
  }
}


On Thu, Jul 17, 2014 at 5:01 AM, Egor Pahomov <pa...@gmail.com>
wrote:

> Hi, I'm looking for library, which will allow me using gang scheduling in
> yarn. I've read Twill code, but I couldn't find even creation of multiple
> containers(not just one). Is this framework is right choice for my needs?
>
> --
>
>
>
> *Sincerely yoursEgor PakhomovScala Developer, Yandex*
>

Re: Gang scheduling.

Posted by Steve Loughran <st...@hortonworks.com>.
There's actually a JIRA to add this to YARN,
https://issues.apache.org/jira/browse/YARN-624  ...it really does need to
be done at the scheduler layer to prevent deadlocks...those are most likely
in smaller clusters where resource availability/turnover is lower


On 17 July 2014 13:01, Egor Pahomov <pa...@gmail.com> wrote:

> Hi, I'm looking for library, which will allow me using gang scheduling in
> yarn. I've read Twill code, but I couldn't find even creation of multiple
> containers(not just one). Is this framework is right choice for my needs?
>
> --
>
>
>
> *Sincerely yoursEgor PakhomovScala Developer, Yandex*
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.