Skip to content

Commit 2c3e728

Browse files
authored
adjust resources and pods/replicas count in staging+prod (#7010)
1 parent f67e4d3 commit 2c3e728

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

deployment/services/environment.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,29 @@ export function prepareEnvironment(input: {
4646
rootDns: input.rootDns,
4747
podsConfig: {
4848
general: {
49-
replicas: isProduction ? 3 : isStaging ? 2 : 1,
49+
replicas: isProduction || isStaging ? 3 : 1,
5050
},
5151
supertokens: {
52-
replicas: isProduction ? 3 : 1,
52+
replicas: isProduction || isStaging ? 3 : 1,
5353
},
5454
envoy: {
55-
replicas: isProduction ? 3 : 1,
56-
cpuLimit: isProduction ? '800m' : '150m',
57-
memoryLimit: isProduction ? '1Gi' : '200Mi',
55+
replicas: isProduction || isStaging ? 3 : 1,
56+
cpuLimit: isProduction ? '1500m' : '150m',
57+
memoryLimit: isProduction ? '2Gi' : '200Mi',
5858
},
5959
schemaService: {
60-
memoryLimit: isProduction ? '2Gi' : '1Gi',
60+
memoryLimit: isProduction || isStaging ? '2Gi' : '1Gi',
6161
},
6262
usageService: {
63-
replicas: isProduction ? 3 : isStaging ? 2 : 1,
64-
cpuLimit: isProduction ? '900m' : '300m',
65-
maxReplicas: isProduction ? 6 : isStaging ? 3 : 1,
63+
replicas: isProduction || isStaging ? 3 : 1,
64+
cpuLimit: isProduction ? '1000m' : '300m',
65+
maxReplicas: isProduction || isStaging ? 6 : 1,
6666
cpuAverageToScale: 60,
6767
},
6868
usageIngestorService: {
69-
replicas: isProduction ? 6 : isStaging ? 2 : 1,
70-
cpuLimit: isProduction ? '900m' : '300m',
71-
maxReplicas: isProduction ? /* numberOfPartitions */ 16 : 2,
69+
replicas: isProduction || isStaging ? 6 : 1,
70+
cpuLimit: isProduction ? '1000m' : '300m',
71+
maxReplicas: isProduction || isStaging ? /* numberOfPartitions */ 16 : 2,
7272
cpuAverageToScale: 60,
7373
},
7474
redis: {

0 commit comments

Comments
 (0)