You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Alessio Pagliari <pa...@i3s.unice.fr> on 2018/09/19 14:41:42 UTC

Modifying tasks number during scheduling

Hi guys,

I was playing a bit with a Custom Scheduler to understand how it works. 
I was wondering, is there a way to change the number of tasks for a certain component from the Scheduler class? Like for example if during the scheduling I'd like to increase or decrease the number of the spouts? 
I cannot find any API that allows me to do that.

I don’t like the idea of having to change the storm code in the deep, even because I don’t know Clojure and I’m not using 2.0.0 yet. 

Thank you,

Alessio


Re: Modifying tasks number during scheduling

Posted by Bobby Evans <bo...@apache.org>.
There is no way to do that currently.  It is not a trivial change because
it deals with how tuples are routed/etc and has a rather big impact on the
running topology as a whole.  There are also some issues with how we number
the tasks that would need to change to be able to support that feature.

It is doable, but would require the entire topology to be restarted to
work, and sadly we don't support that currently.

Thanks,

Bobby

On Wed, Sep 19, 2018 at 9:41 AM Alessio Pagliari <pa...@i3s.unice.fr>
wrote:

> Hi guys,
>
> I was playing a bit with a Custom Scheduler to understand how it works.
> I was wondering, is there a way to change the number of tasks for a
> certain component from the Scheduler class? Like for example if during the
> scheduling I'd like to increase or decrease the number of the spouts?
> I cannot find any API that allows me to do that.
>
> I don’t like the idea of having to change the storm code in the deep, even
> because I don’t know Clojure and I’m not using 2.0.0 yet.
>
> Thank you,
>
> Alessio
>
>