Closed x01AS closed 3 weeks ago
Hi Anton,
In this PR, I’ve made the following changes to improve Apache performance:
ThreadsPerChild
ServerLimit
MaxRequestWorkers
MaxConnectionsPerChild
StartServers
MinSpareThreads
MaxSpareThreads
ProxyPassReverse
Thank you for this, I'm not using Apache2 for 10 years. So I could only help with Nginx.
Apache Performance Improvements
Hi Anton,
In this PR, I’ve made the following changes to improve Apache performance:
httpd-mpm.conf
ThreadsPerChild
increased to 64 (more aggressive for 2 vCPUs)ServerLimit
set to 8 (2 vCPUs * 4)MaxRequestWorkers
set to 512 (64 * 8)MaxConnectionsPerChild
set to 10,000, as you suggested (helps prevent memory leaks while maintaining good performance)StartServers
increased to 4 to handle initial load more efficientlyMinSpareThreads
andMaxSpareThreads
adjusted proportionally to manage load variationshttpd.conf
my-website.conf
ProxyPassReverse
to ensure these URLs align with the client’s view of the application, avoiding confusion or access issues