Skip to content

Commit 81cf9ff

Browse files
committed
fix(airflow.cfg): set min_file_process_interval to a large enough time and lower api.workers to 1
api.wokers > 2 does not work for our limited machine resources
1 parent d221669 commit 81cf9ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

airflow.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManage
2323
[dag_processor]
2424
# How long before timing out a DagFileProcessor, which processes a dag file
2525
dag_file_processor_timeout = 600
26+
# We don't really need it based on how we deploy dags.
27+
# But set it to a large enough 60 * 24 (1 day) to avoid high CPU usage
28+
min_file_process_interval = 1440
2629

2730
[database]
2831
# The SqlAlchemy connection string to the metadata database.
@@ -34,7 +37,8 @@ external_db_managers = airflow.providers.fab.auth_manager.models.db.FABDBManager
3437

3538
[api]
3639
# Number of workers to run the Gunicorn web server
37-
workers = 2
40+
# WARNING:: DO NOT increase this number. Due to our limited resources, increasing it to 2 breaks API server
41+
workers = 1
3842

3943
# Number of seconds the gunicorn webserver waits before timing out on a worker
4044
worker_timeout = 600

0 commit comments

Comments
 (0)