Temporal multi-cluster replication and failover

Multi-cluster replication for self-hosted Temporal depends on global namespaces, matching clusters and a documented maturity level you must confirm before you design around it. This page sets out the decisions, prerequisites and risks.

On this page

Why teams plan Temporal multi-cluster replication and failover

A team that must keep durable workflows running through a regional outage needs to plan cross-region failover before it needs it. For self-hosted Temporal, that work centers on global namespaces replicated across clusters in different regions, and the documented maturity of this capability must be confirmed against the current Temporal documentation and release notes before any production design is fixed. Treat the feature's status, supported server versions and configuration as open questions for the design phase, not as settled facts.

Replication is not the same as backups or a single-region high-availability setup. Backups let you restore history after data loss, but they do not give you a second cluster that accepts work while the first is down. A single-region high-availability layout protects against node or zone failures inside one region, so it does not cover a region-wide outage. Multi-cluster replication targets a different failure: the loss of a whole region, including the persistence and visibility stores that sit inside it. Because the stores themselves are part of the failover scope, the team must also confirm how each database and visibility backend is replicated and what recovery point it can reach.

Temporal Cloud is the other option to compare before committing to self-hosting. Its pay-as-you-go pricing, availability tiers and SAML SSO are published on the Temporal pricing page, and that page is the place to check its current availability commitments. Ask both paths the same questions: who operates the second region, how a planned handover is run, what happens to in-flight workflows during a forced failover, and which team signs off the design. The answers decide whether a self-hosted cross-region design is worth the operating effort.

How the active and standby clusters relate to a global namespace

The diagram starts with worker fleets connecting to the active region, whose Temporal services write workflow state to that cluster's own persistence and visibility stores. The global namespace links the two regional clusters, and the standby region receives replicated state but does not serve workers until a handover or forced failover moves the active role. Check that each trust boundary has its own persistence and visibility store, and confirm the failover path with the configuration your Temporal version documents before relying on it.

Two regional clusters joined by a global namespace, with one active region at a time.

Which resilience pattern fits your recovery targets

This table compares three ways to protect a Temporal deployment: a single-region self-hosted cluster with tested backups, a self-hosted multi-cluster setup with a global namespace, and Temporal Cloud. Read each row against your own recovery targets, which your business owners should set first. The main takeaway is that moving to more regions adds failure coverage but also adds operational work that stays with your team.

DimensionSingle-region self-hosted with tested backupsSelf-hosted multi-cluster with global namespaceTemporal Cloud high availability tier
Failure it survivesLoss of individual hosts or services within one region when restored from tested backups; it does not survive loss of the regionLoss of an entire region, provided the second cluster is kept current and the failover path has been rehearsedLoss of a zone or host handled by the managed service; the 99.99 percent tier is the documented availability figure to confirm for your region
Operational work addedScheduled backups of persistence and visibility stores, restore drills, and upgrades run in one clusterTwo or more clusters to upgrade in step, cross-region replication health checks, failover runbooks and drillsConnectivity, identity and namespace setup, plus capacity and support plan decisions; upgrades are handled by the provider
Who owns the data planeYour team, in your infrastructureYour team, in infrastructure you control in each regionTemporal Technologies operates the service; your team owns workers, workflow code and any data you export
Feature maturity to checkStable self-hosted configuration documented by TemporalGlobal namespace replication is treated as an experimental feature, so confirm its status for your server version before productionManaged by the provider; confirm the feature set and any region-specific limits in your contract
Typical fitTeams whose recovery targets accept rebuilding a region from backups within a planned windowOrganizations with regulatory or contractual obligations to continue workflows after losing a whole region and the skills to run two clustersTeams that prefer provider-run availability and accept a managed service boundary for data location and control
What to confirm firstBackup frequency, restore time and how restores are verified against your recovery targetsHandover versus forced failover behavior, conflict handling and the risk your change board accepts for experimental featuresData residency, SLA terms, support tier, and whether the managed boundary meets your audit evidence needs

Planned handover versus forced failover

