@@ -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