[ 
https://issues.apache.org/jira/browse/FLINK-31116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17690308#comment-17690308
 ] 

Weihua Hu commented on FLINK-31116:
-----------------------------------

[~waywtdcc]

Flink's resource management is hierarchical.

JobMaster is not aware of TaskManager's resources, it only needs to declare the 
required resources (per slot) to the ResourceManager. ResourceManager will 
allocate resources (slots) from TaskManager to JobMaster. 

I don't think it is a good idea to let the job know how many slots TaskManager 
should have.

Could you describe the production scenario in detail? Does [Fine-Grained 
Resource 
Management|https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/finegrained_resource/]
 satisfy it?

 

> Support taskmanager related parameters in session mode Support job 
> granularity setting
> --------------------------------------------------------------------------------------
>
>                 Key: FLINK-31116
>                 URL: https://issues.apache.org/jira/browse/FLINK-31116
>             Project: Flink
>          Issue Type: New Feature
>          Components: Runtime / Task
>    Affects Versions: 1.16.1
>            Reporter: waywtdcc
>            Priority: Major
>             Fix For: 1.18.0
>
>
> In session mode, taskmanager related parameters are supported and job 
> granularity settings are supported.
> If the yarn session is submitted, taskmanager.numberOfTaskSlots is set
> =2, most jobs can be configured according to this. But occasionally when 
> submitting job2, I want taskmanager to be set to 
> taskmanager.numberOfTaskSlots=1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to