The choice between a planned handover and a forced failover should be made before an incident, and written into the runbook. The main inputs are whether the active cluster can still accept operator commands, how much recent progress each critical workflow type can afford to lose or repeat, and whether your team can carry out the switch and reconciliation steps without relying on the people who designed them.

  • Cluster reachability: If the active cluster still responds, a planned handover is usually the first option to test, provided an operator can run every step.
  • Tolerance for lost history: Ask the business owner of each critical workflow type what happens if recent progress is lost or repeated.
  • Side effect inventory: List activities that touch payments, email, provisioning or other external systems, and confirm their idempotency before accepting a forced failover.
  • Runbook rehearsal: Rehearse both paths in a non-production environment on the exact server and SDK versions you run.
  • Feature maturity: Confirm whether the replication feature is marked experimental or limited in your server version, and whether your support arrangements cover it.

Before approving the design, check that the decision criteria are written down so the on-call team can choose a path without debate during an incident.

Setup sequence before you enable replication

This sequence confirms that multi-cluster replication is a supported option for your Temporal version, builds matching persistence and visibility in each region, and proves both a planned handover and a forced failover before any production workflow depends on it. The output is a cluster pair that your team has tested end to end, with a record of each check.

  1. Confirm maturity and supported server version

    Before any build work, the platform owner confirms in the current Temporal documentation whether multi-cluster replication with global namespaces is marked experimental, and which server minor line the team will run. Temporal Server v1.32.1 and the patch releases v1.31.4 and v1.30.8 are the latest versions in the supplied release record, so the team should choose one minor line and record the reason. Upgrades should move one minor version at a time. Done means a signed decision record that names the server version, the documented maturity level, and the owner who accepts the experimental risk if it applies.

  2. Align persistence and visibility in each region

    Each region needs its own persistence store and advanced visibility store, and the two clusters must run compatible versions. Supported persistence options are Cassandra 3.11, 4.0 or 5.0.4 or later, PostgreSQL 13 to 16, and MySQL 5.7 or 8.0.19 or later. For visibility, Elasticsearch 7 or 8, or OpenSearch 2 or later from Temporal Server 1.30.1, are the supported choices for production volumes. The database team confirms the same engine family and version range in both regions and sizes the stores for the expected load. Done means both regions pass a connectivity and schema check, with the schema version recorded for each store.

  3. Deploy both clusters with a compatible Helm chart

    The platform team deploys each cluster with a Helm chart at version 0.73.1 or later, because earlier chart versions do not work with server images 1.30 and later. Each Temporal service runs in its own Kubernetes pods, and the deployment is pinned to the version chosen in the first step. Temporal services should run on hosts not reachable from the public internet. Done means both clusters report healthy services, the chart and image versions match the decision record, and no service is exposed to the public internet.

  4. Secure internode and frontend traffic

    The security engineer enables mutual TLS separately for internode traffic between cluster services and for frontend traffic from SDK clients and admin tools. Certificates are issued from the organization's own certificate authority, with rotation procedures written before go-live. Without a configured Authorizer, self-hosted Temporal uses the noopAuthorizer, which allows every API request, so this step must not be skipped in a regulated environment. Done means a test client without a valid certificate is refused on both the internode and frontend paths, and the certificate expiry dates are logged in the operations calendar.

  5. Configure identity, claims and authorization

    The identity team configures a ClaimMapper that maps JWT or certificate claims to namespace roles, and an Authorizer plugin that enforces those roles on every API call. OIDC single sign-on is configured for the Web UI. The team confirms which groups may administer the global namespace and which may only run workflows. Done means a test identity with a read-only role cannot start or terminate a workflow, an administrator role can perform the namespace operations, and the access matrix is stored with the runbook.

  6. Register the global namespace

    The platform team registers the global namespace on the first cluster, adds the second cluster as a replica, and records the active cluster for the namespace. Workers in each region connect to the frontend endpoint for their own cluster, and the team confirms that workflow start requests reach the active cluster. Namespace retention and archival settings must match on both sides. Done means describing the namespace on each cluster shows the same replication configuration, and a test workflow started in the active region completes with its history visible in the standby cluster.

  7. Prove a planned handover in non-production

    In a non-production environment, the operations lead runs a planned handover of the active cluster from one region to the other while test workflows are running. The team records which workflows continued, which were retried, and any errors that workers reported during the switch. Application owners confirm that their workers reconnect to the new active region and that their workflow code behaves as expected after the handover. Done means the handover runbook is updated with the observed steps and the expected worker behavior, and the test results are approved by the application owners.

  8. Run a forced failover drill

    The operations lead runs a forced failover drill in non-production, simulating loss of the active region without a graceful handover. The team checks which workflows lost recent history, how conflicts were resolved after the original region returned, and how long the cutover took from the point of view of clients. The results feed the recovery objectives the business approves, which the team should confirm with its own requirements rather than assume. Done means the drill report lists data loss observed, conflict outcomes, and actions for the production runbook, and the incident owner signs off that the forced path is documented.

