Browse Source

Passage en MPM Worker

Teddy Cornaut 10 months ago
parent
commit
b5bb5dd6d6
3 changed files with 25 additions and 4 deletions
  1. 1
    1
      dicos/70_shibboleth_idp.xml
  2. 3
    3
      preservice/00-idp
  3. 21
    0
      tmpl/mpm_worker.conf

+ 1
- 1
dicos/70_shibboleth_idp.xml View File

@@ -8,7 +8,7 @@
8 8
         <file filelist='idp' name='/etc/apache2/ports.conf' source='apache-ports.conf' mkdir='True' rm='True'/>
9 9
         <file filelist='idp' name='/etc/apache2/sites-available/default-ssl.conf' source='idp-default-ssl.conf' mkdir='True' rm='True'/>
10 10
         <file filelist='idp' name='/etc/apache2/sites-available/idp.conf' source='apache-idp.conf' mkdir='True' rm='True'/>
11
-        <file filelist='idp' name='/etc/apache2/mods-available/mpm_event.conf' mkdir='True' rm='True'/>
11
+        <file filelist='idp' name='/etc/apache2/mods-available/mpm_worker.conf' mkdir='True' rm='True'/>
12 12
 
13 13
         <!-- Tomcat configuration -->
14 14
         <file filelist='idp' name='/etc/default/tomcat8' source='tomcat8.default' mkdir='True' rm='True'/>

+ 3
- 3
preservice/00-idp View File

@@ -5,10 +5,10 @@
5 5
 
6 6
 if [ "$(CreoleGet activer_idp)" = 'oui' ];then
7 7
     # gestion des modes apache
8
-    ENMOD="ssl headers proxy_ajp"
9
-    DISMOD=""
10
-    CreoleRun "a2enmod $ENMOD >/dev/null"
8
+    ENMOD="ssl headers proxy_ajp mpm_worker"
9
+    DISMOD="mpm_event"
11 10
     [ ! -z $DISMOD ] && CreoleRun "a2dismod $DISMOD >/dev/null"
11
+    CreoleRun "a2enmod $ENMOD >/dev/null"
12 12
 fi
13 13
 
14 14
 exit 0

+ 21
- 0
tmpl/mpm_worker.conf View File

@@ -0,0 +1,21 @@
1
+# event MPM
2
+# StartServers: initial number of server processes to start
3
+# MinSpareThreads: minimum number of worker threads which are kept spare
4
+# MaxSpareThreads: maximum number of worker threads which are kept spare
5
+# ThreadsPerChild: constant number of worker threads in each server process
6
+# MaxRequestWorkers: maximum number of worker threads
7
+# MaxConnectionsPerChild: maximum number of requests a server process serves
8
+<IfModule mpm_worker_module>
9
+    ServerLimit              %%idpApacheServerLimit
10
+    StartServers             %%idpApacheStartServers
11
+    MinSpareThreads          %%idpApacheMinSpareThreads
12
+    MaxSpareThreads          %%idpApacheMaxSpareThreads
13
+    ThreadLimit              %%idpApacheThreadLimit
14
+    ThreadsPerChild          %%idpApacheThreadsPerChild
15
+    MaxRequestWorkers        %%idpApacheMaxRequestWorkers
16
+    MaxConnectionsPerChild   %%idpApacheMaxConnectionsPerChild
17
+    MaxKeepAliveRequests     %%idpApacheMaxKeepAliveRequests
18
+    KeepAliveTimeout         %%idpApacheKeepAliveTimeout
19
+</IfModule>
20
+
21
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet