You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Jungtaek Lim (JIRA)" <ji...@apache.org> on 2015/06/10 22:41:00 UTC

[jira] [Comment Edited] (STORM-861) Rebalance REST API : "executors" in rebalanceOptions doesn't seem to be reflected while rebalancing

    [ https://issues.apache.org/jira/browse/STORM-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581045#comment-14581045 ] 

Jungtaek Lim edited comment on STORM-861 at 6/10/15 8:40 PM:
-------------------------------------------------------------

Yeah, you're right. I couldn't think about testing it to decrease parallelism.
Below operation changes components' parallelism successfully. (decrease parallelism by 1)
{noformat}
curl -X POST -H "Content-Type: application/json" -d '{"rebalanceOptions": {"numWorkers": 2, "executors": {"wordGenerator": 1, "counter": 1, "intermediateRanker": 1}}}' http://localhost:8080/api/v1/topology/production-topology-4-1433968516/rebalance/50
{noformat}

Sorry for not testing well. Not an issue.


was (Author: kabhwan):
Yeah, you're right. I couldn't think about testing it to decrease parallelism.
Below operation changes components' parallelism successfully.
{noformat}
curl -X POST -H "Content-Type: application/json" -d '{"rebalanceOptions": {"numWorkers": 2, "executors": {"wordGenerator": 1, "counter": 1, "intermediateRanker": 1}}}' http://localhost:8080/api/v1/topology/production-topology-4-1433968516/rebalance/50
{noformat}

Sorry for not testing well. Not an issue.

> Rebalance REST API : "executors" in rebalanceOptions doesn't seem to be reflected while rebalancing
> ---------------------------------------------------------------------------------------------------
>
>                 Key: STORM-861
>                 URL: https://issues.apache.org/jira/browse/STORM-861
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Jungtaek Lim
>            Priority: Minor
>
> There's one topology in cluster, and it is storm.starter.RollingTopWords from storm-starter.
> https://github.com/apache/storm/blob/master/examples/storm-starter/src/jvm/storm/starter/RollingTopWords.java
> I just ran rebalance via REST API, and found something is not working properly.
> {noformat}
> curl -X POST -H "Content-Type: application/json" -d '{"rebalanceOptions": {"numWorkers": 2, "executors": {"wordGenerator": 10, "counter": 7, "intermediateRanker": 10}}}' http://localhost:8080/api/v1/topology/production-topology-4-1433927082/rebalance/50
> {noformat}
> It changes number of workers to 2, but it doesn't change any components'  executor count.
> Sample of rebalance REST API from document is here.
> {noformat}
> curl  -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST  
> -H "Content-Type: application/json" 
> -d  '{"rebalanceOptions": {"numWorkers": 2, "executors": { "spout" : "5", "split": 7, "count": 5 }}, "callback":"foo"}' 
> http://localhost:8080/api/v1/topology/wordcount-1-1420308665/rebalance/0
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)