public inbox for [email protected]
help / color / mirror / Atom feedFrom: Andrei Krylosov via PostgreSQL Announce <[email protected]>
To: PostgreSQL Announce <[email protected]>
Subject: pg-status: microservice for checking the status of PostgreSQL hosts
Date: Mon, 02 Feb 2026 07:30:02 +0000
Message-ID: <[email protected]> (raw)
Hi all!
I'd like to share a small open‑source project I've been working on: [pg-status](https://github.com/krylosov-aa/pg-status).
pg-status is a lightweight microservice (sidecar) that helps you instantly determine the status of your PostgreSQL hosts: whether they are alive, which one is the master, which ones are replicas, and how far each replica is lagging behind the master.
It's designed to run alongside your main application. It's lightweight, resource‑efficient, and delivers high performance. You can query it on every request without noticeable overhead.
pg-status polls your database hosts in the background at a configurable interval and exposes an HTTP interface that you can use to retrieve hosts matching given conditions.
I originally built it to speed up master detection in a multi‑host setup where DNS failover was too slow, but it's also handy for proxy setups or custom load‑balancing logic.
More information is available on GitHub: https://github.com/krylosov-aa/pg-status
Feedback and discussion are very welcome. I'd love to hear your thoughts!
Best regards,
Andrei Krylosov
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: pg-status: microservice for checking the status of PostgreSQL hosts
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox