infrastructure/roles/archwiki/templates/php-fpm.conf.j2
Sven-Hendrik Haase b6cbbcb879
archwiki: Decrease number of workers
The box now is much smaller than the box we had the wiki on before and so we used a lot of workers because it didn't matter.
The new box had too much memory pressure and so we had to decrease this.
In a load test, it lead to much better performance under high HTTP load.
2021-01-06 16:12:08 +01:00

28 lines
904 B
Django/Jinja

[global]
error_log = syslog
daemonize = no
[{{ archwiki_user }}]
listen = {{ archwiki_socket }}
listen.owner = {{ archwiki_user }}
listen.group = http
listen.mode = 0660
pm = dynamic
pm.max_children = 30
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 2000
php_admin_value[open_basedir] = {{ archwiki_dir }}:/usr/bin/diff3:/usr/bin/diff:/var/log/archwiki
php_admin_value[session.save_path] = {{ archwiki_dir }}/sessions
php_admin_value[upload_tmp_dir] = {{ archwiki_dir }}/uploads
env[TMPDIR] = {{ archwiki_dir }}/uploads
php_admin_value[opcache.memory_consumption] = 128
php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 4000
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
php_admin_value[disable_functions] = passthru, exec, proc_open, shell_exec, system, popen