From 1a4eb49493677c4d708ba5b9479bd71854637d17 Mon Sep 17 00:00:00 2001 From: Athithyaa Selvam Date: Mon, 30 Oct 2023 11:50:29 -0700 Subject: [PATCH] mpm_event module to improve apache scalability Change-Id: I2ec0dbe6c07a0c510a5f9c43a1b389630464d625 --- tools/container/huelb/hue_httpd_template | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tools/container/huelb/hue_httpd_template b/tools/container/huelb/hue_httpd_template index d606be6837a..6958514845d 100644 --- a/tools/container/huelb/hue_httpd_template +++ b/tools/container/huelb/hue_httpd_template @@ -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 @@ -17,6 +18,16 @@ LogLevel warn CustomLog "${HUE_LOG_DIR}/httpd_access_log" common + + ServerLimit 5000 + StartServers 1000 + MaxClients 10000 + MinSpareThreads 750 + MaxSpareThreads 2500 + ThreadsPerChild 500 + MaxRequestsPerChild 10000 + + TypesConfig /etc/mime.types AddType application/x-compress .Z @@ -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}