# patroni

Patroni is a Python template for building high-availability PostgreSQL clusters, supporting distributed configuration stores such as ZooKeeper, etcd, Consul, and Kubernetes.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Dasha 1.10: Patroni auto-discovery, wait analysis and replication slot forecasts for PostgreSQL

DevFeed: [Dasha 1.10: Patroni auto-discovery, wait analysis and replication slot forecasts for PostgreSQL](<https://devfeed.tech/articles/dasha-1-10-patroni-auto-discovery-wait-analysis-and-replication-slot-forecasts-for-postgresql-124190.md>)

Original publisher: [Read original article](<https://www.postgresql.org/about/news/dasha-110-patroni-auto-discovery-wait-analysis-and-replication-slot-forecasts-for-postgresql-3438/>)

Published: 2026-11-09T00:00:00Z

Content type: release

Language: en

Sources: [PostgreSQL news](<https://devfeed.tech/sources/postgresql-news.md>)

Topics: [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [patroni](<https://devfeed.tech/tags/patroni.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [replication](<https://devfeed.tech/tags/replication.md>)

### AI overview

Dasha 1.10 adds Patroni discovery through read-only etcd v3 or Consul access, linking standby clusters to their upstream by PostgreSQL system identifier. Its Activity & Waits view (PostgreSQL 14+) samples pg_stat_activity every 1-10 seconds and groups active sessions by CPU, wait type and idle-in-transaction; filters and links connect results to query reports and lock trees. It also forecasts replication slot loss from WAL rate measured over a chosen 30-second to 5-minute window, and adds COPY progress reporting. Health Score time series can use stock Prometheus exporters, and inactive tables no longer lower scores for dead rows or missing vacuum by default after seven days. Monitored databases require PostgreSQL 14+ and a role with pg_monitor and CONNECT on each database; Activity & Waits also requires compute_query_id enabled or auto with pg_stat_statements or pgpro_stats preloaded.

### Source excerpt

Dasha is an open source performance dashboard for PostgreSQL fleets. It connects to your clusters with a read-only role, shows what the databases are doing right now, and explains what to do about it. Nothing is installed on the database hosts: no agent, and no extension beyond the ones you already have. One instance serves many clusters and all of their replicas. Most PostgreSQL statistics are per-instance and are not replicated, so Dasha reads every host of a cluster and reasons over the combined picture. An index that looks unused on the primary may be serving the entire read workload on a standby. New since the last announcement Patroni clusters from etcd v3 or Consul. Dasha reads the keys Patroni keeps in its DCS and turns every Patroni scope into a cluster: the members become hosts and the databases are listed from PostgreSQL. New clusters, lost replicas, created and dropped databases show up within the refresh interval. The DCS is only read, never written. User, password, port and database filters can be overridden per scope, and TLS with client certificates is supported for both etcd and Consul. Member names appear in the host selector next to the address. Standby cluster links. A Patroni standby cluster shows the cluster it replicates from, and the primary shows its standbys, on the Summary and Replication pages. Clusters are matched by the PostgreSQL system identifier, so a standby behind a VIP is found too. Activity & Waits (PostgreSQL 14+). A live chart of active sessions by class: CPU, wait event type (IO, Lock, LWLock, ...) and idle in transaction, sampled from pg_stat_activity every 1-10 seconds. Below it are the top statements, sessions, databases, users, applications and wait events; a click on a value adds a filter, and a statement links to its query report and the lock tree. Statements are grouped by query_id. No extension is needed, and each Dasha instance reads a host's pg_stat_activity at most once per second however many people watch the page.

## Production Postgres on Railway: From First Deploy to High Availability

DevFeed: [Production Postgres on Railway: From First Deploy to High Availability](<https://devfeed.tech/articles/production-postgres-on-railway-from-first-deploy-to-high-availability-121162.md>)

Original publisher: [Read original article](<https://blog.railway.com/p/guide-production-postgres-on-railway>)

Author: Will Raphaelson

Published: 2026-10-15T18:50:31Z

Content type: tutorial

Language: en

Sources: [Railway](<https://devfeed.tech/sources/railway.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Load Balancing](<https://devfeed.tech/topics/load-balancing.md>), [synthetic monitoring](<https://devfeed.tech/topics/synthetic-monitoring.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2026](<https://devfeed.tech/tags/2026.md>), [3](<https://devfeed.tech/tags/3.md>), [account](<https://devfeed.tech/tags/account.md>), [added](<https://devfeed.tech/tags/added.md>), [administration](<https://devfeed.tech/tags/administration.md>), [api](<https://devfeed.tech/tags/api.md>), [application](<https://devfeed.tech/tags/application.md>), [availability](<https://devfeed.tech/tags/availability.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [first](<https://devfeed.tech/tags/first.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [orders](<https://devfeed.tech/tags/orders.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [production](<https://devfeed.tech/tags/production.md>), [production-postgres](<https://devfeed.tech/tags/production-postgres.md>), [railway](<https://devfeed.tech/tags/railway.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [test](<https://devfeed.tech/tags/test.md>)

### AI overview

The guide walks an orders API from a private connection to standalone Postgres through tested recovery, PgBouncer pooling, and HA failover. It recommends enabling PITR before launch and validating restores in a separate database with exact fixture keys and amounts; PITR restores a whole database state, so later writes need reconciliation, and a restored copy needs PITR enabled separately. Scheduled volume backups require a Pro workspace and are deleted with the volume, while portable pg_dump exports can be stored independently. PgBouncer transaction pooling can reduce backend connections, but session-dependent features need session pooling or an unpooled URL; migrations should use DATABASE_UNPOOLED_URL. HA adds Patroni-supervised Postgres nodes, etcd, HAProxy, and resource cost, and applications must reconnect after dropped connections. A small planned-switchover rehearsal observed 10 failures in 51 attempts, but this is not a promised failover time or evidence of unplanned or cross-region resilience. The excerpt says Railway publishes no uptime SLA and leaves schema, performance, data, and alerts to the team.

### Source excerpt

Deploy Postgres alongside an orders API, test recovery, add PgBouncer, and convert to a high-availability cluster as your application grows.

## Automated Database Failover: Why Homegrown High Availability Struggles At Scale

DevFeed: [Automated Database Failover: Why Homegrown High Availability Struggles At Scale](<https://devfeed.tech/articles/automated-database-failover-why-homegrown-high-availability-struggles-at-scale-63795.md>)

Original publisher: [Read original article](<https://severalnines.com/blog/automated-database-failover-why-homegrown-high-availability-struggles-at-scale/>)

Author: Paul Namuag

Published: 2026-10-02T07:49:19Z

Content type: article

Language: en

Sources: [SeveralNines](<https://devfeed.tech/sources/severalnines.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [ClusterControl](<https://devfeed.tech/topics/clustercontrol.md>), [read-replica](<https://devfeed.tech/topics/read-replica.md>)

Tags: [automation](<https://devfeed.tech/tags/automation.md>), [clustercontrol](<https://devfeed.tech/tags/clustercontrol.md>), [database](<https://devfeed.tech/tags/database.md>), [database-automation](<https://devfeed.tech/tags/database-automation.md>), [failover](<https://devfeed.tech/tags/failover.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [recovery-repair](<https://devfeed.tech/tags/recovery-repair.md>), [replication](<https://devfeed.tech/tags/replication.md>), [scale](<https://devfeed.tech/tags/scale.md>)

### AI overview

The article explains why homegrown database failover systems become difficult to maintain as database engines, topologies, and environments multiply. It describes failure detection, replica selection, fencing, traffic routing, and recovery challenges, then presents ClusterControl's automated recovery workflows and their limits, including that cross-cluster failover requires a deliberate decision. It recommends testing recovery in staging and revisiting tests after topology changes.

### Source excerpt

I've encountered DBAs and ops engineers who shared war stories of running production long before automation and modern tooling went mainstream. Experiencing sudden primary faults during sleeping hours, getting paged, logging in to squint over trace logs that show replication lag on all replicas and working out which one is furthest ahead, promoting it, editing [...] The post Automated Database Failover: Why Homegrown High Availability Struggles At Scale appeared first on Severalnines.

## When failover isn't safe: Building high-availability PostgreSQL on Kubernetes

DevFeed: [When failover isn't safe: Building high-availability PostgreSQL on Kubernetes](<https://devfeed.tech/articles/when-failover-isn-t-safe-building-high-availability-postgresql-on-kubernetes-83489.md>)

Original publisher: [Read original article](<https://www.datadoghq.com/blog/engineering/postgresql-ha-kubernetes/>)

Author: Shree Sampath

Published: 2026-06-04T00:00:00Z

Content type: article

Language: en

Sources: [Datadog](<https://devfeed.tech/sources/datadog.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [CloudNativePG](<https://devfeed.tech/topics/cloudnativepg.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [database](<https://devfeed.tech/tags/database.md>), [failover](<https://devfeed.tech/tags/failover.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [patroni](<https://devfeed.tech/tags/patroni.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [postgresql-clusters](<https://devfeed.tech/tags/postgresql-clusters.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [replication](<https://devfeed.tech/tags/replication.md>)

### AI overview

Datadog engineers describe how a reliability exercise exposed unsafe failover in Kubernetes-based PostgreSQL clusters when replication lag left no eligible standby. They adopted synchronous replication for failover candidates, coordinated by Patroni, while retaining asynchronous replication for read replicas. Benchmarks showed latency and throughput costs, and the team reports that staged production rollout and monitoring helped balance durability and performance.

### Source excerpt

During a reliability gameday, Datadog engineers discovered that their PostgreSQL clusters couldn't safely fail over. Here's how the team redesigned them for high availability using Patroni and synchronous replication.

## Building High Availability PostgreSQL Clusters with Patroni and Other Integrated Approaches

DevFeed: [Building High Availability PostgreSQL Clusters with Patroni and Other Integrated Approaches](<https://devfeed.tech/articles/building-high-availability-postgresql-clusters-with-patroni-and-other-integrated-approaches-19110.md>)

Original publisher: [Read original article](<https://severalnines.com/blog/building-high-availability-postgresql-clusters-with-patroni-and-other-integrated-approaches/>)

Author: Agus Syafaat

Published: 2026-05-21T07:20:00Z

Content type: article

Language: en

Sources: [SeveralNines](<https://devfeed.tech/sources/severalnines.md>)

Topics: [patroni](<https://devfeed.tech/topics/patroni.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [ClusterControl](<https://devfeed.tech/topics/clustercontrol.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [automation](<https://devfeed.tech/tags/automation.md>), [availability](<https://devfeed.tech/tags/availability.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [clustercontrol](<https://devfeed.tech/tags/clustercontrol.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [consensus](<https://devfeed.tech/tags/consensus.md>), [consul](<https://devfeed.tech/tags/consul.md>), [database](<https://devfeed.tech/tags/database.md>), [dcs](<https://devfeed.tech/tags/dcs.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-consensus](<https://devfeed.tech/tags/distributed-consensus.md>), [election](<https://devfeed.tech/tags/election.md>), [failover](<https://devfeed.tech/tags/failover.md>), [ha](<https://devfeed.tech/tags/ha.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [patroni](<https://devfeed.tech/tags/patroni.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [postgresql-clusters](<https://devfeed.tech/tags/postgresql-clusters.md>), [recovery-repair](<https://devfeed.tech/tags/recovery-repair.md>)

### AI overview

The excerpt describes Patroni as an open-source PostgreSQL HA tool that coordinates replication and automatic failover through a distributed configuration store such as etcd, Consul, or ZooKeeper. The primary maintains a lease; standby nodes monitor it, and if the primary stops responding, a new leader is elected using criteria including replication lag and node health. YAML configuration defines Patroni's behavior. The article says it will examine Patroni's operational challenges and how ClusterControl might complement or replace it, but the excerpt provides no details on those approaches or comparisons with repmgr and PgAutoFailover.

### Source excerpt

In modern application stacks, downtime is a direct threat to business continuity, customer trust, and revenue. Regardless of whether it is an e-commerce platform, a fintech application, or a critical internal system, the expectation is 24/7 availability, underscoring the critical importance of High Availability (HA) and automated failover mechanisms within PostgreSQL clusters. HA ensures that [...] The post Building High Availability PostgreSQL Clusters with Patroni and Other Integrated Approaches appeared first on Severalnines.

## GitHub Availability Report: May 2021

DevFeed: [GitHub Availability Report: May 2021](<https://devfeed.tech/articles/github-availability-report-may-2021-68562.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/company-news/github-availability-report-may-2021/>)

Author: Scott Sanders

Published: 2021-06-03T00:00:00Z

Content type: news

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [Architecture & optimization](<https://devfeed.tech/topics/architecture-optimization.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [Grafana](<https://devfeed.tech/topics/grafana.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [company-news](<https://devfeed.tech/tags/company-news.md>), [database](<https://devfeed.tech/tags/database.md>), [failover](<https://devfeed.tech/tags/failover.md>), [github](<https://devfeed.tech/tags/github.md>), [github-availability-report](<https://devfeed.tech/tags/github-availability-report.md>), [incident](<https://devfeed.tech/tags/incident.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [linting](<https://devfeed.tech/tags/linting.md>), [migration](<https://devfeed.tech/tags/migration.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [outages](<https://devfeed.tech/tags/outages.md>), [report](<https://devfeed.tech/tags/report.md>)

### AI overview

In May 2021, two incidents disrupted several GitHub services. One involved MySQL failures and was mitigated through database failover; another followed a scoped-token foreign-key integer overflow and required a schema migration and cache cleanup. GitHub says it is improving documentation, dashboards, alerts, replica coverage, and tooling to reduce the impact of future incidents.

### Source excerpt

In May, we experienced two incidents resulting in significant impact to multiple GitHub services.

## GitHub availability this week

DevFeed: [GitHub availability this week](<https://devfeed.tech/articles/github-availability-this-week-70360.md>)

Original publisher: [Read original article](<https://github.blog/news-insights/the-library/github-availability-this-week/>)

Author: Jesse Newland

Published: 2012-09-15T05:33:53Z

Content type: news

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [Availability](<https://devfeed.tech/topics/availability.md>), [patroni](<https://devfeed.tech/topics/patroni.md>), [zero downtime deployment](<https://devfeed.tech/topics/zero-downtime-deployment.md>), [expand and contract migration](<https://devfeed.tech/topics/expand-and-contract-migration.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [cluster](<https://devfeed.tech/tags/cluster.md>), [data-drift](<https://devfeed.tech/tags/data-drift.md>), [database](<https://devfeed.tech/tags/database.md>), [database-migration](<https://devfeed.tech/tags/database-migration.md>), [downtime](<https://devfeed.tech/tags/downtime.md>), [dynos](<https://devfeed.tech/tags/dynos.md>), [failover](<https://devfeed.tech/tags/failover.md>), [github](<https://devfeed.tech/tags/github.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [news-insights](<https://devfeed.tech/tags/news-insights.md>), [outages](<https://devfeed.tech/tags/outages.md>), [the-library](<https://devfeed.tech/tags/the-library.md>)

### AI overview

GitHub describes outages caused by database failovers, a cluster partition, and performance problems during database migration. The account details changes to its failover policy, plans to audit the cluster software, and work to improve buffer pool readiness and status-site capacity.

### Source excerpt

GitHub.com suffered two outages early this week that resulted in one hour and 46 minutes of downtime and another hour of significantly degraded performance. This is far below our standard...