Configure replication
URL: llms-txt#configure-replication
Contents:
- Configure the primary database
- Configuring the primary database
- Configure replication parameters
- Configuring replication parameters
- Create replication slots
- Creating replication slots
- Configure host-based authentication parameters
- Configuring host-based authentication parameters
- Create a base backup on the replica
- Creating a base backup on the replica
This section outlines how to set up asynchronous streaming replication on one or more database replicas.
Tiger Cloud is a fully managed service with automatic backup and restore, high availability with replication, seamless scaling and resizing, and much more. You can try Tiger Cloud free for thirty days.
Before you begin, make sure you have at least two separate instances of TimescaleDB running. If you installed TimescaleDB using a Docker container, use a [Postgres entry point script][docker-postgres-scripts] to run the configuration. For more advanced examples, see the [TimescaleDB Helm Charts repository][timescale-streamrep-helm].
To configure replication on self-hosted TimescaleDB, you need to perform these procedures:
- [Configure the primary database][configure-primary-db]
- [Configure replication parameters][configure-params]
- [Create replication slots][create-replication-slots]
- [Configure host-based authentication parameters][configure-pghba]
- [Create a base backup on the replica][create-base-backup]
- [Configure replication and recovery settings][configure-replication]
- [Verify that the replica is working][verify-replica]