migration.ini [RemoteSettings]
The block [RemoteSettings] of settings/migration.ini, with 13 setting(s).
Never edit settings/migration.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/migration.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/migration.ini.append.phpfor one siteaccess,extension/<extension>/settings/migration.ini.append.phpin an extension (read when the extension is active).
RemoteList
Remotes: other installations this one deploys its migrations to (./console exp:migration:deploy --remotes=...),
all at once and in sync. One [Remote_<id>] section for each id of RemoteList[]; set them in settings/override.
A remote section never holds a secret: Credential names one of the secret store (Setup > Secrets) or an
environment variable (env:VARIABLE). Guide: doc/eng-us/guides/migrations-remote-deploy.md[Remote_production1]
Environment=production alpha, dev, stage, beta, production, post, arch ... (the label reports show)
Transport=rsync ssh (scp), sftp, rsync (over ssh), ftp, ftps (files only), local (this host)
Host=node1.example.com
Port=22
User=deploy
Path=/var/www/site the installation's root on the remote
Php=php the PHP CLI there
Credential=sshkey:deploy_production1
Groups[]=production --remotes=production selects every remote of the group
HostKeyFingerprint=SHA256:... optional: the host key must have it (else it is learnt on first contact)
Trigger=https://node1.example.com/migration/trigger ftp and ftps only: the remote's signed HTTP trigger runs
the migrations there ([TriggerSettings] on the remote); without it FTP only sends
TriggerSecret=trigger_node1 the secret the trigger's requests are signed with (a secret name or env:VARIABLE)
Default: an empty list.
# settings/override/migration.ini.append.php
[RemoteSettings]
# an empty "RemoteList[]" first replaces the shipped list; without it the items are added
RemoteList[]
*/ ?>Parallel
How many remotes are worked on at the same time. The switch (every remote applies) always runs on all at once.
Default: 4.
# settings/override/migration.ini.append.php
[RemoteSettings]
Parallel=4
*/ ?>Timeout
Seconds one remote may take for one phase (preflight, transfer, verify, switch, rollback).
Default: 900.
# settings/override/migration.ini.append.php
[RemoteSettings]
Timeout=900
*/ ?>Retries
How often a connection failure (ssh exit 255, a timeout, a dropped FTP transfer) is tried again in the preflight,
the transfer and the verification. A run on a remote is never started twice.
Default: 2.
# settings/override/migration.ini.append.php
[RemoteSettings]
Retries=2
*/ ?>StoreReports
enabled: every deploy that sends or runs something keeps its report in var/<site>/migration/deploy/reports/.
Default: enabled.
# settings/override/migration.ini.append.php
[RemoteSettings]
StoreReports=enabled
*/ ?>StageOrder
A staged deploy (--staged, the administration's "Staged") puts the remotes in stages by their Environment, in
this order (an environment that is not listed comes last); each stage is switched all or nothing, and a gate
waits for someone to approve the next one (--continue=<deploy id>, or Approve on the deploy's page).
Default: a list of 8: alpha, dev, test, stage, beta, production, post, arch.
# settings/override/migration.ini.append.php
[RemoteSettings]
# an empty "StageOrder[]" first replaces the shipped list; without it the items are added
StageOrder[]
StageOrder[]=alpha
StageOrder[]=dev
StageOrder[]=test
StageOrder[]=stage
StageOrder[]=beta
StageOrder[]=production
StageOrder[]=post
StageOrder[]=arch
*/ ?>Notify
Notices by e-mail about a deploy: failure (refused, failed, taken back, out of sync), gate (a staged deploy waits
for approval), success (deployed or transferred). Plain text, mail category admin.
Default: a list of 2: failure, gate.
# settings/override/migration.ini.append.php
[RemoteSettings]
# an empty "Notify[]" first replaces the shipped list; without it the items are added
Notify[]
Notify[]=failure
Notify[]=gate
*/ ?>NotifyEmail
Where the notices go; empty: site.ini [MailSettings] AdminEmail.
Default: empty.
# settings/override/migration.ini.append.php
[RemoteSettings]
NotifyEmail=
*/ ?>SelfHeal
Self-healing: the fixes a deploy may make on a remote (./console exp:migration:heal there), each only when listed,
each written to the remote's fixes in the report. Before the preflight: stale-lock (a run lock whose process is
gone, older than StaleLockAge, held on that host by the same user), paths (missing migration folders), modes (the
permissions of [FileSettings] on the migration folders and var/<site>/migration, only added); after the switch:
caches (ini and template-override). Never fixed, only reported: PHP or extension versions, a migration's own error.
Default: an empty list.
# settings/override/migration.ini.append.php
[RemoteSettings]
# an empty "SelfHeal[]" first replaces the shipped list; without it the items are added
SelfHeal[]
*/ ?>StaleLockAge
Seconds from which a held run lock whose process is gone counts as stale (SelfHeal[]=stale-lock).
Default: 7200.
# settings/override/migration.ini.append.php
[RemoteSettings]
StaleLockAge=7200
*/ ?>DiskMargin
The free disk space a remote must have beyond the size of the files a deploy sends to it (bytes, or with K, M, G).
Default: 50M.
# settings/override/migration.ini.append.php
[RemoteSettings]
DiskMargin=50M
*/ ?>PhpCheck
The PHP version of a remote against this installation's: major (the same major version, else the deploy stops),
minor (the same major.minor), warn (a difference is only a warning), off.
Default: major.
# settings/override/migration.ini.append.php
[RemoteSettings]
PhpCheck=major
*/ ?>ExtensionCheck
The extensions of a remote against this installation's: migrations (every extension whose migrations are sent is
active there with the same version, else the deploy stops; other differences are warnings), all (every active
extension), warn (differences are only warnings), off.
Default: migrations.
# settings/override/migration.ini.append.php
[RemoteSettings]
ExtensionCheck=migrations
*/ ?>Related
Generated by ./console exp:help:examples from settings/migration.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.