How to Configure Temporal for Dynamic PostgreSQL Failover?

0
8
Asked By CuriousCat99 On

I'm encountering a tricky issue with my Temporal setup and its connection to PostgreSQL. Temporal is currently set up to connect to a PostgreSQL primary instance using a static hostname format: `host: ..`. This connection works great initially, but when a PostgreSQL replica is promoted to primary due to a failover, the pod name changes, and Temporal can no longer make a connection because it relies on that static hostname. How can I adjust my Temporal configuration to ensure it automatically connects to whichever PostgreSQL instance is currently the primary, even after failovers?

1 Answer

Answered By TechieTom On

Have you checked how you're installing Temporal? If you're using the Helm chart, there's guidance in the README on GitHub. You might need to update the values to handle failover appropriately, especially if you have a custom PostgreSQL setup. Link to the readme can be found in their documentation.

CuriousCat99 -

Yeah, I installed Temporal via Helm, so I'll definitely check that out!

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.