How do I to set the number of slots?

1,692 views
Skip to first unread message

MitchBit

unread,
Nov 1, 2012, 2:06:41 PM11/1/12
to storm...@googlegroups.com
I'd like to assure, that each bolt/spout runs on a dedicated machine and therefore I'd like to set the number of slots to exactely 1 per machine.

Would be great, if somebody could let me know, how to achieve this.

MitchBit

unread,
Nov 1, 2012, 2:14:06 PM11/1/12
to storm...@googlegroups.com
Forgot to mention:
I've tried to set the storm.yaml like follows using only a single port, but still, when for instance rebalancing the topology, two CPU-heavy tasks are put on a single machine. I thought storm.yaml would override the default.yaml.

supervisor.slots.ports:
- 6700

A hint is well appreciated!

xmdxcxz

unread,
Nov 1, 2012, 11:17:21 PM11/1/12
to storm...@googlegroups.com
HI,  MitchBit . You can develop a pluggable scheduler.
This article may help you  http://xumingming.sinaapp.com/885/twitter-storm-how-to-develop-a-pluggable-scheduler/ . 

在 2012年11月2日星期五UTC+8上午2时14分06秒,MitchBit写道:

Nathan Marz

unread,
Nov 2, 2012, 1:25:05 AM11/2/12
to storm-user
The slots on each machine is determined by the storm.yaml that the supervisor has, not the storm.yaml on your machine or the topology config. You have to restart the supervisor for it to pick up any changes.
--
Twitter: @nathanmarz
http://nathanmarz.com

Message has been deleted

MitchBit

unread,
Nov 2, 2012, 5:08:18 AM11/2/12
to storm...@googlegroups.com
So the storm.yaml on nimbus doesn't affect the number of slots at each worker?

So I need to touch every worker machine, run stop.sh, update the storm/conf/storm.yaml file and add

supervisor.slots.ports:
- 6700

and run start.sh again?

What am I doing wrong because it does not produce the desired effect - UI still lists the machine with 4 slots...

MitchBit

unread,
Nov 2, 2012, 5:14:50 AM11/2/12
to storm...@googlegroups.com
sorry for this mess - I had a small typo  and now it works wonderfully - thanks nathan!
Reply all
Reply to author
Forward
0 new messages