You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by "junjie.miao@goupwith.com" <ju...@goupwith.com> on 2022/11/07 11:24:26 UTC

设置slot是vcore的几倍会有什么影响

hi,
问个问题就是假设我只有一台服务器且只有8vcore,standalone启动时可以设置taskmanager.numberOfTaskSlots > 8 吗?
我尝试了设置为32等都是可以的且提交job完全占满slot数也是没问题的,这样设置slot是vcore的几倍会有什么影响吗?
谢谢!!!

Re: 设置slot是vcore的几倍会有什么影响

Posted by Yanfei Lei <fr...@gmail.com>.
Hi junjie,
一个slot可以看作JVM中的一个线程[1],因此可以设置taskmanager.numberOfTaskSlots超过cpu core的数目。

> 这样设置slot是vcore的几倍会有什么影响吗?

设置slot是vcore的几倍可能导致资源bound(如cpu、内存、磁盘、网络带宽等),我曾经遇到过slot数目过多(每个slot上的subtask的状态较大)引起的磁盘不足问题。
[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/concepts/flink-architecture/#task-slots-and-resources

Best,
Yanfei

junjie.miao@goupwith.com <ju...@goupwith.com> 于2022年11月7日周一 19:24写道:

> hi,
> 问个问题就是假设我只有一台服务器且只有8vcore,standalone启动时可以设置taskmanager.numberOfTaskSlots >
> 8 吗?
> 我尝试了设置为32等都是可以的且提交job完全占满slot数也是没问题的,这样设置slot是vcore的几倍会有什么影响吗?
> 谢谢!!!
>


-- 
Best,
Yanfei