官术网_书友最值得收藏!

Task

This is the most granular unit of task execution in Storm. Each task is an instance of a spout or bolt. When defining a Storm topology, you can specify the number of tasks for each spout and bolt. Once defined, the number of tasks cannot be changed for a component at runtime. Each task can be executed alone or with another task of the same type, or another instance of the same spout or bolt.

The following diagram depicts the relationship between a worker process, executors, and tasks. In the following diagram, there are two executors for each component, with each hosting a different number of tasks.

Also, as you can see, there are two executors and eight tasks defined for one component (each executor is hosting four tasks). If you are not getting enough performance out of this configuration, you can easily change the number of executors for the component to four or eight to increase performance and the tasks will be uniformly distributed between all executors of that component. The following diagrams show the relationship between executor, task, and worker:

主站蜘蛛池模板: 陆丰市| 泰安市| 阿拉尔市| 禄丰县| 轮台县| 镇巴县| 宜川县| 修文县| 博白县| 绍兴市| 阿克陶县| 霍林郭勒市| 信阳市| 霍山县| 抚顺市| 揭东县| 阿图什市| 息烽县| 大英县| 桦南县| 舞钢市| 余江县| 通城县| 名山县| 黄山市| 闸北区| 庆城县| 中西区| 清水县| 芜湖县| 交口县| 来凤县| 潜江市| 樟树市| 正定县| 德格县| 古交市| 沧州市| 石河子市| 丽江市| 清水河县|