Skip to content

Commit

Permalink
fix: Increase webserver default memory limit to 2Gi (#302)
Browse files Browse the repository at this point in the history
# Description

With `1 Gi` the webserver keep crashing randomly due to memory problems, even with a single, really really small DAG
  • Loading branch information
sbernauer committed Jul 17, 2023
1 parent 1e329c9 commit 0c21907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/modules/airflow/pages/usage-guide/storage-resources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

include::home:concepts:stackable_resource_requests.adoc[]

A minimal HA setup consisting of 2 Airflow instances has the following https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[resource requirements]:
A minimal HA setup consisting of 2 schedulers, 2 workers and 2 webservers has the following https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/[resource requirements]:

* `3500m` CPU request
* `8600m` CPU limit
* `8108Mi` memory request and limit
* `10156Mi` memory request and limit
Corresponding to the values above, the operator uses the following resource defaults:

Expand Down Expand Up @@ -36,5 +36,5 @@ spec:
min: 100m
max: 400m
memory:
limit: 1024Mi
limit: 2Gi
----
2 changes: 1 addition & 1 deletion rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ impl AirflowConfig {
max: Some(Quantity("400m".into())),
},
MemoryLimitsFragment {
limit: Some(Quantity("1024Mi".into())),
limit: Some(Quantity("2Gi".into())),
runtime_limits: NoRuntimeLimitsFragment {},
},
),
Expand Down

0 comments on commit 0c21907

Please sign in to comment.