Skip to content

Use priorities when bootstrapping replica in supervised mode #4565

Open
@TarantoolBot

Description

@TarantoolBot

Product: Tarantool
Since: 3.3.0
Root document:

Details

Now, when working in replication.failover = supervised mode the
instance priorities specified in the
failover.replicasets.<replicaset-name>.priority section are used
to select the bootstrap leader when using bootstrap_strategy: auto.
The replica with the highest priority is chosen as a bootstrap leader.
If there are more than one instance with the highest priority the first
one sorted by name alphabetically is chosen.

Example:

replication:
  failover: supervised
failover:
  replicasets:
    replicaset-001:
      priority:
        instance-002: 5
        instance-003: -3
        instance-004: 5

Setting up the config like this will make Tarantool choose
instance-002 as the bootstrap leader.
Requested by @georgiy-belyanin in tarantool/tarantool@2eee236.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions