Airbnb Airflow using all system resources

后端 未结 7 1869
温柔的废话
温柔的废话 2021-02-03 19:48

We\'ve set up Airbnb/Apache Airflow for our ETL using LocalExecutor, and as we\'ve started building more complex DAGs, we\'ve noticed that Airflow has starting usin

7条回答
  •  既然无缘
    2021-02-03 19:55

    I tried to run Airflow on a AWS t2.micro instance (1vcpu, 1gb of memory, eligible for free tier), and had the same issue : the worker consumed 100% of the cpu and consumed all available memory.

    The EC2 instance was totally stuck and unusable, of course Airflow didn't working.

    So I created a 4GB swap file using the method described here. With the swap, no more issues, Airflow was fully functionnal. Of course, with only one vcpu, you cannot expect incredible performances, but it runs.

提交回复
热议问题