pgcluster

module
v0.0.0-...-86e4b03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2021 License: MIT

README

pgcluster

High available PostgreSQL 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:

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:

docker-compose -f examples/docker-compose-etcd.yaml up

With Stoa:

docker-compose -f examples/docker-compose-stoa.yaml up

Directories

Path Synopsis
internal
app
env
pg
mocks
concurrent
Package mock_concurrent is a generated GoMock package.
Package mock_concurrent is a generated GoMock package.
pg
Package mock_pg is a generated GoMock package.
Package mock_pg is a generated GoMock package.
storage
Package mock_storage is a generated GoMock package.
Package mock_storage is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL