Production HA setup

Hi, is there a recommendation guide on how to do a production setup for temporal with mysql for High Availability.

My initial thought was since all state is preserved in DB, i could possibly have multiple temporal servers pointing to same mysql instance and things should work.
But the documents do mention about broadcastAddress, membership etc, as well is this applicable only for cross dc replication?

1 Like

High Availability setup is overloaded term. Do you want the ability for temporal service operating during deployments or if some of its nodes fail? Do you want the ability to survive a database host outage? Do you want to be available in the case of a whole region outage?

Temporal supports all of the above. But depending on your requirements a different setup is needed.

1 Like

To start with i want temporal to survive node fails.
I was under the impression that for this, all nodes could just connect to same mysql and nothing else is required. (i mean broadcastaddress,membership settings etc).

Is that understanding correct?

Also can cross DC replication be done on mysql or does it work only with cassendra out of box?

1 Like

For node failures, the important requirement is that all nodes can talk to each other. We had cases when network policies precluded such connectivity and it caused issues. Then the ports should be specified. The membership is configured automatically through DB. You can look into the helm chart for the needed configuration options.

There are companies running cross DC setup on top of MySQL.

1 Like

@maxim Is there a way to reliably verify that all the nodes are able to talk to each other(for ex: status in the db or logs etc.,) - required to confirm that we have set-up network policies properly.

Make sure that the list of hosts from these two commands matches:

tctl admin membership list_gossip

tctl admin membership list_db

How do the nodes talk, which protocol, what ports? Is there any document I can refer to?

@madhu - Please refer to comment from samar on different roles and the ports that they expose Communication between multiple instances of temporal server

1 Like

thanks @ganta lemme take a look thanks for pointing to the other thread. :grinning: