Skip to content

feat(35): adds postgres-cluster infrastructure#43

Merged
cihataydin merged 2 commits intomainfrom
35-set-up-database-infrastructure
May 25, 2025
Merged

feat(35): adds postgres-cluster infrastructure#43
cihataydin merged 2 commits intomainfrom
35-set-up-database-infrastructure

Conversation

@cihataydin
Copy link
Owner

No description provided.

@cihataydin cihataydin self-assigned this May 24, 2025
@cihataydin cihataydin linked an issue May 24, 2025 that may be closed by this pull request
@cihataydin cihataydin requested a review from Copilot May 24, 2025 19:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.sh to automatically verify consistency across nodes
  • Provides setup guide and .env for 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

@cihataydin cihataydin merged commit 860d5ab into main May 25, 2025
1 check passed
@cihataydin cihataydin deleted the 35-set-up-database-infrastructure branch May 25, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up Database Infrastructure

2 participants