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 liangji <ji...@gmail.com> on 2020/09/01 08:45:13 UTC

TM SLOT资源共享

https://ci.apache.org/projects/flink/flink-docs-release-1.11/concepts/flink-architecture.html#task-slots-and-resources
从这个小节得到以下结论(不确定是否准确。)
1、1个TM可以有多个slot
2、slot中不存在资源共享时,1个slot只会有一个thread
3、slot中存在资源共享时,1个slot会有多个thread
所以,想问下怎么确定是否能够资源共享?多谢



--
Sent from: http://apache-flink.147419.n8.nabble.com/

Re: TM SLOT资源共享

Posted by liangji <ji...@gmail.com>.
多谢回复,有看到云邪大佬的这篇文章
http://wuchong.me/blog/2016/05/09/flink-internals-understanding-execution-resources/
我再研究研究,多谢



--
Sent from: http://apache-flink.147419.n8.nabble.com/

Re: TM SLOT资源共享

Posted by shizk233 <wa...@gmail.com>.
你说的资源共享是指slot sharing吗,同一个job的task默认都在一个slot group中,都是可以共享slot的。
但同一个task的多个并发实例不能共享slot,多个实例需要分配在不同的slot中。

另外,关于“slot中存在资源共享时,1个slot会有多个thread”。如果是指数据处理的thread,那我理解应该是1个slot只有1个thread。

liangji <ji...@gmail.com> 于2020年9月1日周二 下午4:45写道:

>
> https://ci.apache.org/projects/flink/flink-docs-release-1.11/concepts/flink-architecture.html#task-slots-and-resources
> 从这个小节得到以下结论(不确定是否准确。)
> 1、1个TM可以有多个slot
> 2、slot中不存在资源共享时,1个slot只会有一个thread
> 3、slot中存在资源共享时,1个slot会有多个thread
> 所以,想问下怎么确定是否能够资源共享?多谢
>
>
>
> --
> Sent from: http://apache-flink.147419.n8.nabble.com/