promote
The Synapse promote
tool can be used to promote a mirror to the leader.
Syntax
promote
is executed using python -m synapse.tools.promote
. The command usage is as follows:
python -m synapse.tools.promote -h
usage: synapse.tools.promote [-h] [--svcurl SVCURL] [--failure]
Promote a mirror to the leader.
Example (being run from a Cortex mirror docker container):
python -m synapse.tools.promote
options:
-h, --help show this help message and exit
--svcurl SVCURL The telepath URL of the Synapse service.
--failure Promotion is due to leader being offline. Graceful handoff
is not possible.