From 2009ba1444e122f603fd495212404b262389f4fc Mon Sep 17 00:00:00 2001 From: Malte Sander Date: Wed, 28 Jun 2023 09:16:16 +0200 Subject: [PATCH] improve default resource limits --- docs/modules/hdfs/pages/usage-guide/resources.adoc | 6 ++++-- rust/crd/src/lib.rs | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/modules/hdfs/pages/usage-guide/resources.adoc b/docs/modules/hdfs/pages/usage-guide/resources.adoc index 09488e0d..b31ac2bd 100644 --- a/docs/modules/hdfs/pages/usage-guide/resources.adoc +++ b/docs/modules/hdfs/pages/usage-guide/resources.adoc @@ -79,9 +79,11 @@ dataNodes: config: resources: cpu: - max: '4' - min: '100m' + max: '2' + min: '500m' storage: data: capacity: 2Gi ---- + +For data nodes the `data` capacity is 5Gi. diff --git a/rust/crd/src/lib.rs b/rust/crd/src/lib.rs index f4f315dc..8273395d 100644 --- a/rust/crd/src/lib.rs +++ b/rust/crd/src/lib.rs @@ -738,8 +738,8 @@ impl HdfsPodRef { fn default_resources_fragment() -> ResourcesFragment { ResourcesFragment { cpu: CpuLimitsFragment { - min: Some(Quantity("100m".to_owned())), - max: Some(Quantity("4".to_owned())), + min: Some(Quantity("500m".to_owned())), + max: Some(Quantity("2".to_owned())), }, memory: MemoryLimitsFragment { limit: Some(Quantity("1Gi".to_owned())),