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:41]
procacci@tem-tsp.eu [Rapport tsung]
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 530: Line 535:
  
 La machine étant sous forme de VM / container openvz, des ajustements ont du etre mis en place pour repondre à la monté en charge La machine étant sous forme de VM / container openvz, des ajustements ont du etre mis en place pour repondre à la monté en charge
 +
 +une reference en français sur le sujet: 
 +  * http://www.kogitae.fr/kafe-in-net-blogopenvz-les-ressources-systeme-dans-un-ve.html
 +
  
 <code> <code>
Line 576: Line 585:
             dummy                                              0  9223372036854775807  9223372036854775807                    0             dummy                                              0  9223372036854775807  9223372036854775807                    0
             numiptent                      53                   53                  128                  128                    0              numiptent                      53                   53                  128                  128                    0 
-</code>            +</code>  
 + 
 +===== 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> 
 + 
 + 
 + 
 +Process apache par defaut    
 + 
 +<code> 
 + [root@mooc ~]# ps -elf | grep http | wc -l 
 +22 
 +</code> 
 + 
 +stats 
 + 
 +<code> 
 +$ curl -s 'http://mooc.telecom-sudparis.eu/server-status?auto'  
 +Total Accesses: 119166 
 +Total kBytes: 2134616 
 +CPULoad: 4.27854 
 +Uptime: 312481 
 +ReqPerSec: .381354 
 +BytesPerSec: 6995.14 
 +BytesPerReq: 18342.9 
 +BusyWorkers: 11 
 +IdleWorkers:
 +Scoreboard: R_R_.__RR_WW_W._._R_....RRR..................................................................................................................................................................................................................................... 
 + 
 +</code> 
 + 
 + 
 +       
docpublic/systemes/moodle/moodle_mooc.1390398116.txt.gz · Last modified: 2014/01/22 13:41 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