Bucardo - AWS Prescriptive Guidance

Bucardo

Bucardo is one of the earliest invocation-based replication tools developed to achieve replication in PostgreSQL. Bucardo is rarely used now that PostgreSQL offers built-in replication.

Here are the most common use cases for Bucardo:

  • Your source database is running on an old version of PostgreSQL (earlier than PostgreSQL 9.2).

  • You’re migrating a PostgreSQL database from one cloud provider to another online.

Architecture

The following diagram shows the architecture for migrating an on-premises PostgreSQL database to the AWS Cloud by using Bucardo.

Bucardo architecture

The diagram shows the following workflow:

  1. Create an EC2 instance.

  2. Install PostgreSQL and Bucardo on the EC2 instance.

  3. Register the source and target database.

  4. Add tables (which should be part of replication).

  5. Start Bucardo replication.

  6. Use the COPY command to migrate the initial load. Then, Bucardo replicates delta changes later.

Limitations

We recommend that you consider the following limitations of using Bucardo before starting your migration:

  • There is extra overhead on the source database during migration because Bucardo uses invocation-based replication.

  • Bucardo, when installed, must have enough disk space and other resources to accumulate the delta during backup and restore activity and to replicate the delta faster as soon as the restore finishes.