HELLO
I’m planning for high availability and wanted to ask how others are handling PostgreSQL failover in production with n8n.
My current architecture is something like:Load Balancer
↓
Multiple n8n Workers
↓
PostgreSQL
I’m thinking ahead about scenarios where the primary PostgreSQL server becomes unavailable. My main concerns are:
Preventing workflow failures during failover
Minimizing downtime
Avoiding duplicate executions after reconnecting
Ensuring workers reconnect cleanly
I’ve looked into:
PostgreSQL streaming replication
Patroni
PgBouncer
Managed PostgreSQL services with automatic failover
Describe the problem/error/question
What failover strategy are you using?
How does n8n behave during a database failover?
Have you experienced issues with reconnecting workers or duplicate executions?
Any lessons learned or recommendations for building a highly available PostgreSQL setup?
I’d really appreciate hearing about real-world production experiences.
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: