Run `ps_mem.py` on you host and collect the values for apache and php-fpm processes.
The, download the [apache_performance.xlsx](apache_performance.xlsx) spreadsheet, fill in the orange fields for your specific server and configure the green calculated values into the Ansible inventory for your host:
```
apache_mpm_prefork:
startservers: 40
serverlimit: 11267
minspareservers: 5
maxspareservers: 10
maxrequestworkers: 11267
maxconnectionsperchild: 0
php_fpm_max_children: 3338
php_fpm_start_servers: 160
php_fpm_min_spare_servers: 80
php_fpm_max_spare_servers: 160
php_fpm_max_requests: 20000
```
Then roll-out the configuration to the host.
You find all the details in the [full documentation](https://devops-tools.docs.lakedrops.com/ansible/roles/apache/).