@@ -50,8 +50,8 @@ export function prepareEnvironment(input: {
5050 } ,
5151 envoy : {
5252 replicas : isProduction || isStaging ? 3 : 1 ,
53- cpuLimit : isProduction ? '1500m' : '120m' ,
54- memoryLimit : isProduction ? '2Gi' : '200Mi' ,
53+ cpuLimit : isProduction || isStaging ? '1500m' : '120m' ,
54+ memoryLimit : isProduction || isStaging ? '2Gi' : '200Mi' ,
5555 timeouts : {
5656 idleTimeout : 905 ,
5757 } ,
@@ -61,26 +61,30 @@ export function prepareEnvironment(input: {
6161 } ,
6262 usageService : {
6363 replicas : isProduction || isStaging ? 6 : 1 ,
64- cpuLimit : isProduction ? '1000m' : '100m' ,
64+ cpuMin : isProduction || isStaging ? '200m' : '100m' ,
65+ cpuMax : isProduction || isStaging ? '1000m' : '100m' ,
6566 maxReplicas : isProduction || isStaging ? 6 : 1 ,
6667 cpuAverageToScale : 60 ,
6768 } ,
6869 usageIngestorService : {
6970 replicas : isProduction || isStaging ? 6 : 1 ,
70- cpuLimit : isProduction ? '1000m' : '100m' ,
71+ cpuMax : isProduction || isStaging ? '1000m' : '100m' ,
72+ cpuMin : isProduction || isStaging ? '300m' : '100m' ,
7173 maxReplicas : isProduction || isStaging ? /* numberOfPartitions */ 16 : 2 ,
7274 cpuAverageToScale : 60 ,
7375 } ,
7476 redis : {
75- memoryLimit : isProduction ? '4Gi' : '100Mi' ,
76- cpuLimit : isProduction ? '1000m' : '50m' ,
77+ memoryLimit : isProduction || isStaging ? '4Gi' : '100Mi' ,
78+ cpuMax : isProduction || isStaging ? '1000m' : '100m' ,
79+ cpuMin : isProduction || isStaging ? '100m' : '50m' ,
7780 } ,
7881 internalObservability : {
7982 cpuLimit : isProduction ? '512m' : '150m' ,
8083 memoryLimit : isProduction ? '1000Mi' : '300Mi' ,
8184 } ,
8285 tracingCollector : {
83- cpuLimit : isProduction || isStaging ? '1000m' : '100m' ,
86+ cpuMax : isProduction || isStaging ? '1000m' : '300m' ,
87+ cpuMin : '100m' ,
8488 memoryLimit : isProduction || isStaging ? '1000Mi' : '512Mi' ,
8589 maxReplicas : isProduction || isStaging ? 3 : 1 ,
8690 replicas : 1 ,
0 commit comments