From 16dfd503fdbb8fff04eba9dc1eeff8eb37d0d467 Mon Sep 17 00:00:00 2001 From: Jonathan Funk Date: Fri, 11 Oct 2024 14:14:56 -0700 Subject: [PATCH 1/4] Enable autoscaling for test and bump replicas --- .github/workflows/merge-release.yml | 7 +++++++ charts/app/values.yaml | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/merge-release.yml b/.github/workflows/merge-release.yml index 7ff5274e8..417154776 100644 --- a/.github/workflows/merge-release.yml +++ b/.github/workflows/merge-release.yml @@ -47,6 +47,13 @@ jobs: with: environment: test tag: ${{ needs.vars.outputs.pr }} + params: --set backend.deploymentStrategy=RollingUpdate + --set frontend.deploymentStrategy=RollingUpdate + --set webeoc.deploymentStrategy=RollingUpdate + --set global.autoscaling=true + --set frontend.pdb.enabled=true + --set backend.pdb.enabled=true + --set webeoc.pdb.enabled=true promote: name: Promote Images diff --git a/charts/app/values.yaml b/charts/app/values.yaml index 944a7ec0f..fd4ffdf4b 100644 --- a/charts/app/values.yaml +++ b/charts/app/values.yaml @@ -361,7 +361,7 @@ backup: nats: enabled: true config: - replicaCount: 1 + replicaCount: 2 resources: requests: cpu: 100m @@ -407,9 +407,9 @@ webeoc: #-- enable or disable autoscaling. enabled: true #-- the minimum number of replicas. - minReplicas: 1 + minReplicas: 2 #-- the maximum number of replicas. - maxReplicas: 2 + maxReplicas: 3 #-- the target cpu utilization percentage, is from request cpu and NOT LIMIT CPU. targetCPUUtilizationPercentage: 80 service: From 15354b03013a9ba211d4a7771a8d48a035f6e8f3 Mon Sep 17 00:00:00 2001 From: Jonathan Funk Date: Wed, 16 Oct 2024 10:10:44 -0700 Subject: [PATCH 2/4] Fix cluster stanza --- charts/app/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/app/values.yaml b/charts/app/values.yaml index fd4ffdf4b..4f2aaa4ff 100644 --- a/charts/app/values.yaml +++ b/charts/app/values.yaml @@ -361,7 +361,6 @@ backup: nats: enabled: true config: - replicaCount: 2 resources: requests: cpu: 100m @@ -377,8 +376,9 @@ nats: memoryStore: enabled: true maxSize: 250Mi - cluster: - enabled: true + cluster: + enabled: true + replicas: 3 natsBox: enabled: false persistence: From 6b00b4b1954d1336bf81d118acd994a4de9641fe Mon Sep 17 00:00:00 2001 From: Jonathan Funk Date: Wed, 16 Oct 2024 11:37:12 -0700 Subject: [PATCH 3/4] fix nats cluster stanza and add scaling to prod --- .github/workflows/merge-main.yml | 4 ++++ .github/workflows/merge-release.yml | 1 + charts/app/values.yaml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index 9fce4d334..53fc3df2d 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -79,9 +79,13 @@ jobs: tag: ${{ needs.vars.outputs.pr }} params: --set backend.deploymentStrategy=RollingUpdate --set frontend.deploymentStrategy=RollingUpdate + --set webeoc.deploymentStrategy=RollingUpdate --set global.autoscaling=true --set frontend.pdb.enabled=true --set backend.pdb.enabled=true + --set webeoc.pdb.enabled=true + --set nats.config.cluster.replicas=3 + promote: name: Promote Images needs: [deploy-prod, vars] diff --git a/.github/workflows/merge-release.yml b/.github/workflows/merge-release.yml index 417154776..9553e6572 100644 --- a/.github/workflows/merge-release.yml +++ b/.github/workflows/merge-release.yml @@ -54,6 +54,7 @@ jobs: --set frontend.pdb.enabled=true --set backend.pdb.enabled=true --set webeoc.pdb.enabled=true + --set nats.config.cluster.replicas=3 promote: name: Promote Images diff --git a/charts/app/values.yaml b/charts/app/values.yaml index 4f2aaa4ff..55fbcdea4 100644 --- a/charts/app/values.yaml +++ b/charts/app/values.yaml @@ -378,7 +378,7 @@ nats: maxSize: 250Mi cluster: enabled: true - replicas: 3 + replicas: 1 natsBox: enabled: false persistence: From 3e8b4787938579d8ed006e649c715c84361ee564 Mon Sep 17 00:00:00 2001 From: Jonathan Funk Date: Wed, 16 Oct 2024 13:39:59 -0700 Subject: [PATCH 4/4] disable clustering in dev builds --- .github/workflows/merge-main.yml | 1 + .github/workflows/merge-release.yml | 1 + charts/app/values.yaml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge-main.yml b/.github/workflows/merge-main.yml index 53fc3df2d..2bacb333d 100644 --- a/.github/workflows/merge-main.yml +++ b/.github/workflows/merge-main.yml @@ -85,6 +85,7 @@ jobs: --set backend.pdb.enabled=true --set webeoc.pdb.enabled=true --set nats.config.cluster.replicas=3 + --set nats.config.cluster.enabled=true promote: name: Promote Images diff --git a/.github/workflows/merge-release.yml b/.github/workflows/merge-release.yml index 9553e6572..0b6628fa0 100644 --- a/.github/workflows/merge-release.yml +++ b/.github/workflows/merge-release.yml @@ -55,6 +55,7 @@ jobs: --set backend.pdb.enabled=true --set webeoc.pdb.enabled=true --set nats.config.cluster.replicas=3 + --set nats.config.cluster.enabled=true promote: name: Promote Images diff --git a/charts/app/values.yaml b/charts/app/values.yaml index 55fbcdea4..51f51d673 100644 --- a/charts/app/values.yaml +++ b/charts/app/values.yaml @@ -377,7 +377,7 @@ nats: enabled: true maxSize: 250Mi cluster: - enabled: true + enabled: false replicas: 1 natsBox: enabled: false