Skip to content

Commit

Permalink
platform-api: add phpfpm process management configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Sep 26, 2023
1 parent 4e68c7e commit 5e99ee0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/platform-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: ushahidi-platform-api
version: 0.0.1-alpha.22
version: 0.0.1-alpha.23
icon: https://github.ushahidi.org/helm-charts/icon.png
12 changes: 12 additions & 0 deletions charts/platform-api/templates/api-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ spec:
value: "tcp://{{ .Values.config.redis.host }}:{{ .Values.config.redis.port }}"
- name: PHP_EXEC_TIME_LIMIT
value: {{ .Values.api.params.php_exec_time_limit | quote }}
- name: PHPFPM_PM_MAX_CHILDREN
value: {{ .Values.api.params.phpfpm_pm_max_children | quote }}
- name: PHPFPM_PM_START_SERVERS
value: {{ .Values.api.params.phpfpm_pm_start_servers | quote }}
- name: PHPFPM_PM_MIN_SPARE_SERVERS
value: {{ .Values.api.params.phpfpm_pm_min_spare_servers | quote }}
- name: PHPFPM_PM_MAX_SPARE_SERVERS
value: {{ .Values.api.params.phpfpm_pm_max_spare_servers | quote }}
- name: PHPFPM_PM_PROCESS_IDLE_TIMEOUT
value: {{ .Values.api.params.phpfpm_pm_process_idle_timeout | quote }}
- name: PHPFPM_PM_MAX_REQUESTS
value: {{ .Values.api.params.phpfpm_pm_max_requests | quote }}
- name: PHP_UPLOAD_MAX_FILESIZE
value: {{ .Values.api.params.upload_max_filesize | quote }}
- name: PHP_POST_MAX_SIZE
Expand Down
6 changes: 6 additions & 0 deletions charts/platform-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ api:
debug: "False"
params:
php_exec_time_limit: 60
phpfpm_pm_max_children: 5
phpfpm_pm_start_servers: 2
phpfpm_pm_min_spare_servers: 1
phpfpm_pm_max_spare_servers: 3
phpfpm_pm_process_idle_timeout: "10s"
phpfpm_pm_max_requests: 500
upload_max_filesize: 2m # this should match the value below with units
image_max_size: '2000000' # this should match the previous value but in bytes
limits:
Expand Down

0 comments on commit 5e99ee0

Please sign in to comment.