How to Keep Temporal Connected to PostgreSQL After Failover?

0
9
Asked By TechGuru99 On

I'm currently dealing with a tricky issue where Temporal connects to a PostgreSQL database. The setup uses a hardcoded hostname pattern for the primary instance such as `host: ..`. This works fine initially, but it breaks when a PostgreSQL replica is promoted to primary during a failover. The hostname becomes outdated since the primary pod name changes with the switch. I'm looking for a way to configure Temporal so it can automatically connect to the new primary PostgreSQL instance without manual intervention after a failover. Any ideas?

2 Answers

Answered By DataDaemon77 On

Yeah, I ran into the same issue! When I set it up through Helm, I made sure to update the values in the installation configuration. Definitely look into that README; it should guide you on keeping your connection dynamic rather than static.

Answered By CloudSailor42 On

Have you tried checking how you've installed Temporal? If it's via Helm, there’s a README guide on their GitHub that might help you set it up properly with PostgreSQL. It could include steps on how to manage dynamic connections to the primary instance, which sounds like what you need.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.