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

查看:54
本文介绍了对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.

来源: 查看全文

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