[
https://issues.apache.org/jira/browse/FLINK-29465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xin Hao closed FLINK-29465.
---------------------------
Resolution: Not A Problem
> Supports limit factor in the resource definition
> ------------------------------------------------
>
> Key: FLINK-29465
> URL: https://issues.apache.org/jira/browse/FLINK-29465
> Project: Flink
> Issue Type: Improvement
> Components: Kubernetes Operator
> Reporter: Xin Hao
> Priority: Minor
>
> Can we add limit factor supports in the resource definition?
> {code:java}
> public class Resource {
> /** Amount of CPU allocated to the pod. */
> private Double cpu;
> private double cpuLimitFactor = 1.0;
> /** Amount of memory allocated to the pod. Example: 1024m, 1g */
> private String memory;
> private double memoryLimitFactor = 1.0;
> ...
> } {code}
> We can set the defaults as `1.0`, and update them to K8s config options
> {code:java}
> JOB_MANAGER_CPU_LIMIT_FACTOR
> JOB_MANAGER_MEMORY_LIMIT_FACTOR
> TASK_MANAGER_CPU_LIMIT_FACTOR
> TASK_MANAGER_MEMORY_LIMIT_FACTOR {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)