This script sets up a multi-node PgEdge cluster using Docker, and configures Spock-based bidirectional replication.
- Automatically creates and configures Docker containers for PgEdge nodes.
- Sets up logical replication using the Spock extension.
- Inserts test data and verifies replication across all nodes.
- Docker must be installed and running.
- Python 3.7 or higher
Run the script in your terminal:
python pgedge_setup
You will be prompted to enter the number of PgEdge nodes.
- Containers named
pgedge_node1,pgedge_node2, ..., will be created. - A Docker network
pgedge_netwill be used. - Replication between nodes will be configured using Spock.
To create a 2-node setup, simply run the script and enter 2 when prompted.
Muhammad Imtiaz