Repository

krylosov-aa/pg-status

pg-status

A microservice (sidecar) that helps instantly determine the status of your PostgreSQL hosts including whether they are alive, which one is the master, which ones are replicas, and how far each replica is lagging behind the master.

82stars

Open github.com

krylosov-aa/pg-status

pg-status

Lightweight HTTP sidecar for PostgreSQL master/replica discovery. Polls hosts in background, answers queries from memory in under 1ms. Written in C, ~9MB RAM.

Visit project

Show me a random project

First shared
Jun 14, 2026
HN activity
30

Show HN@krylosov-aaJun 14, 2026

Show HN: Pg-status – lightweight HTTP sidecar for PG master/replica discovery

pg-status polls your PostgreSQL hosts in the background and answers "who's the current master?", "which replica has lag ≤ 100ms?", "which replica has already replayed this LSN?" — all from memory, in under a millisecond. Written in C, ~9MB RAM.

Community

Hacker News discussion

Loading the thread…