@@ -46,29 +46,29 @@ export function prepareEnvironment(input: {
46
46
rootDns : input . rootDns ,
47
47
podsConfig : {
48
48
general : {
49
- replicas : isProduction ? 3 : isStaging ? 2 : 1 ,
49
+ replicas : isProduction || isStaging ? 3 : 1 ,
50
50
} ,
51
51
supertokens : {
52
- replicas : isProduction ? 3 : 1 ,
52
+ replicas : isProduction || isStaging ? 3 : 1 ,
53
53
} ,
54
54
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' ,
58
58
} ,
59
59
schemaService : {
60
- memoryLimit : isProduction ? '2Gi' : '1Gi' ,
60
+ memoryLimit : isProduction || isStaging ? '2Gi' : '1Gi' ,
61
61
} ,
62
62
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 ,
66
66
cpuAverageToScale : 60 ,
67
67
} ,
68
68
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 ,
72
72
cpuAverageToScale : 60 ,
73
73
} ,
74
74
redis : {
0 commit comments