Skip to content

Commit 1c8d5de

Browse files
committed
Static scaling for k8s hpa's
1 parent 1cf502a commit 1c8d5de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/fpm-pool.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ listen = /run/php-fpm.sock
1919
pm.status_path = /fpm-status
2020

2121
; Ondemand process manager
22-
pm = ondemand
22+
pm = static
2323

2424
; The number of child processes to be created when pm is set to 'static' and the
2525
; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'.
@@ -30,7 +30,7 @@ pm = ondemand
3030
; forget to tweak pm.* to fit your needs.
3131
; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand'
3232
; Note: This value is mandatory.
33-
pm.max_children = 100
33+
pm.max_children = 20
3434

3535
; The number of seconds after which an idle process will be killed.
3636
; Note: Used only when pm is set to 'ondemand'

0 commit comments

Comments
 (0)