Security controls that must be in place in both regions

A replicated Temporal setup is only as secure as its weakest region, because a workflow can fail over to a cluster that was configured differently. Each control below has to be set in every cluster, verified there, and kept in step through configuration changes. Check them before the first replication test, not after the first incident.

Configure an authorizer in each cluster

If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. In a replicated setup, a cluster left on the default is an open entry point that becomes reachable the moment traffic is redirected to it during failover. Configure a ClaimMapper and an Authorizer in each cluster, then test that an unauthorized caller is refused in both regions. Confirm that the role mappings match in both clusters so a failed-over namespace keeps the same access.

Security docs

Mutual TLS for internode and frontend

Temporal supports mTLS with separate settings for internode traffic between cluster services and for frontend traffic from workers and clients. Both must be set in each region, because replication traffic crosses regions and frontend traffic must reach whichever cluster is active. Plan certificate issuance, rotation and trust chains so a cluster certificate expiry does not stop replication. Verify that each side rejects connections presenting an untrusted certificate.

OIDC single sign-on for the Web UI

The Web UI can use OIDC single sign-on, so operators authenticate with the identity provider used across the organization rather than with shared credentials. Configure the same OIDC client and group mapping in both regions so an operator who can inspect workflows in one cluster has the same view in the other. Confirm that sign-out and session expiry behave the same in each region, and that operator access is removed when the identity provider account is disabled.

Keep services off the public internet

The Temporal deployment documentation states that Temporal services should run on hosts not reachable from the public internet, with network access restricted to trusted internal networks. For replication, this means the links between regions are private paths, with firewall rules that allow only the cluster-to-cluster ports and the trusted worker networks. Review the placement of the Web UI and any proxy in each region. Confirm the rules in both regions with an external scan from outside the network.

Deployment docs

Identical payload codecs in both regions

Payload encryption uses custom codecs and a codec server. If one region decodes payloads with a different key or codec version, workflows that fail over can fail when a worker reads their history, or worse, leave data unreadable. Deploy the same codec configuration and key references in both regions, and manage key rotation so both regions get the new key before any workflow uses it. Test that a workflow started in one region can be decoded in the other, and that the codec server is reachable from each region.

Limit who can trigger handover or failover

A handover or forced failover changes which cluster accepts writes for a global namespace, so it is a high-impact action. Restrict the ability to start a handover or failover to a named group of operators, and require at least two people to approve it through your change process. Record each request in audit logs stored outside the clusters. Test that a standard developer or worker role cannot trigger the action in either region, and keep the list of people allowed to act current.

How conflicts and in-flight workflows behave across regions

Before accepting cross-region replication for self-hosted Temporal, the team has to understand what actually has to reach the standby region. Workflow state, event histories and visibility records all need to be present there, because a standby that holds only some of them can resume some workflows and lose track of others. Replication is not a backup. A replicated copy faithfully carries a bad write, an accidental namespace deletion or a corrupted history to the other region as well. Keep independent backups of the persistence stores and confirm with the backup owner how they are restored and tested, separately from the failover design.

Conflict handling is a design question, not an afterthought. If the same workflow can be written in two places during a split, the outcome depends on the documented conflict and versioning behavior of the feature, and that behavior has to be read for the exact server version in use. Confirm the current rules in the Temporal documentation for that version before you write the runbook, and test a split-brain scenario in a non-production environment. Plan who decides which side wins and how the losing side's work is reconciled or discarded.

