19.flink task数量,slot数量和taskManage数量

编程入门 行业动态 更新时间:2024-10-22 19:29:49

19.flink task<a href=https://www.elefans.com/category/jswz/34/1770431.html style=数量,slot数量和taskManage数量"/>

19.flink task数量,slot数量和taskManage数量

flink并行度设置

    • 摘要
    • 1.parallelism.default:
    • 2.taskmanager.numberOfTaskSlots
    • 3.taskManager的数量

摘要

读者必须明白flink 任务的划分是怎么来的,如果不明白建议去查看相关资料,否则这篇文章对你而言没有任何意义。

1.parallelism.default:

我觉得还是英文说的清楚,就不翻译了。
The default parallelism to use for programs that have no parallelism specified. (DEFAULT: 1). For setups that have no concurrent jobs running, setting this value to NumTaskManagers * NumSlotsPerTaskManager will cause the system to use all available execution resources for the program’s execution. Note: The default parallelism can be overwriten for an entire job by calling setParallelism(int parallelism) on the ExecutionEnvironment or by passing -p to the Flink Command-line frontend. It can be overwritten for single transformations by calling setParallelism(int parallelism) on an operator. See Parallel Execution for more information about parallelism.
parallelism其实就是并行度,并发执行的线程数量

2.taskmanager.numberOfTaskSlots

:The number of parallel operator or user function instances that a single TaskManager can run (DEFAULT: 1). If this value is larger than 1, a single TaskManager takes multiple instances of a function or operator. That way, the TaskManager can utilize multiple CPU cores, but at the same time, the available memory is divided between the different operator or function instances. This value is typically proportional to the number of physical CPU cores that the TaskManager’s machine has (e.g., equal to the number of cores, or half the number of cores). More about task slots.
值得是当前taskManager进程管理的线程的数量,也可理解成核数。一个taskManager可能会运行多个task,每个task都是最细粒度的执行单元。

3.taskManager的数量

parallelism数量/taskmanager.numberOfTaskSlots=taseManager的数量

更多推荐

19.flink task数量,slot数量和taskManage数量

本文发布于:2024-03-23 23:47:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1744269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数量   flink   task   taskManage   slot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!