Skip to content

Commit

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

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: lommi <[email protected]>
  • Loading branch information
4 people authored Jun 18, 2024
1 parent 8e23495 commit e5b94e4
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 31 deletions.
1 change: 1 addition & 0 deletions apps/auth-admin-web/infra/auth-admin-web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const serviceSetup = (): ServiceBuilder<'auth-admin-web'> => {
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
1 change: 1 addition & 0 deletions apps/services/auth/admin-api/infra/auth-admin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const serviceSetup = (): ServiceBuilder<'services-auth-admin-api'> => {
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
6 changes: 6 additions & 0 deletions apps/services/auth/ids-api/infra/identity-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ 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,6 +49,7 @@ 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,6 +84,7 @@ export const serviceSetup =
},
})
.replicaCount({
scalingMagicNumber: 10,
default: 2,
min: 2,
max: 10,
Expand Down
1 change: 1 addition & 0 deletions apps/services/auth/public-api/infra/auth-public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ 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: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -139,10 +139,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 3
min: 1
max: 10
min: 2
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: 1
max: 3
min: 1
default: 2
max: 10
min: 2
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -240,7 +240,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -579,7 +579,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -650,7 +650,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -742,7 +742,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
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: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -137,10 +137,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 3
min: 2
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: 3
default: 2
max: 10
min: 3
min: 2
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -237,7 +237,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -576,7 +576,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -639,7 +639,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -731,7 +731,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
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: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -139,10 +139,10 @@ identity-server:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 3
min: 1
max: 10
min: 2
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: 1
max: 3
min: 1
default: 2
max: 10
min: 2
resources:
limits:
cpu: '4000m'
Expand Down Expand Up @@ -240,7 +240,7 @@ services-auth-admin-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -579,7 +579,7 @@ services-auth-personal-representative:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -642,7 +642,7 @@ services-auth-personal-representative-public:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down Expand Up @@ -734,7 +734,7 @@ services-auth-public-api:
scaling:
metric:
cpuAverageUtilization: 90
nginxRequestsIrate: 5
nginxRequestsIrate: 10
replicas:
max: 10
min: 2
Expand Down

0 comments on commit e5b94e4

Please sign in to comment.