local:vmoodle:cli:bulkinitmnet

Additional Network Scripts: Mnet Network Initialisation (Industrialisation)

VMoodle: Technical Guide

Context

This script industrialises the launch of the init_mnet_node.php script (worker) on all the available hosts of a VMoodle network.

It will ONLY process active tenants.

Syntax

  \$sudo -u www-data /usr/bin/php local/vmoodle/cli/bulkinitmnet.php --withmaster

Options

  • -m, –withmaster primes the main site (network head) in “subs” mode before processing the network tenants
  • -h, –help Displays help
  • -d, –debug Enables debug mode (Moodle debug) of the workers.
  • -v, –verbose Increases output verbosity
  • -s, –fullstop Stops the command at the first worker error encountered, otherwise skips the faulty worker and continues.

Action

With the withmaster mode active:

  • Connects all active tenants to the network head.
  • Connects each tenant to the network head.

Without the withmaster mode active:

  • Only connects the tenants.

Additional notes

In the current state of the script, only a “star” configuration of the network is supported: The star configuration puts the main site (network head) in relation with each tenant, and each tenant knows ONLY the network head, positioning itself in a “star” around the main site.

Other configurations are possible:

  • Full network configuration (all the tenants and the main site are all interconnected)
  • Subnetwork cluster configuration (some subsets of tenants are interconnected, based on the value of their subnetwork identifier).

This script does not handle these configurations.


Back to the technical guide - Back to the component index - Back to the plugins index - Back to the catalogue

local/vmoodle/cli/bulkinitmnet.txt · Dernière modification : de 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki