exp:expclusterrun
Run a console command (or, with --shell, a command line) in this installation on every host of settings/cluster.ini, over ssh.
Script bin/php/expclusterrun.php, code in kernel/private/classes/commands/expclusterrun.php. Run it from the installation root, as the user the web server runs as:
./console exp:expclusterrun --help
./console exp:cluster:run --help
php bin/php/expclusterrun.php --helpHelp text
Run a command in this installation on every host, over ssh
The hosts are settings/cluster.ini [ClusterSettings] HostList[] (or --hosts). The words
after -- are a console command each host runs as bin/php/console <words> in its root, with
its PHP binary, as its User= (else the ssh login); --shell runs them as a command line for
sh. One host after the other by default, --parallel all at once. PASS/FAIL per host.
./console exp:cluster:run -- exp:cache status
./console exp:cluster:run --hosts=web,cluster -- exp:maintenance status
./console exp:cluster:run --parallel --shell -- uptime
./console exp:cluster:run --dry-run -- exp:ezcache --clear-tag=ini
Exit code: 0 every host passed; 1 a host failed; 2 wrong options or settings.Related
Generated by ./console exp:help:examples from bin/php/expclusterrun.php, kernel/private/classes/commands/expclusterrun.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.