https://github.com/vontikov/pgcluster
PostgreSQL High Availability
https://github.com/vontikov/pgcluster
clustering consensus docker high-availability postgresql
Last synced: about 2 months ago
JSON representation
PostgreSQL High Availability
- Host: GitHub
- URL: https://github.com/vontikov/pgcluster
- Owner: vontikov
- License: mit
- Created: 2021-05-11T12:31:54.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-15T12:11:05.000Z (about 5 years ago)
- Last Synced: 2025-02-28T15:53:04.116Z (over 1 year ago)
- Topics: clustering, consensus, docker, high-availability, postgresql
- Language: Go
- Homepage:
- Size: 95.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# pgcluster
High available [PostgreSQL](https://www.postgresql.org/) cluster.
## Overview
Cluster components - PostgreSQL and monitoring agent - are delivered in a single Docker image.
The monitoring agent uses distributed key-value store for leader election and tracking cluster
state.
The following key-value stores may be used with the cluster:
* [etcd](https://etcd.io)
* [Stoa](https://github.com/vontikov/stoa)
The image exposes two ports:
* 5432 - PostgreSQL
* 3501 - monitoring and management
## Build
```
# Staged build
make image-staged
```
```
# Local build (requires local Go installation)
make image
```
## Running examples
With [etcd](https://etcd.io):
```
docker-compose -f examples/docker-compose-etcd.yaml up
```
With [Stoa](https://github.com/vontikov/stoa):
```
docker-compose -f examples/docker-compose-stoa.yaml up
```