local:vmoodle:install

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
local:vmoodle:install [2018/02/21 23:28]
admin [Mise en oeuvre du cron virtualisé]
local:vmoodle:install [2023/01/31 16:46] (current)
Line 1: Line 1:
 +<​html><​!-- nomoodle --></​html>​{{ :​logo-apl.png?​nolink |}}<​html><​!-- /nomoodle --></​html>​
 ===== VMoodle (local) : Installation===== ===== VMoodle (local) : Installation=====
  
Line 125: Line 126:
    */10 * * * * wget -O /dev/null -q http://​virtual1.mymoodles.edu    */10 * * * * wget -O /dev/null -q http://​virtual1.mymoodles.edu
  
-then you can register as many ''​wget''​ calls pointing all your subdomains, as yo'll do for independant standard moodles. If you use the command line method ​  +then you can register as many ''​wget''​ calls pointing all your subdomains, as yo'll do for independant standard moodles. If you use the command line method ​you will have to run the VMoodle enabled cron scriptand tell in the command line for which host you are running the script:
- +
-Pour obtenir un basculement effectif de l'​instance de serviceutilisez à la place le script : +
  
    /​local/​vmoodle/​cli/​cron.php --host=http://​my_virtual.mymoodledomain.com    /​local/​vmoodle/​cli/​cron.php --host=http://​my_virtual.mymoodledomain.com
  
-en précisant explicitement la racine ​wwwroot ​que vous voulez adresser.+You will provide the "​official" ​wwwroot ​the virtual site is attached to.
  
-=== Utilisation de l'​ordonnanceur de cron ===+=== Using the VCron hyper rotator ​===
  
-VMoodle ​fournit en plus un ordonnanceur de cron qui est lancé sur l'​installation principaleet est capable de faire "​tourner"​ automatiquement le déclenchement des crons virtuels de toutes les instancesVous pouvez utiliser ce script en mode HTTP ou en mode script ​+The VMoodle ​implementation provides a vcron scheduler that will be lauched in the master moodle host contextand will automatically rotate and schedule all submoodle ​crons. ​VCron scheduler can operate using HTTP calls or command line execs (internally configured) and can itself be invoked through ​HTTP: 
  
    wget http://​main.mymoodledomain.com/​local/​vmoodle/​vcron.php    wget http://​main.mymoodledomain.com/​local/​vmoodle/​vcron.php
  
-ou+or in command line
  
    sudo -uwww-data php /​root/​to/​moodle/​local/​vmoodle/​cli/​vcron.php    sudo -uwww-data php /​root/​to/​moodle/​local/​vmoodle/​cli/​vcron.php
  
-La fréquence de rotation de l'​ordonnanceur de cron doit être très rapide afin de permettre que chaque site virtuel soit activé suffisamment souvent+You may internally configure the vcron settings to raise the number of virtual moodle processed per cron run.
  
 +the basic calculation for vcron rotation is : 
  
-----+With a "run per turn" of 1 and 20 virtual moodles and a cron period of 1 minute per turn, each vmoodle will be processed once per 20 minutes. Raising the "run per turn" to 2 will divided the effective cron period to 10 minutes per vmoodle instance.
  
 +For very large moodle arrays, it may be worth having a separated machine to process the crons for all the moodle instances. Cron processes may ovelap one on each other, but will not pull down theusual user's page distribution too much. 
 +
 +A very advanced feature (undocumented here) allow to distribute the vcron scheduling on several clusters.
 +
 +----
  
 <​html><​!-- nomoodle --></​html>​ <​html><​!-- nomoodle --></​html>​
local/vmoodle/install.1519252102.txt.gz · Last modified: 2024/04/04 15:50 (external edit)