2
2
# The amount of parallelism as a setting to the executor. This defines
3
3
# the max number of task instances that should run simultaneously
4
4
# on this airflow installation
5
- parallelism = 256
5
+ parallelism = 4
6
6
7
7
# The number of task instances allowed to run concurrently by the scheduler
8
8
max_active_tasks_per_dag = 64
@@ -20,12 +20,19 @@ dagbag_import_timeout = 600
20
20
21
21
auth_manager = airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager
22
22
23
+ max_active_runs_per_dag = 2
24
+ max_active_tasks_per_dag = 2
25
+
23
26
[dag_processor]
24
27
# How long before timing out a DagFileProcessor, which processes a dag file
25
28
dag_file_processor_timeout = 600
26
29
# 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
30
+ # But set it to a large enough 60 * 60 * 24 * 7 (1 week) to avoid high CPU usage
31
+ min_file_process_interval = 604800
32
+
33
+ parsing_processes = 1
34
+
35
+ refresh_interval = 600
29
36
30
37
[database]
31
38
# The SqlAlchemy connection string to the metadata database.
@@ -59,6 +66,9 @@ auth_backends = airflow.providers.fab.auth_manager.api.auth.backend.session
59
66
60
67
[scheduler]
61
68
enable_health_check = True
69
+ scheduler_heartbeat_sec = 10
70
+ orphaned_tasks_check_interval = 600
71
+ parsing_cleanup_interval = 600
62
72
63
73
# ref: https://airflow.apache.org/docs/apache-airflow/1.10.1/security.html#setting-up-google-authentication
64
74
[google]
0 commit comments