Deploy Patroni

Patroni is a template for high availability (HA) PostgreSQL.

Deploy Patroni

Patroni Worker 1

patroni/patroni

Just deployed

/data

ETCD Worker 3

patroni/patroni

Just deployed

/var/lib/etcd

Patroni Worker 3

patroni/patroni

Just deployed

/data

Just deployed

ETCD Worker 2

patroni/patroni

Just deployed

/var/lib/etcd

Patroni Worker 2

patroni/patroni

Just deployed

/data

ETCD Worker 1

patroni/patroni

Just deployed

/var/lib/etcd

Deploy and Host Patroni on Railway

Patroni is a template for high availability (HA) PostgreSQL solutions using Python. Database engineers, DBAs, DevOps engineers, and SREs who are looking to quickly deploy HA PostgreSQL in datacenters - or anywhere else - will hopefully find it useful.

Common Use Cases

  • Extremely high availability hosted Postgres.
  • Postgres that never, ever goes down.

HAProxy Configuration

When you deploy HAProxy, a password will be generated under the variable STATS_PASSWORD. You can use this with the username admin to log into the statistics page at the service's public domain.

HAProxy template configuration: https://github.com/thesamgordon/patroni-haproxy/blob/main/haproxy.template.cfg


Template Content

Patroni Worker 1

patroni/patroni

ETCD Worker 3

patroni/patroni

Patroni Worker 3

patroni/patroni

ETCD Worker 2

patroni/patroni

Patroni Worker 2

patroni/patroni

ETCD Worker 1

patroni/patroni

More templates in this category

View Template
Postgres Backup to Cloudflare R2
Auto back up PostgreSQL databases to Cloudflare R2 with optional encryption

View Template
ReadySet
A lightweight caching engine for Postgres

View Template
Simple S3
Deploy a S3-compatible storage service with a pre-named bucket.