DOCS / GUIDES

Multi-coop replication

Replicate data across regions for disaster recovery and lower latency.

Advanced16 min read
Before you beginYou need the cluck CLI, a Pollosoft account, and a coop to work in. This guide assumes you are comfortable with the basics. If you are not, start with Getting started.

Overview

Replicate data across regions for disaster recovery and lower latency. The whole thing takes about 16 minutes, and the commands below are the ones you will use along the way.

$ cluck coop replicate main --to eu-west-1
$ cluck coop lag main
$ cluck coop failover main --to eu-west-1

Steps

  1. Choose a topology. Active-passive is simplest. Active-active is more available, and more fun to debug.
  2. Replicate. Start replication, then wait for the initial sync. Large datasets take a few hours.
  3. Monitor lag. cluck coop lag shows replication delay. Alert if it exceeds your recovery point objective.
  4. Practice failover. Fail over once a quarter during a quiet hour. If it hurts, do it more often until it does not.

Commands used

Keep going

Stuck? Check the error codes, the FAQ, or the glossary.