File tree Expand file tree Collapse file tree 3 files changed +49
-16
lines changed Expand file tree Collapse file tree 3 files changed +49
-16
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,8 @@ spec:
168
168
- name : CGIMAP_PORT
169
169
value : {{ quote 8000 }}
170
170
{{- end }}
171
+ - name : PASSENGER_MAX_POOL_SIZE
172
+ value : {{ .Values.web.env.PASSENGER_MAX_POOL_SIZE | default "6" | quote }}
171
173
volumeMounts :
172
174
- mountPath : /dev/shm
173
175
name : shared-memory
Original file line number Diff line number Diff line change @@ -11,16 +11,33 @@ spec:
11
11
minReplicas : {{ .Values.web.autoscaling.minReplicas }}
12
12
maxReplicas : {{ .Values.web.autoscaling.maxReplicas }}
13
13
metrics :
14
- - type : Resource
15
- resource :
16
- name : cpu
17
- target :
18
- type : Utilization
19
- averageUtilization : {{ .Values.web.autoscaling.cpuUtilization }}
20
- - type : Resource
21
- resource :
22
- name : memory
23
- target :
24
- type : Utilization
25
- averageUtilization : {{ .Values.web.autoscaling.memoryUtilization }}
14
+ {{- if .Values.web.autoscaling.cpuUtilization.enable }}
15
+ - type : Resource
16
+ resource :
17
+ name : cpu
18
+ target :
19
+ type : Utilization
20
+ averageUtilization : {{ .Values.web.autoscaling.cpuUtilization.value }}
21
+ {{- end }}
22
+ {{- if .Values.web.autoscaling.memoryUtilization.enable }}
23
+ - type : Resource
24
+ resource :
25
+ name : memory
26
+ target :
27
+ type : Utilization
28
+ averageUtilization : {{ .Values.web.autoscaling.memoryUtilization.value }}
29
+ {{- end }}
30
+ behavior :
31
+ scaleUp :
32
+ stabilizationWindowSeconds : {{ .Values.web.autoscaling.behavior.scaleUp.stabilizationWindowSeconds | default 60 }}
33
+ policies :
34
+ - type : Percent
35
+ value : {{ .Values.web.autoscaling.behavior.scaleUp.policyValue | default 100 }}
36
+ periodSeconds : {{ .Values.web.autoscaling.behavior.scaleUp.periodSeconds | default 60 }}
37
+ scaleDown :
38
+ stabilizationWindowSeconds : {{ .Values.web.autoscaling.behavior.scaleDown.stabilizationWindowSeconds | default 60 }}
39
+ policies :
40
+ - type : Percent
41
+ value : {{ .Values.web.autoscaling.behavior.scaleDown.policyValue | default 50 }}
42
+ periodSeconds : {{ .Values.web.autoscaling.behavior.scaleDown.periodSeconds | default 60 }}
26
43
{{- end }}
Original file line number Diff line number Diff line change 162
162
RAILS_STORAGE_REGION : us-east-1
163
163
RAILS_STORAGE_BUCKET : osmseed-website-bucket
164
164
EXTERNAL_CGIMAP : false
165
+ PASSENGER_MAX_POOL_SIZE : 6
165
166
resources :
166
167
enabled : false
167
168
requests :
@@ -175,11 +176,24 @@ web:
175
176
nodeSelector :
176
177
enabled : false
177
178
autoscaling :
178
- enabled : false
179
+ enabled : true
179
180
minReplicas : 1
180
- maxReplicas : 3
181
- cpuUtilization : 60
182
- memoryUtilization : 60
181
+ maxReplicas : 6
182
+ cpuUtilization :
183
+ enable : false
184
+ value : 85
185
+ memoryUtilization :
186
+ enable : false
187
+ value : 85
188
+ behavior :
189
+ scaleUp :
190
+ stabilizationWindowSeconds : 60
191
+ policyValue : 100
192
+ periodSeconds : 60
193
+ scaleDown :
194
+ stabilizationWindowSeconds : 60
195
+ policyValue : 50
196
+ periodSeconds : 60
183
197
sharedMemorySize : 256Mi
184
198
livenessProbeExec : true
185
199
# ====================================================================================================
You can’t perform that action at this time.
0 commit comments