对 FLINK 任务槽的困惑 [英] Confused about FLINK task slot

查看:24
本文介绍了对 FLINK 任务槽的困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道一个任务管理器可以有多个任务槽.

I know a task manager could have several task slots.

但是,什么是任务槽?JVM 进程或内存或线程中的对象?

But, what is a task slot ? A JVM process or an object in memory or a thread?

推荐答案

答案可能会迟到.但是:

The answer might come late. But:

Taskmanager (TM) 是一个 JVM 进程,而 Taskslot (TS) 是相应 JVM 进程 (TM) 中的一个线程.TM 的托管内存在 TM 内的 TS 之间平均分配.插槽之间没有 CPU 隔离,只是管理内存被划分.此外,同一 TM 中的 TS 共享 TCP 连接(通过多路复用)和心跳消息.它们还可以共享数据集和数据结构,从而减少每个任务的开销.

A Taskmanager (TM) is a JVM process, whereas a Taskslot (TS) is a Thread within the respective JVM process (TM). The managed memory of a TM is equally split up between the TS within a TM. No CPU isolation happens between the slots, just the managed memory is divided. Moreover, TS in the same TM share TCP connections (via multiplexing) and heartbeat messages. They may also share data sets and data structures, thus reducing the per-task overhead.

来源:https://ci.apache.org/projects/flink/flink-docs-release-1.5/concepts/runtime.html#task-slots-and-resources

这篇关于对 FLINK 任务槽的困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