Vasyl Saienko | 3d516be | 2018-08-16 07:01:24 +0000 | [diff] [blame] | 1 | apache: |
| 2 | server: |
| 3 | enabled: true |
| 4 | bind: |
| 5 | address: 0.0.0.0 |
| 6 | ports: |
| 7 | - 80 |
| 8 | - 443 |
| 9 | protocol: tcp |
| 10 | modules: |
| 11 | - ssl |
| 12 | - rewrite |
| 13 | default_mpm: prefork |
| 14 | mpm: |
| 15 | prefork: |
| 16 | servers: |
| 17 | start: 5 |
| 18 | spare: |
| 19 | min: ${apache:server:mpm:prefork:servers:start} |
| 20 | max: 10 |
| 21 | # Avoid memory leakage by restarting workers every x requests |
| 22 | max_requests: 0 |
| 23 | # Should be 80% of server memory / average memory usage of one worker |
| 24 | max_clients: 150 |
| 25 | # Should be same or more than max clients |
| 26 | limit: ${apache:server:mpm:prefork:max_clients} |
| 27 | event: |
| 28 | servers: |
| 29 | start: 5 |
| 30 | spare: |
| 31 | min: 25 |
| 32 | max: 75 |
| 33 | threads_per_child: 25 |
| 34 | # Avoid memory leakage by restarting workers every x requests |
| 35 | max_requests: 0 |
| 36 | # Should be 80% of server memory / average memory usage of one worker |
| 37 | max_clients: 150 |
| 38 | limit: 64 |
| 39 | worker: |
| 40 | servers: |
| 41 | start: 5 |
| 42 | spare: |
| 43 | min: 25 |
| 44 | max: 75 |
| 45 | threads_per_child: 25 |
| 46 | # Avoid memory leakage by restarting workers every x requests |
| 47 | max_requests: 0 |
| 48 | # Should be 80% of server memory / average memory usage of one worker |
| 49 | max_clients: 150 |
| 50 | limit: 64 |