Skip to content

Commit 9d2f625

Browse files
committed
feedback review: swapped order
1 parent 42e0d49 commit 9d2f625

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • docs/modules/airflow/pages/troubleshooting

docs/modules/airflow/pages/troubleshooting/index.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ See e.g. https://github.com/minio/minio/issues/20845[this MinIO issue] for detai
3131
In Airflow the webserver (called the API Server in Airflow 3.x+) can use multiple workers.
3232
This is determined by the environment variable `+AIRFLOW__API__WORKERS+` and is set by default to `4` in Airflow 2.x and `1` in Airflow 3.x+.
3333
The reason for this difference is that Airflow uses a backend library to manage child processes and in 3.x+ this library can cause child processes to be killed if a hard-coded startup timeout is exceeded.
34-
For most cases with Airflow 3.x+ a default of `1` should be sufficient, but if you run into performance issues and would like to add more workers, you can either change the environment variable using `envOverrides`:
34+
For most cases with Airflow 3.x+ a default of `1` should be sufficient, but if you run into performance issues and would like to add more workers, you can either modulate multiple worker processes at the level of webserver, keeping the default of a single worker per webserver:
3535

3636
[source,yaml]
3737
----
3838
webservers:
39-
envOverrides:
40-
AIRFLOW__API__WORKERS: 2 # something other than the default of 1
39+
roleGroups:
40+
default:
41+
replicas: 2 # add a replica (with a single worker)
4142
----
4243

43-
or modulate multiple worker processes at the level of webserver, keeping the default of a single worker per webserver:
44+
or change the environment variable using `envOverrides`:
4445

4546
[source,yaml]
4647
----
4748
webservers:
48-
roleGroups:
49-
default:
50-
replicas: 2 # add a replica (with a single worker)
49+
envOverrides:
50+
AIRFLOW__API__WORKERS: 2 # something other than the default of 1
5151
----
5252

53-
TIP: Our recommendation is to increase the webserver replicas, with each webserver running a single worker, as this removes the risk of running into timeouts or memory issues.
53+
TIP: Our strong recommendation is to increase the webserver replicas, with each webserver running a single worker, as this removes the risk of running into timeouts or memory issues.

0 commit comments

Comments
 (0)