Whatever the conflict rules turn out to be, design workers and activities so that a repeated execution is harmless. Workflow code must be deterministic, so the same history replays the same way on the standby. Activities should be idempotent or carry an idempotency key that the downstream system checks, because retries after a failover can run an activity that already completed on the other side. Review which external calls, payments or messages are not safe to repeat, and decide whether those steps need a guard in the database or the target API before the first production failover.

Limits and risks to confirm before production use

Cross-region replication for self-hosted Temporal depends on several conditions that the team must confirm rather than assume. The cards below cover feature maturity, version alignment, upgrade order, failover behavior, cross-region capacity and rehearsal. Each one is a question to answer with the vendor's current documentation or in your own test environment before a production design is signed off.

Is the feature production ready?

Global namespace replication is a feature whose maturity status determines whether it belongs in a production design at all. Check the current status in the Temporal docs and the release notes for the server version you plan to run, and confirm whether the vendor supports it in production for your exact topology. If the status is experimental or pre-production, record that as a formal risk and get the owner's acceptance in writing. Do not treat an older blog post or forum answer as current evidence.

Server release notes

Do both clusters run the same version?

Ask whether your clusters can run different server versions during replication and during a rolling upgrade, and what the vendor documents for that window. Temporal documents that backward compatibility is guaranteed only between two successive minor versions, and recommends moving one minor version at a time to the latest patch first. Confirm how your replication setup handles a cluster that lags behind its peer, and plan the upgrade order around that answer.

Upgrade step size
One minor
Server upgrade docs

Are schema changes applied first?

Confirm for each release whether the release notes require a database schema upgrade before the server binaries change. Temporal's upgrade guidance calls for schema upgrades to run before server upgrades when the notes say so. In a two-region setup, ask how a schema change in one cluster interacts with replicated state in the other, and whether both clusters must be on a compatible schema before any failover test. Write the order as a runbook step that is tested, not assumed.

Upgrade steps

What does failover guarantee?

Ask the vendor which failover behaviors are documented as guaranteed, including how in-flight workflows, timers, activity retries and pending signals behave after a region switch. Do not assume that a workflow resumes exactly where it stopped without evidence. Ask whether replication lag affects the state you can recover, and how workers in the standby region reconnect. Where the documentation is silent, treat the behavior as unknown and test it with your own workflows.

Can each region carry the load?

Ask how much capacity the standby region needs to absorb full traffic, and how cross-region latency affects replication and task processing. Replication is asynchronous, so the cross-region link must keep up with write volume during peak hours. Measure replication lag and worker latency under realistic load in both regions. Also confirm whether database, visibility store and worker capacity in the standby region can be provisioned and kept current without manual steps.

Have both switchovers been rehearsed?

Ask whether your team can run a planned handover and an unplanned forced failover, end to end, without vendor help. Record the time to detect the event, the decision owner, the steps to redirect clients and workers, and the steps to fail back. Repeat the drill after each server upgrade, because a drill that passed on the old version proves little about the new one. A failed rehearsal is a finding to fix before production, not a reason to skip the test.

What teams ask before hiring help with Temporal replication

How much does a Temporal multi-cluster replication setup cost?

The cost depends on the number of regions, the persistence and visibility stores that must be deployed and kept in step in each region, the worker fleets that run in each region, and the time needed for failover drills. Some costs are one-time, such as design, build, runbooks and the first drill cycle. Others recur, such as infrastructure in two regions, database and search hosting, on-call coverage and repeated drills after each server upgrade. DeployOpen does not publish a price list. A quote follows from the written scope. Ask any quote to itemize work per region, per store, per worker fleet and per drill cycle, and to state which upgrade and retest work is included.

How long does Temporal replication setup take?

Duration depends less on cluster count than on two things: the documented maturity of the feature in the server version you plan to run, and how many failover drills you need before go-live. Confirm that status in the Temporal release notes for your target version before you set a schedule. The work then moves through namespace and recovery design, infrastructure in both regions, configuration, drills and handover documentation. Timelines are agreed in the written scope before work starts, and they should be revisited if the feature status changes during the project. The Temporal GitHub releases page is the starting point for checking release status.

