Adding load-balancing on unix sockets

This commit is contained in:
VirtuBox
2019-03-20 02:12:13 +01:00
parent dca60b4226
commit 57bd6257db
8 changed files with 238 additions and 127 deletions

View File

@@ -30,7 +30,12 @@ server 127.0.0.1:{{debug7}};
# PHP 7.2 upstream with load-balancing on two unix sockets
upstream php72 {
least_conn;
server unix:/var/run/php/php72-fpm.sock;
server unix:/var/run/php/php72-two-fpm.sock;
keepalive 5;
}
# PHP 7.2 debug
@@ -63,4 +68,3 @@ upstream netdata {
server 127.0.0.1:19999;
keepalive 64;
}