feat(35): adds postgres-cluster infrastructure#43
Merged
cihataydin merged 2 commits intomainfrom May 25, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a Docker Compose–based PostgreSQL cluster with a primary, two replicas, and a Pgpool load balancer, along with configuration, env vars, a validation script, and usage guide.
- Defines primary, replica, and Pgpool services with streaming replication settings
- Adds
test.shto automatically verify consistency across nodes - Provides setup guide and
.envfor credentials
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| dockerfiles/postgres-cluster/docker-compose.yml | Compose setup for primary, two replicas, and Pgpool with healthchecks/volumes |
| dockerfiles/postgres-cluster/primary/postgres.conf | Configures WAL level, senders, and hot_standby |
| dockerfiles/postgres-cluster/primary/init.sh | Initializes data directory permissions and pg_hba entries |
| dockerfiles/postgres-cluster/replica/recovery.conf | Replica recovery settings |
| dockerfiles/postgres-cluster/test.sh | Bash script to insert/read data and compare outputs across cluster |
| dockerfiles/postgres-cluster/GUIDE.md | Setup and test instructions |
| dockerfiles/postgres-cluster/.env | Defines Postgres and Pgpool credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.