You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/18 03:06:01 UTC

[jira] [Resolved] (AIRFLOW-3819) k8s executor - Allow the configuration of a global default for pod resource request/limits

     [ https://issues.apache.org/jira/browse/AIRFLOW-3819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aizhamal Nurmamat kyzy resolved AIRFLOW-3819.
---------------------------------------------
    Resolution: Done

Resolving. Will relocate to components afterwards.

> k8s executor - Allow the configuration of a global default for pod resource request/limits 
> -------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-3819
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3819
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: kubernetes
>    Affects Versions: 1.10.2
>            Reporter: afusr
>            Priority: Minor
>
> Currently the kubernetes executor allows you to specify pod resources requests and limits (cpu and memory). For example:
> {noformat}
> # Limit resources on this operator/task with node affinity & tolerations
> three_task = PythonOperator(
>     task_id="three_task", python_callable=print_stuff, dag=dag,
>     executor_config={
>         "KubernetesExecutor": {"request_memory": "128Mi",
>                                "limit_memory": "128Mi",
>                                "tolerations": tolerations,
>                                "affinity": affinity}}
> )
> {noformat}
> These values are used by kubernetes when making scaling decisions. It would be nice to be able to specify a global default for these values, to ensure that each pod airflow creates has a value specified for these properties. 
> There is still the requirement to override these values on a dag by dag basis. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)