Skip to content

Commit

Permalink
Revert "chore: Change scaling nginx rate of increase metric for IDS (#…
Browse files Browse the repository at this point in the history
…14646)"

This reverts commit e5b94e4.
  • Loading branch information
lodmfjord authored Jun 18, 2024
1 parent e5b94e4 commit ef8994c
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 42 deletions.
1 change: 0 additions & 1 deletion apps/auth-admin-web/infra/auth-admin-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const serviceSetup = (): ServiceBuilder<'auth-admin-web'> => {
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
1 change: 0 additions & 1 deletion apps/services/auth/admin-api/infra/auth-admin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const serviceSetup = (): ServiceBuilder<'services-auth-admin-api'> => {
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
6 changes: 0 additions & 6 deletions apps/services/auth/ids-api/infra/identity-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ export const serviceSetup = (services: {
})
.healthPort(5010)
.targetPort(5000)
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
})
.serviceAccount('identity-server')
.readiness('/readiness')
.liveness('/liveness')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export const serviceSetup =
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export const serviceSetup =
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
1 change: 0 additions & 1 deletion apps/services/auth/public-api/infra/auth-public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export const serviceSetup = (): ServiceBuilder<'services-auth-public-api'> => {
.readiness('/health/check')
.liveness('/liveness')
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
22 changes: 11 additions & 11 deletions charts/identity-server/values.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ auth-admin-web:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -139,10 +139,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
max: 3
min: 1
image:
repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/identity-server'
ingress:
Expand Down Expand Up @@ -170,9 +170,9 @@ identity-server:
storageClass: 'efs-csi'
useExisting: false
replicaCount:
default: 2
max: 10
min: 2
default: 1
max: 3
min: 1
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -240,7 +240,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -579,7 +579,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -650,7 +650,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -742,7 +742,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down
18 changes: 9 additions & 9 deletions charts/identity-server/values.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ auth-admin-web:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -137,10 +137,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
min: 3
image:
repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/identity-server'
ingress:
Expand All @@ -167,9 +167,9 @@ identity-server:
storageClass: 'efs-csi'
useExisting: false
replicaCount:
default: 2
default: 3
max: 10
min: 2
min: 3
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -237,7 +237,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -576,7 +576,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -639,7 +639,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -731,7 +731,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down
22 changes: 11 additions & 11 deletions charts/identity-server/values.staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ auth-admin-web:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -139,10 +139,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
max: 3
min: 1
image:
repository: '821090935708.dkr.ecr.eu-west-1.amazonaws.com/identity-server'
ingress:
Expand Down Expand Up @@ -170,9 +170,9 @@ identity-server:
storageClass: 'efs-csi'
useExisting: false
replicaCount:
default: 2
max: 10
min: 2
default: 1
max: 3
min: 1
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -240,7 +240,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -579,7 +579,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -642,7 +642,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -734,7 +734,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 10
nginxRequestsIrate: 5
replicas:
max: 10
min: 2
Expand Down

0 comments on commit ef8994c

Please sign in to comment.