Restarting a cluster

When a whole multi-node replication cluster is down, one node must be started first so the other nodes know which copy of the cluster to join.

There is one normal-startup exception: if the cluster had already become a clean one-node cluster, for example after the other nodes left with EXIT CLUSTER, start that remaining node normally. After a clean shutdown, Manticore restores that self-only cluster as primary / synced without --new-cluster.

That first-start decision is based on grastate.dat, the small replication state file stored in the cluster data directory. The most important fields are:

  • seqno - the last transaction number known to that node
  • safe_to_bootstrap - whether that node is marked as safe to start first after a clean shutdown

Example of what grastate.dat can look like after a clean shutdown:

# saved replication state
version: 2.1
uuid:    <cluster-uuid>
seqno:   12345
safe_to_bootstrap: 1

In this example:

  • seqno: 12345 means this node knows about transactions up to sequence number 12345
  • safe_to_bootstrap: 1 means this node is marked as safe to start first

If the whole cluster was shut down cleanly, start the node that was stopped last. In practice, this is usually the node with:

  • the most advanced seqno
  • safe_to_bootstrap: 1

Start that node first. This tells Manticore to start a new copy of the cluster from that node. After that, start the remaining nodes normally so they can rejoin.

Use this after a clean full cluster shutdown.

‹›
  • Bash
  • Systemd
📋
searchd --new-cluster

If another node is started first without the required clean-shutdown state, startup is refused to protect the cluster from being restored from an older copy.

If the cluster stopped unexpectedly

Do not assume the last stopped node has the newest data or force a restart on an arbitrary node. Follow Cluster recovery to identify the correct node first.

Last modified: June 30, 2026