Jungtaek Lim created STORM-861:
----------------------------------
Summary: 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)