From 0c219079f1aa75a4ed95ae6f262d2ec984a3edf0 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 17 Jul 2023 08:07:40 +0000 Subject: [PATCH] fix: Increase webserver default memory limit to 2Gi (#302) # Description With `1 Gi` the webserver keep crashing randomly due to memory problems, even with a single, really really small DAG --- .../airflow/pages/usage-guide/storage-resources.adoc | 6 +++--- rust/crd/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/modules/airflow/pages/usage-guide/storage-resources.adoc b/docs/modules/airflow/pages/usage-guide/storage-resources.adoc index ef73f78f..6a1899bc 100644 --- a/docs/modules/airflow/pages/usage-guide/storage-resources.adoc +++ b/docs/modules/airflow/pages/usage-guide/storage-resources.adoc @@ -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: @@ -36,5 +36,5 @@ spec: min: 100m max: 400m memory: - limit: 1024Mi + limit: 2Gi ---- diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index 71d3a7e2..31bbe709 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -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 {}, }, ),