service.promote

The Synapse service.promote tool can be used to promote a mirror to the leader.

Syntax

service.promote is executed using python -m synapse.tools.service.promote. The command usage is as follows:

python -m synapse.tools.service.promote -h

usage: synapse.tools.service.promote [-h] [--svcurl SVCURL] [--failure]

Promote a mirror to the leader.

Example (being run from a Cortex mirror docker container):
    python -m synapse.tools.service.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.

Note

This tool was previously run using synapse.tools.promote. It can still be run with that name.