From 530d35a9bd9e76ca2f0ad5ca6421772ba6aec161 Mon Sep 17 00:00:00 2001 From: Kyle Brennan Date: Tue, 10 Dec 2024 20:39:43 +0000 Subject: [PATCH 1/3] [ws-daemon] reduce requested memory to 2Gi --- install/installer/pkg/components/ws-daemon/daemonset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/installer/pkg/components/ws-daemon/daemonset.go b/install/installer/pkg/components/ws-daemon/daemonset.go index f3123860245834..c43d5632741df5 100644 --- a/install/installer/pkg/components/ws-daemon/daemonset.go +++ b/install/installer/pkg/components/ws-daemon/daemonset.go @@ -232,7 +232,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) { )), Resources: common.ResourceRequirements(ctx, Component, Component, corev1.ResourceRequirements{Requests: corev1.ResourceList{ "cpu": resource.MustParse("500m"), - "memory": resource.MustParse("4Gi"), + "memory": resource.MustParse("2Gi"), }}), VolumeMounts: volumeMounts, ImagePullPolicy: corev1.PullIfNotPresent, From cc89834f07113ca651af9c6a6cb67c3e5910ebac Mon Sep 17 00:00:00 2001 From: Kyle Brennan Date: Tue, 10 Dec 2024 21:20:49 +0000 Subject: [PATCH 2/3] Bump to 3Gi We need to free up 4.7Gi to schedule an additional XLarge workspace in Enterprise Classic, this helps us achieve that with a margin of 300Mi. --- install/installer/pkg/components/ws-daemon/daemonset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/installer/pkg/components/ws-daemon/daemonset.go b/install/installer/pkg/components/ws-daemon/daemonset.go index c43d5632741df5..ea5b84bd76791f 100644 --- a/install/installer/pkg/components/ws-daemon/daemonset.go +++ b/install/installer/pkg/components/ws-daemon/daemonset.go @@ -232,7 +232,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) { )), Resources: common.ResourceRequirements(ctx, Component, Component, corev1.ResourceRequirements{Requests: corev1.ResourceList{ "cpu": resource.MustParse("500m"), - "memory": resource.MustParse("2Gi"), + "memory": resource.MustParse("3Gi"), }}), VolumeMounts: volumeMounts, ImagePullPolicy: corev1.PullIfNotPresent, From c79bb2c0bd7f1bb19ed025b2de155d434939fa05 Mon Sep 17 00:00:00 2001 From: Kyle Brennan Date: Tue, 10 Dec 2024 21:29:28 +0000 Subject: [PATCH 3/3] Revert "Bump to 3Gi" This reverts commit cc89834f07113ca651af9c6a6cb67c3e5910ebac. --- install/installer/pkg/components/ws-daemon/daemonset.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/installer/pkg/components/ws-daemon/daemonset.go b/install/installer/pkg/components/ws-daemon/daemonset.go index ea5b84bd76791f..c43d5632741df5 100644 --- a/install/installer/pkg/components/ws-daemon/daemonset.go +++ b/install/installer/pkg/components/ws-daemon/daemonset.go @@ -232,7 +232,7 @@ func daemonset(ctx *common.RenderContext) ([]runtime.Object, error) { )), Resources: common.ResourceRequirements(ctx, Component, Component, corev1.ResourceRequirements{Requests: corev1.ResourceList{ "cpu": resource.MustParse("500m"), - "memory": resource.MustParse("3Gi"), + "memory": resource.MustParse("2Gi"), }}), VolumeMounts: volumeMounts, ImagePullPolicy: corev1.PullIfNotPresent,