Menu

1 / 2

Patroni, Ubuntu 24.04, and two unplanned PostgreSQL failovers

DEV Community: postgres·Franck Pachot·about 1 month ago
#CEu51gEu
#devtopostgresql#devto#dev#service#patroni
Long article (4065 words) — no AI summary yet.
Reading 0:00
15s threshold

I usually run PostgreSQL on managed services, like Azure Database for PostgreSQL Flexible Server but for once I was running PostgreSQL/Patroni on VMs. An overnight data-loading operation had been running for eight hours when its PostgreSQL connections were lost. The client-side symptoms were:

SSL connection has been closed unexpectedly

Enter fullscreen mode

Exit fullscreen mode

An SSL error is a symptom, not a diagnosis. PostgreSQL had not run out of memory or disk. The server was being stopped by service management. Neither PostgreSQL nor Patroni needed a package upgrade, but an unattended zlib shared-library update caused the issue.

Ubuntu 24.04's needrestart automatically restarted affected services, including my custom Patroni service. The primary stopped, another node was promoted, and the load failed.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.