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

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:

主站蜘蛛池模板: 麻栗坡县| 东城区| 游戏| 陆良县| 察雅县| 通江县| 阳东县| 石狮市| 汾阳市| 卓尼县| 会同县| 佳木斯市| 赤城县| 鹿邑县| 故城县| 谷城县| 循化| 遂宁市| 青龙| 潮州市| 连平县| 建水县| 桃园县| 鄂尔多斯市| 焉耆| 千阳县| 余姚市| 二连浩特市| 新巴尔虎左旗| 河南省| 巩留县| 峨边| 额尔古纳市| 广西| 墨竹工卡县| 阿克陶县| 弥渡县| 芦山县| 应城市| 根河市| 桃江县|