Setting up replicasets
cartridge replicasets command is used to configure replica sets on local start.
cartridge replicasets [subcommand] [flags] [args]
The following flags work with any
||The directory where PID and socket files are stored.
||Instances’ configuration file.
Replicasets are configured using the Cartridge Lua API.
All instances in the topology are described in a single file,
instances.yml (see the
The instances receive their configuration through instance console sockets
that can be found in the run directory.
First, all the running instances mentioned in
instances.yml are organized into a
In this way, Cartridge checks if there are any instances that have already joined the cluster.
One of these instances is then used to perform cluster operations.