exp:expclusterenable
Make the installation a one-node DFS cluster: the share, the cluster tables, the settings, the files moved in; a dry run unless --apply.
Script bin/php/expclusterenable.php, code in kernel/private/classes/commands/expclusterenable.php. Run it from the installation root, as the user the web server runs as:
./console exp:expclusterenable --help
./console exp:cluster:enable --help
php bin/php/expclusterenable.php --helpHelp text
Make the installation a one-node DFS cluster
Makes the share folder (default: dfs next to the installation, --share another one outside it), the
kernel's cluster tables in the site's own database (kernel/sql/<engine>/cluster_dfs_schema.sql; the
collections of cluster_dfs_schema.json on MongoDB), the
cluster settings as a marked block of settings/override/file.ini.append.php and config.cluster.php
for the cluster gateway, clears the INI caches, and moves the stored files in with clusterize.php
(once per var directory; --no-move leaves that for later). MySQL/MariaDB, PostgreSQL, MongoDB, Oracle, SQL Server,
or SQLite for
one node only. The rewrite rule of the gateway is printed for the web server: add it
in front of the site's own rules. Files that change are backed up to var/backup/cluster/. Without
--apply nothing is written.
./console exp:cluster:enable what would be done
./console exp:cluster:enable --apply
./console exp:cluster:enable --share=/mnt/e1/dfs/example.com --apply
Exit code: 0 done, shown, or on already; 1 a step failed (what was written is put back); 2 wrong
options or the installation cannot be a cluster (its database, its own cluster settings).Options
| Option | Value | Help |
|---|---|---|
--share | required | the share folder, an absolute path outside the installation (default: dfs next to it) |
--backend | required | auto (the default: the site's database), mysqli, postgresql, sqlite, mongodb, oracle or sqlserver |
--no-move | do not move the stored files in now (run bin/php/clusterize.php yourself) | |
--apply | write; without it nothing is changed |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expclusterenable.php, kernel/private/classes/commands/expclusterenable.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.