- Mastering Apache Storm
- Ankit Jain
- 183字
- 2021-07-02 20:32:32
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:

- 黑客攻防從入門到精通(實戰(zhàn)秘笈版)
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- Kibana Essentials
- PaaS程序設(shè)計
- Java高手真經(jīng)(高級編程卷):Java Web高級開發(fā)技術(shù)
- 青少年美育趣味課堂:XMind思維導(dǎo)圖制作
- 實用防銹油配方與制備200例
- CouchDB and PHP Web Development Beginner’s Guide
- Unreal Engine 4 Shaders and Effects Cookbook
- PHP編程基礎(chǔ)與實例教程
- Programming with CodeIgniterMVC
- HTML+CSS+JavaScript編程入門指南(全2冊)
- Learning iOS Security
- OpenCV 3計算機視覺:Python語言實現(xiàn)(原書第2版)
- 深度學(xué)習(xí)入門:基于Python的理論與實現(xiàn)