This shows you the differences between two versions of the page.
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' | + | le résumé awstats d' |
- | {{: | + | * Décembre 2013 |
+ | {{: | ||
+ | |||
+ | * Janvier 2014 | ||
+ | |||
+ | {{: | ||
===== 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:// | ||
+ | |||
< | < | ||
Line 576: | Line 585: | ||
dummy | dummy | ||
numiptent | numiptent | ||
- | </ | + | </ |
+ | |||
+ | ===== Process Apache ===== | ||
+ | |||
+ | configuration standard du package apache pour RedHat/ | ||
+ | |||
+ | ==== 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", | ||
+ | from: http:// | ||
+ | |||
+ | "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:// | ||
+ | explications détaillées | ||
+ | * http:// | ||
+ | |||
+ | on a les librairies GD et ldap sur moodle qui sont peut-etre douteuses sur le sujet!? | ||
+ | |||
+ | Parametres prefork positionnés | ||
+ | |||
+ | < | ||
+ | < | ||
+ | StartServers | ||
+ | MinSpareServers | ||
+ | MaxSpareServers | ||
+ | ServerLimit | ||
+ | MaxClients | ||
+ | MaxRequestsPerChild | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | [root@mooc ~]# apachectl -V | ||
+ | Server version: Apache/ | ||
+ | Server built: | ||
+ | Server' | ||
+ | Server loaded: | ||
+ | Compiled using: APR 1.3.9, APR-Util 1.3.9 | ||
+ | Architecture: | ||
+ | Server MPM: | ||
+ | threaded: | ||
+ | forked: | ||
+ | Server compiled with.... | ||
+ | -D APACHE_MPM_DIR=" | ||
+ | -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="/ | ||
+ | -D SUEXEC_BIN="/ | ||
+ | -D DEFAULT_PIDLOG=" | ||
+ | -D DEFAULT_SCOREBOARD=" | ||
+ | -D DEFAULT_LOCKFILE=" | ||
+ | -D DEFAULT_ERRORLOG=" | ||
+ | -D AP_TYPES_CONFIG_FILE=" | ||
+ | -D SERVER_CONFIG_FILE=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | Process apache par defaut | ||
+ | |||
+ | < | ||
+ | | ||
+ | 22 | ||
+ | </ | ||
+ | |||
+ | stats | ||
+ | |||
+ | < | ||
+ | $ curl -s ' | ||
+ | Total Accesses: 119166 | ||
+ | Total kBytes: 2134616 | ||
+ | CPULoad: 4.27854 | ||
+ | Uptime: 312481 | ||
+ | ReqPerSec: .381354 | ||
+ | BytesPerSec: | ||
+ | BytesPerReq: | ||
+ | BusyWorkers: | ||
+ | IdleWorkers: | ||
+ | Scoreboard: R_R_.__RR_WW_W._._R_....RRR..................................................................................................................................................................................................................................... | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ |