An open API service indexing awesome lists of open source software.

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

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
```