Skip to content

Commit

Permalink
mpm_event module to improve apache scalability
Browse files Browse the repository at this point in the history
Change-Id: I2ec0dbe6c07a0c510a5f9c43a1b389630464d625
  • Loading branch information
Athithyaa Selvam committed Nov 17, 2023
1 parent d08f3c2 commit 836ce1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tools/container/huelb/hue_httpd_template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ LoadModule lbmethod_byrequests_module /etc/httpd/modules/mod_lbmethod_byrequests
LoadModule authz_core_module /etc/httpd/modules/mod_authz_core.so
LoadModule log_config_module /etc/httpd/modules/mod_log_config.so
LoadModule mime_module /etc/httpd/modules/mod_mime.so
LoadModule mpm_event_module /etc/httpd/modules/mpm_event_module.so

ErrorLog "${HUE_LOG_DIR}/httpd_error_log"
LogLevel warn
Expand All @@ -17,6 +18,16 @@ LogLevel warn
CustomLog "${HUE_LOG_DIR}/httpd_access_log" common
</IfModule>

<IfModule mpm_event_module>
ServerLimit 5000
StartServers 1000
MaxClients 10000
MinSpareThreads 750
MaxSpareThreads 2500
ThreadsPerChild 500
MaxRequestsPerChild 10000
</IfModule>

<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
Expand Down Expand Up @@ -44,6 +55,10 @@ ProxyPass / balancer://hue/ stickysession=ROUTEID
SetEnv proxy-initial-not-pooled 1
ProxyTimeout 900

KeepAlive On
KeepAliveTimeout 120
MaxKeepAliveRequests 500

AllowEncodedSlashes NoDecode
User ${HUEUSER}
Group ${HUEUSER}
Expand Down

0 comments on commit 836ce1f

Please sign in to comment.