strom 學習筆記

storm topology中worker、線程(executer)、task關係

https://github.com/nathanmarz/storm/wiki/Understanding-the-parallelism-of-a-Storm-topology


一個topology在集羣中可以使用多個worker

每個worker對應一個topology的多個component

每個executer對應一個component

每個executer有多個task


setNumWorkers 設置使用的worker數目

component在setBolt/setSpout時候設置並行度(executer數目)

setNumTasks設置task數目

Config#setMaxTaskParallelism() 設置並行度最大值(對所有component生效)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章