Rocky 9.x Configure apache web server for concurrency
From Notes_Wiki
Revision as of 05:38, 15 October 2022 by Saurabh (talk | contribs) (Created page with "Home > Rocky Linux or CentOS > Rocky Linux 9.x > Web Servers > Apache > Configure for concurrency Concurrency is handled via mpm module. There are different types of mpm modules out of which only one can be used at a time. We can see currently enabled mpm module via: <pre> httpd -V | grep -i mpm </pre> We can see whic...")
Home > Rocky Linux or CentOS > Rocky Linux 9.x > Web Servers > Apache > Configure for concurrency
Concurrency is handled via mpm module. There are different types of mpm modules out of which only one can be used at a time. We can see currently enabled mpm module via:
httpd -V | grep -i mpm
We can see which line is uncommented in '/etc/httpd/conf.modules.d/00-mpm.conf' to validate which mpm module is enabled.
To configure the enabled mpm module use something similar to below in '/etc/httpd/conf.modules.d/10-mpm-event.conf':
<IfModule mpm_event_module> ServerLimit 250 StartServers 10 MinSpareThreads 75 MaxSpareThreads 250 ThreadLimit 64 ThreadsPerChild 32 MaxClients 8000 MaxRequestsPerChild 10000 </IfModule>
Refer:
- https://serverfault.com/questions/775855/how-to-configure-apache-workers-for-maximum-concurrency
- https://httpd.apache.org/docs/current/mod/event.html
- https://httpd.apache.org/docs/current/mod/worker.html
Home > Rocky Linux or CentOS > Rocky Linux 9.x > Web Servers > Apache > Configure for concurrency