Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,150 of 9,150 pages
About the help in other languages
All help pages

cluster.ini [ClusterSettings]

The settings of [ClusterSettings] in cluster.ini: HostList, DefaultPhp, ConnectTimeout, Timeout, Mode, AllowRootUser, SshOptions, LogFile

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/cluster/ClusterSettings.md

On this page

cluster.ini [ClusterSettings]

The block [ClusterSettings] of settings/cluster.ini, with 8 setting(s).

Never edit settings/cluster.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/cluster.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/cluster.ini.append.php for one siteaccess,
  • extension/<extension>/settings/cluster.ini.append.php in an extension (read when the extension is active).

HostList

The hosts, in the order the commands visit them. Each one has a block
[Host_<name>] below. A name is letters, digits, dot, dash and underscore.

HostList[]
HostList[]=web
HostList[]=cluster

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
# an empty "HostList[]" first replaces the shipped list; without it the items are added
HostList[]
*/ ?>

DefaultPhp

The PHP binary on a host whose block names none (Php=).

Default: php.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
DefaultPhp=php
*/ ?>

ConnectTimeout

Seconds ssh waits for a host to answer (ssh -o ConnectTimeout).

Default: 20.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
ConnectTimeout=20
*/ ?>

Timeout

Seconds one host may take for everything it is asked to do; a host that takes
longer is stopped and counts as failed.

Default: 1800.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
Timeout=1800
*/ ?>

Mode

Run on the hosts one after the other (sequential, the default) or all at once
(parallel). --parallel and --sequential on the command line win.

Default: sequential.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
Mode=sequential
*/ ?>

AllowRootUser

Add --allow-root-user to every console command, so that a host where the ssh
login (or User=) is root runs it. A non-root user ignores the option.
A host block can set its own AllowRootUser=enabled|disabled.

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
AllowRootUser=enabled
*/ ?>

SshOptions

More ssh options for every host, each as ssh -o takes it.
SshOptions[]=StrictHostKeyChecking=accept-new

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
# an empty "SshOptions[]" first replaces the shipped list; without it the items are added
SshOptions[]
*/ ?>

LogFile

The log in var/log where every run is written, one line per host
(in addition to the audit event system.cluster.run).

Default: cluster.log.

<?php /* #?ini charset="utf-8"?
# settings/override/cluster.ini.append.php
[ClusterSettings]
LogFile=cluster.log
*/ ?>

Generated by ./console exp:help:examples from settings/cluster.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x