You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/26 14:41:55 UTC

[airflow] branch master updated: Gunicorn works better if temporary folder uses tmpfs (#9534)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new 2cf167b  Gunicorn works better if temporary folder uses tmpfs (#9534)
2cf167b is described below

commit 2cf167b047063271c0df12344abc0e14940457af
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Fri Jun 26 16:41:21 2020 +0200

    Gunicorn works better if temporary folder uses tmpfs (#9534)
    
    This is discussed in the documentation of gunicorn.
    You can find more information here: https://docs.gunicorn.org/en/stable/faq.html#how-do-i-avoid-gunicorn-excessively-blocking-in-os-fchmod
    
    Since we are using docker, we always have shared memory
    available (at least 64MB).
    
    Closes #9379
---
 Dockerfile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Dockerfile b/Dockerfile
index 1651f2e..4af6976 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -348,6 +348,7 @@ RUN chmod a+x /entrypoint /clean-logs
 USER airflow
 
 ENV PATH="/home/airflow/.local/bin:${PATH}"
+ENV GUNICORN_CMD_ARGS="--worker-tmp-dir /dev/shm"
 
 WORKDIR ${AIRFLOW_HOME}