Skip to main content
Microsoft
separator
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.repmgr-ubuntu-24-04-bc94b0a7-c21a-4752-b297-2d9a98d01758/image0_logolarge.png

repmgr on Ubuntu 24.04 by cloudimg

by cloudimg

repmgr on Ubuntu 24.04 by cloudimg

repmgr PostgreSQL Replication Manager on Ubuntu 24.04 by cloudimg

repmgr is the long established open source toolset from EDB for managing PostgreSQL streaming replication and automatic failover. This image is a fully configured PostgreSQL 17 primary node: repmgr 5.5 is installed from the official PostgreSQL PGDG repository, the primary is registered as node 1, and the repmgrd monitoring daemon runs under systemd from the first boot. It gives teams a proven starting point for building a highly available PostgreSQL cluster in minutes.

Ready to add standbys. PostgreSQL is pre-tuned for streaming replication — `wal_level = replica`, WAL senders and replication slots, `wal_log_hints` for `pg_rewind`, `hot_standby`, and `shared_preload_libraries = 'repmgr'` so repmgrd can run. A dedicated `repmgr` role and `repmgr` database are created, and `/etc/repmgr.conf` declares this node as the primary. Deploy a second cloudimg repmgr VM, clone it against this primary as the `repmgr` role, register it, and repmgr manages the cluster. `repmgr cluster show` and `repmgr node check` confirm health at any time.

Automatic failover with repmgrd. repmgrd is configured for automatic failover. Once one or more standbys are registered, it monitors the primary and, if it fails, promotes the most suitable standby and tells the remaining standbys to follow the new primary. Place standbys in a different availability zone for resilience.

Secure by default — no baked credential. There are two built in roles and neither has a password baked into the image. The `postgres` superuser is password less by construction. The `repmgr` role — the identity repmgr, repmgrd and standby nodes authenticate as — is created with no password. On every fresh virtual machine a first boot service generates a unique password for the `postgres` superuser, a unique password for the `repmgr` role, and a unique self signed TLS server certificate; writes the `.pgpass` repmgrd needs; rewrites the repmgr connection string to this VM's own address; re-registers the primary; starts repmgrd; and writes the secrets to a root only file at `/root/repmgr-credentials.txt`. `pg_hba.conf` accepts standby replication, the repmgr database and application clients from the network only over TLS with `scram-sha-256`; on box administration stays password less through the local unix socket.

Licensing. repmgr is GPL-3.0 licensed and free; PostgreSQL uses the PostgreSQL Licence. There is no per seat, per server or per site fee. The cloudimg charge of 0.04 US dollars per vCPU hour covers packaging, security patching, image maintenance and 24/7 expert support.

Sizing. Standard_B2s suits development and light workloads. Move to Standard_E2s_v5 or larger, with more disk, for production databases and higher connection counts.

Prerequisites. An Azure subscription, a virtual network and an SSH key. The network security group should permit port 22 for administration and port 5432 for PostgreSQL and repmgr replication, restricted to your own database, application and standby subnets.

At a glance

https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.repmgr-ubuntu-24-04-bc94b0a7-c21a-4752-b297-2d9a98d01758/image5_screenshot01.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.repmgr-ubuntu-24-04-bc94b0a7-c21a-4752-b297-2d9a98d01758/image2_screenshot02.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.repmgr-ubuntu-24-04-bc94b0a7-c21a-4752-b297-2d9a98d01758/image3_screenshot03.png
https://catalogartifact.azureedge.net/publicartifacts/cloudimg1647283583153.repmgr-ubuntu-24-04-bc94b0a7-c21a-4752-b297-2d9a98d01758/image1_screenshot04.png
English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Us Privacy & Cookies Terms of Use About our ads Manage cookies