What does our organization need to provide for this work?

The work needs four kinds of input from your side:

  • Cloud accounts or data center access in two regions, with network paths between them that your security team approves.
  • Database and search access in both regions, including the ability to create and test replicas for the persistence and visibility stores you use.
  • Named identity and network owners who can approve access, certificates and firewall changes during build and drills.
  • A business decision, signed by an accountable owner, on recovery time and acceptable data loss for each namespace that will be replicated.

Without the last item, the design cannot set failover criteria, and drills cannot show whether recovery meets the target.

Can our own team set up Temporal replication without a partner?

Yes, if your team has operators who already run Temporal, Kubernetes and the databases you plan to use, and if they have time set aside for drills. Temporal persistence is tested on Cassandra 3.11, 4.0 and 5.0.4 or later, PostgreSQL 13 to 16, and MySQL 5.7 and 8.0.19 or later, so confirm which of these your team supports well. Your team should also plan each server upgrade one minor version at a time, following the upgrade guidance. The main risk is inexperience with failover under pressure. A partner is most useful when that experience is missing or when an outside review is required before production use.

Does Temporal Cloud remove the need for this work?

Temporal Cloud removes the operation of self-hosted servers, persistence and visibility stores, so it removes much of the infrastructure work described here. It does not remove the design work for workflow recovery, worker placement or your own failure runbooks, and it has its own pricing and terms to compare. Published pay-as-you-go pricing starts at 50 US dollars per million actions, with active storage at 0.042 US dollars per GB-hour and retained storage at 0.00105 US dollars per GB-hour. Availability is listed at 99.9%, or 99.99% with high availability. Business support starts at 500 US dollars per month, while Enterprise and Mission Critical are quoted by sales. Check the pricing page against your expected action volume and retention.

Is Temporal multi-cluster replication ready for production?

Treat production use as a risk decision that needs written sign-off, not a default. Confirm the documented maturity of the feature for your exact server version, including whether it is marked experimental and what support Temporal offers for it. Ask which failure modes are known, how conflicts are resolved in your version, and what changes between minor releases. Plan a fallback path, such as restoring a single region from backups, in case replication behaves unexpectedly during an incident. Record which namespaces use replication and which do not, so the risk stays limited to the workflows that need it.

What does a fixed-scope DeployOpen engagement cover?

Most DeployOpen engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before work starts. For this topic, a written scope would normally name the regions, the persistence and visibility stores, the namespaces to replicate, the worker deployment approach in each region, and the runbooks for planned handover and forced failover. It would also state which drills are included and what evidence they produce. Ongoing upgrades, continuous testing and support are available as retainers. Ask for the exclusions in writing, including how a change in feature status or server version would be handled.

How DeployOpen scopes and delivers Temporal replication work

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including the Temporal clusters and regions involved. For multi-cluster replication and failover, the work starts with a written scope that separates planned handover from forced failover, and ends with runbooks and a handover your team can operate.

How we scope

  • Written scope covers the regions, namespaces and Temporal Server versions that will replicate.
  • Scope records which namespaces are global and which stay local to one cluster.
  • We confirm persistence and visibility stores on each side before any replication design is agreed.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We configure cluster identity, global namespace registration and replication settings for each region.
  • Planned handover and forced failover procedures are built and rehearsed as separate, documented steps.
  • Conflict resolution behavior is tested against workflows written by your own teams, not generic samples.
  • Network exposure, mTLS and authorization are reviewed so replication traffic stays on trusted internal networks.

How we hand over

  • Deliverables include configuration records, failover runbooks and a list of confirmed open items.
  • We document the risk of running the experimental replication feature in production and the controls chosen to manage it.
  • Your operators run a failover exercise with us, and the gaps found are fixed before handover.
  • Upgrade notes cover how a version change affects replication on each cluster.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers.
  • Retainers can cover re-running failover tests after Temporal Server upgrades or topology changes.
  • Support scope for replication is agreed in writing, including who responds to a failed handover.
  • A quote follows from the written scope, so your team can compare it with building this in-house.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.