Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:systemes:moodle:moodle_mooc [2014/01/22 13:50]
procacci@tem-tsp.eu [Tunning openvz]
docpublic:systemes:moodle:moodle_mooc [2014/01/22 14:37] (current)
procacci@tem-tsp.eu [Awstats]
Line 57: Line 57:
 ==== Awstats ==== ==== Awstats ====
  
-le résumé awstats d'apache pour le mois de Décembre 2013+le résumé awstats d'apache 
  
-{{:docpublic:systemes:moodle:mooc-concepts-telecom-awstats-resum12-2013.png?200|}}+  * Décembre 2013 
 +{{:docpublic:systemes:moodle:mooc-concepts-telecom-awstats-resum12-2013.png?200|}}   
 + 
 +  * Janvier 2014 
 + 
 +{{:docpublic:systemes:moodle:2014-01-22-mooc-tsp-awstat-resume-janvier.jpg?200|}}
  
 ===== Moodle Mooc ===== ===== Moodle Mooc =====
Line 583: Line 588:
  
 ===== Process Apache ===== ===== Process Apache =====
 +
 +configuration standard du package apache pour RedHat/centos, mode Prefork conservé par defaut, 
 +
 +==== MPM Prefork vs Worker ====
 +
 +A propos de  MPM prefork vs worker il y a bien des soucis avec php qui serait parfois "non thread-safe", donc problématique sur le model worker (threaded) d'apache
 +from: http://stackoverflow.com/questions/1623914/what-is-thread-safe-or-non-thread-safe-in-php
 +
 +"Since with mod_php, PHP gets loaded right into Apache, if Apache is going to handle concurrency using its Worker MPM (that is, using Threads) then PHP must be able to operate within this same multi-threaded environment -- meaning, PHP has to be thread-safe to be able to play ball correctly with Apache!
 +
 +At this point, you should be thinking "Ok, so if I'm using a multi-threaded web server and I'm going to embed PHP right into it, then I must use the thread-safe version of PHP". And this would be correct thinking. However, as it happens, PHP's thread-safety is highly disputed. It's a use-if-you-really-really-know-what-you-are-doing ground."
 +
 +liste des extensions apache non thread-safe
 +  * http://php.net/manual/en/faq.obtaining.php#faq.obtaining.optional
 +explications détaillées
 +  * http://www.trbailey.net/tech/mpm-worker.html
 +
 +on a les librairies GD et ldap sur moodle qui sont peut-etre douteuses sur le sujet!?
 +
 +Parametres prefork positionnés
 +
 +<code>
 +<IfModule prefork.c>
 +StartServers       8
 +MinSpareServers    5
 +MaxSpareServers   20
 +ServerLimit      256
 +MaxClients       256
 +MaxRequestsPerChild  4000
 +</IfModule>
 +</code>
 +
 +<code>
 +[root@mooc ~]# apachectl -V
 +Server version: Apache/2.2.15 (Unix)
 +Server built:   Aug 13 2013 17:27:11
 +Server's Module Magic Number: 20051115:25
 +Server loaded:  APR 1.3.9, APR-Util 1.3.9
 +Compiled using: APR 1.3.9, APR-Util 1.3.9
 +Architecture:   32-bit
 +Server MPM:     Prefork
 +  threaded:     no
 +    forked:     yes (variable process count)
 +Server compiled with....
 + -D APACHE_MPM_DIR="server/mpm/prefork"
 + -D APR_HAS_SENDFILE
 + -D APR_HAS_MMAP
 + -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 + -D APR_USE_SYSVSEM_SERIALIZE
 + -D APR_USE_PTHREAD_SERIALIZE
 + -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 + -D APR_HAS_OTHER_CHILD
 + -D AP_HAVE_RELIABLE_PIPED_LOGS
 + -D DYNAMIC_MODULE_LIMIT=128
 + -D HTTPD_ROOT="/etc/httpd"
 + -D SUEXEC_BIN="/usr/sbin/suexec"
 + -D DEFAULT_PIDLOG="run/httpd.pid"
 + -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 + -D DEFAULT_LOCKFILE="logs/accept.lock"
 + -D DEFAULT_ERRORLOG="logs/error_log"
 + -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 + -D SERVER_CONFIG_FILE="conf/httpd.conf"
 +</code>
 +
  
  
Line 608: Line 677:
  
 </code> </code>
 +
 +
                
docpublic/systemes/moodle/moodle_mooc.1390398610.txt.gz · Last modified: 2014/01/22 13:50 by procacci@tem-tsp.eu
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0