From e434bf9fce6b5b4f581e3da6a6252baa66fcc4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Thu, 4 Sep 2014 16:11:06 +0200 Subject: [PATCH 1/3] Support more concurrent connections for z-push My logs were showing lots of: [04-Sep-2014 15:52:41] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it --- setup/zpush.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/zpush.sh b/setup/zpush.sh index 72ba0742..c518de3b 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -65,6 +65,10 @@ rm -f /usr/local/lib/z-push/autodiscover/config.php cp conf/zpush/autodiscover_config.php /usr/local/lib/z-push/autodiscover/config.php sed -i "s/PRIMARY_HOSTNAME/$PRIMARY_HOSTNAME/" /usr/local/lib/z-push/autodiscover/config.php +# Bump up max_children to support more concurrent connections +tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \ + pm.max_children=8 + # Some directories it will use. mkdir -p /var/log/z-push From 9fd6958dc24c63da04b7d5f3ae91074eb5d1ec25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Thu, 4 Sep 2014 16:39:38 +0200 Subject: [PATCH 2/3] Revert commit "Support more concurrent connections for z-push" --- setup/zpush.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/setup/zpush.sh b/setup/zpush.sh index c518de3b..72ba0742 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -65,10 +65,6 @@ rm -f /usr/local/lib/z-push/autodiscover/config.php cp conf/zpush/autodiscover_config.php /usr/local/lib/z-push/autodiscover/config.php sed -i "s/PRIMARY_HOSTNAME/$PRIMARY_HOSTNAME/" /usr/local/lib/z-push/autodiscover/config.php -# Bump up max_children to support more concurrent connections -tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \ - pm.max_children=8 - # Some directories it will use. mkdir -p /var/log/z-push From 6b13ac1ca98809557747f7d179e30c930f89d022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Thu, 4 Sep 2014 16:40:33 +0200 Subject: [PATCH 3/3] Support more concurrent connections --- setup/web.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/web.sh b/setup/web.sh index be89711b..b08ed4f5 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -18,6 +18,10 @@ cp conf/nginx-ssl.conf /etc/nginx/nginx-ssl.conf tools/editconf.py /etc/nginx/nginx.conf -s \ server_names_hash_bucket_size="64;" +# Bump up max_children to support more concurrent connections +tools/editconf.py /etc/php5/fpm/pool.d/www.conf -c ';' \ + pm.max_children=8 + # Other nginx settings will be configured by the management service # since it depends on what domains we're serving, which we don't know # until mail accounts have been created.