Updated Tuning EGroupware for higher number of users (markdown)

Ralf Becker 2022-05-24 08:28:13 +02:00
parent a7648004ba
commit 05fba72dca

@ -18,6 +18,37 @@ and rebuild the egroupware container with:
docker-compose up -d docker-compose up -d
``` ```
## Number of processes PHP FPM starts/keeps to server incoming requests
> If you regularly see the following message in the log of your egroupware container (```docker logs -f egroupware```):
```
WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning N children, there are 0 idle, and M total children
```
1. Copy the ```www.conf``` configuration file out of the container (replace 7.4 with the used PHP version!):
```
docker cp egroupware:/etc/php/7.4/fpm/pool.d/www.conf /etc/egroupware-docker/
```
2. Increase - eg. double - the values for ```pm.start_servers```, ```pm.min_spare_servers``` and ```pm.max_spare_servers```:
```
vi /etc/egroupware-docker/www.conf
```
3. Modify your /etc/egroupware-docker/docker-compose.override.yml to mount the file into your container (replacing the original file):
```
vi /etc/egroupware-docker/docker-compose.override.yml
services:
egroupware:
volumes:
- /etc/egroupware-docker/www.conf:/etc/php/7.4/fpm/pool.d/www.conf:ro
```
> Indention in YAML files must be done with space (no tabs!) and the indention matters!
4. Restart your egroupware container with the new config:
```
cd /etc/egroupware-docker
docker-compose up -d
```
## Number of connections in Nginx servers ## Number of connections in Nginx servers
> EGroupware Nginx and our Push server has a limit of 1024 concurrent connections (Nginx proxy on Host under Ubuntu 20.04 only 768!). > EGroupware Nginx and our Push server has a limit of 1024 concurrent connections (Nginx proxy on Host under Ubuntu 20.04 only 768!).