Moving off Cassandra visibility before Temporal 1.24

If your self-hosted Temporal cluster still stores visibility in Cassandra, you must move it before running a server release that no longer supports it. This page explains the store choice, dual visibility and upgrade order.

On this page

Moving off Cassandra visibility before Temporal 1.24: why it comes first

If your self-hosted Temporal cluster still stores visibility data in Cassandra, you have to move that store before you run Temporal Server 1.24 or later. Cassandra visibility was removed in Temporal Server 1.24, so the visibility store must be replaced first, and the server upgrade cannot be the step that fixes it. Cassandra remains a supported persistence store for workflow state, so the change concerns only the visibility store. Your first task is to choose the replacement: Elasticsearch, OpenSearch or a SQL store. Temporal's visibility documentation recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions, and it lists MySQL 8.0.17 or later, PostgreSQL 12 or later and SQLite as advanced visibility options from 1.20. Confirm the exact version support for your target store against the current docs before you commit.

The supported path follows the general Temporal Server upgrade rules. Upgrade one minor version at a time, moving to the latest patch of the current minor first, because backward compatibility is guaranteed only between two successive minor versions. When the release notes for a step call for a schema change, run that schema upgrade before you replace the server binaries. For this topic, that means the sequence is planned hop by hop, with the visibility store change placed on a minor version you can run in staging. Current releases at the time of writing were Temporal Server v1.32.1, published October 8, 2026, with patch releases v1.31.4 and v1.30.8 published October 12, 2026 for earlier minor lines. Check the Temporal releases page on the day you plan, because the latest patch changes.

Ask your team to inventory three things before scheduling anything: the Temporal Server version you run today, the Cassandra visibility schema version, and how many workflow executions your visibility queries must cover. The inventory decides how many hops your path needs and whether you can use dual visibility during the switch. Visibility can be moved to a new store with dual visibility and dynamic configuration changes, which lets you write to both stores while reads come from the old one until the new store is complete. Plan that window with your operators, because it is the period where you run two visibility stores and where a missed step is most likely to cause trouble.

What changes in visibility when Cassandra is removed

This table compares each visibility store change that affects a cluster still running Cassandra visibility, with the impact on the cluster and the action to take. Read it top to bottom before choosing a target store, since the removal in 1.24 sets the deadline for the move. The main takeaway is that Cassandra visibility must leave the cluster before the 1.24 upgrade, and that Elasticsearch or OpenSearch is the usual target for any non-trivial workload.

ChangeImpact on the clusterAction needed
Cassandra visibility removed in 1.24Servers at 1.24 or later no longer read or write visibility data in Cassandra, so the store must be moved first.Plan the visibility move and finish dual visibility before the 1.24 server upgrade.
OpenSearch 2 or later supported from 1.30.1OpenSearch becomes a supported advanced visibility store only from Temporal Server 1.30.1 onward.Confirm the server line you will run before choosing OpenSearch as the target.
MySQL and PostgreSQL visibility from 1.20SQL visibility is available from 1.20, which can suit smaller workloads without a search cluster.Confirm the SQL visibility versions and sizing against the persistence and visibility docs for your server line.
Elasticsearch 7 and 8 supportedElasticsearch 7 and 8 are the documented search engine versions for advanced visibility.Confirm the exact Elasticsearch version against the server release you target and plan any search cluster upgrade separately.
Elasticsearch or OpenSearch recommended beyond a few workflow executionsVisibility queries and volume outgrow SQL or Cassandra-era sizing once executions grow beyond a small count.Estimate expected execution volume and choose a search backend for production rather than a small test setup.
Dual visibility and dynamic configurationTemporal can write to the old and new stores during the switch, with dynamic configuration changes to move reads.Rehearse the switch in staging and confirm dynamic configuration keys with the migration guide before production.

Choosing Elasticsearch, OpenSearch or SQL for visibility

Visibility stores hold the search index that Temporal uses to list and filter workflow executions. The choice depends on your license position, the security controls you need on the store, and how many workflow executions you expect to keep searchable. Confirm each option against the version you plan to run before you commit.

Elasticsearch under Elastic License 2.0

The default Elasticsearch distribution is licensed under the Elastic License 2.0, which is not an OSI-approved open source license. Elastic also offers AGPLv3 as an OSI-approved option, added in September 2024 before the 8.16 release. Confirm with your legal team which license your organization accepts before you pick an Elasticsearch build, because the distribution you install determines the terms that apply to the visibility store.

Elastic licensing FAQ

OpenSearch under Apache 2.0

OpenSearch is a fork of open source Elasticsearch 7.10 and is released under the Apache License, Version 2.0. The OpenSearch FAQ does not describe a paid edition. Temporal supports OpenSearch 2 or later from Temporal Server 1.30.1, so a team on an older server line must upgrade first. Check that your planned OpenSearch version is supported by your Temporal Server release before you choose it.

OpenSearch FAQ

Elastic security features by tier

In Elastic, single sign-on, Active Directory and LDAP authentication, and field- or document-level security sit in paid subscription tiers. TLS and role-based access control are free in the Basic tier. Alerting based on anomaly detection is limited to Platinum and Enterprise. Platinum is no longer offered to new customers. Confirm which tier covers the controls your security review requires for the visibility cluster, and get that in writing from Elastic.

Elastic subscriptions

OpenSearch Security capabilities

The OpenSearch Security plugin provides SAML, OpenID Connect, Active Directory, LDAP, Kerberos and JSON Web Token authentication, along with role-based access control, document-level and field-level security, field masking, audit logs and TLS for node and client traffic. Verify that the plugin is enabled and configured for the visibility cluster, since access settings are not the same as the Temporal frontend controls.

OpenSearch security docs

Support lifecycle for your version

Elastic maintains each major release for a defined window, and the 8.x line has a published end of maintenance date that falls before the 9.x line. OpenSearch versions stay in maintenance for a set period, and receive security patches but no new features while in maintenance. Confirm the end-of-life and maintenance dates for the exact version you plan to run before your visibility store goes into production.

Elastic end of life dates

SQL visibility for smaller volumes

MySQL 8.0.17 and later, PostgreSQL 12 and later, and SQLite can serve as advanced visibility stores. SQLite is meant only for development and testing. Temporal documents Elasticsearch or OpenSearch as the recommendation beyond a few workflow executions, so SQL visibility fits clusters with small execution volumes. Measure your expected visibility query load and retained execution count before you accept SQL as the long-term store.

Temporal visibility docs

How dual visibility keeps queries working during the switch

Dual visibility lets you move Cassandra visibility data to a new store without a query outage. Temporal documents that visibility can be moved to a new store using dual visibility together with dynamic configuration changes. The sequence has four phases: populate the new store, write to both stores, verify query results, then switch reads to the new store and retire Cassandra. Each phase has a different risk, so each needs its own check before you move on. The exact configuration keys, their names and their order must come from the official migration guide (Temporal: Migrate the Visibility store), not from this page or from memory of an earlier release.

During the populate phase, confirm that the new store's schema is in place and that the backfill of existing workflow executions has finished. Check the number of executions in both stores for a sample of namespaces, and check that recent executions appear in the new store within the time you expect. During the write-to-both phase, watch for write errors from either store, since a failure on the new store must not silently stop Cassandra writes, and confirm your Temporal Server metrics and logs show no rise in visibility errors. In the verify phase, run the same list queries against both stores, using the filters your operators, dashboards and automation actually use, and compare results. Differences in ordering, counts or search attributes are the most common findings, and each one needs a root cause before reads move.

Switch reads only after verification passes for every namespace that depends on visibility. Keep Cassandra running in write mode until the new store has served reads for a period you agree with your operations team, because rollback is only cheap while both stores still hold current data. Ask your partner or internal team to write down who approves the read switch, which dashboards and tools will be tested again after it, and how long Cassandra remains available before retirement. Confirm the current Temporal Server release notes for any version-specific steps, since they can change between releases.

Preparation: backups, inventory and a staging rehearsal

Four preparation tasks come before any visibility change on a Cassandra-backed cluster. Each one protects a different part of the move, from data you can restore to the queries that must keep working afterward, and together they give you a tested way back if the switch goes wrong.

Back up persistence and current visibility

Take a backup of the persistence store and of the Cassandra visibility keyspace before any schema or configuration change. Confirm the backup tooling, retention and restore steps with your own database and operations team, since they depend on your environment. Then run a test restore to a separate location so you know the backup is readable, not just present. Note the timestamp and the Temporal Server version in the backup record.

Visibility migration docs

Inventory search attributes and visibility clients

List every custom search attribute defined in each namespace, along with its type, and every service, dashboard, script or operator tool that queries visibility. Custom attributes must exist in the new store before dual writes start, and any client that filters on them will fail or return empty results if they are missing. Ask each owning team to confirm which queries they run and whether they depend on list ordering or count responses.

Build a staging cluster that matches production

Rebuild the cluster in staging with the same Temporal Server version, persistence backend, namespace count, and a copy of production-like visibility volume. Include the new visibility store, since that is where timing and sizing surprises usually appear. Use the staging run to measure how long dual visibility takes to catch up and to rehearse each step in the order your runbook lists. Confirm the staging hardware and data size with your platform team, because they set how close the rehearsal can get to production.

Agree the rollback point in writing

Decide before the change which step is the rollback point, and who has authority to invoke it. Usually this is the point where dual visibility is enabled but reads still come from Cassandra, because reverting is a configuration change rather than a data restore. Write down the signals that trigger rollback, such as query errors, lag in indexing, or dashboard mismatches, and rehearse the rollback in staging as well as the forward path.

The upgrade sequence around release 1.24

This sequence moves visibility from Cassandra to a supported store and leaves the cluster on a supported server line before the server reaches 1.24. Each step closes with a check and names the point you can return to. Work through the steps on staging before production.

  1. Inventory server and Cassandra versions

    Record the Temporal Server version on every service, the Cassandra version behind visibility, and the deployment method in use, such as Docker Compose, binaries or Helm. Also list the namespaces, expected workflow volume and every tool that queries visibility, including dashboards, scripts and alerts. Compare the inventory with the release notes for each minor version between your current server and 1.24 to see which hops you must take. The step is done when one signed-off document lists every version and visibility consumer. Rollback point: none is needed because nothing has changed yet, but keep this record for every later step.

  2. Choose the target visibility store

    Select Elasticsearch, OpenSearch or SQL for advanced visibility. Temporal documents Elasticsearch 7 and 8, OpenSearch 2 or later from Server 1.30.1, and MySQL, PostgreSQL and SQLite from 1.20, and recommends Elasticsearch or OpenSearch beyond a few workflow executions. Compare licensing: Elasticsearch's default distribution is under the Elastic License 2.0, while OpenSearch is released under the Apache License 2.0. Confirm the store version against the Temporal visibility docs for your target server. The step is done when the store, version and hosting model are recorded and approved. Rollback point: a decision only, so nothing needs to be undone.

  3. Stand up the new visibility store

    Deploy the chosen store in infrastructure you control, with network access limited to trusted internal networks, as the Temporal deployment guidance requires for its services. Enable TLS and authentication on the store before any Temporal traffic reaches it, because a Temporal cluster with no Authorizer configured accepts every API request. If you choose Elasticsearch for high availability, plan at least three master-eligible nodes. Create the index or schema with the tooling for that store and record its version. The step is done when every frontend and history host can reach the store and it reports healthy. Rollback point: the store is unused, so you can delete it without affecting the cluster.

  4. Enable dual visibility with dynamic configuration

    Use dynamic configuration to make the server write visibility records to both Cassandra and the new store while reads still come from Cassandra. Confirm the exact dual visibility setting for your server version in the migration documentation before you apply it. Apply the change to staging first, start a test workflow and confirm it appears in both stores with matching fields. Watch server logs for write errors on the new store. The step is done when test executions match in both backends and no write errors appear for the agreed observation period. Rollback point: remove the dual visibility setting through dynamic configuration, which returns writes to Cassandra with no binary change.

  5. Backfill and verify historical records

    Copy existing visibility records from Cassandra into the new store, starting with open workflows and any closed workflows still inside the query window your consumers need. Rehearse the backfill on staging using the method the migration documentation describes, then run it in production during a window your team chooses. Compare record counts, and sample executions by workflow ID and status across both stores. Resolve every gap before continuing. The step is done when counts and sampled queries match and the platform owner signs off on the reconciliation. Rollback point: Cassandra remains authoritative, so stop the backfill and keep dual writes running.

  6. Move visibility reads to the new store

    Switch read traffic to the new store through dynamic configuration once dual writes have run long enough for the team to trust the data. Verify list filters, search attributes, Web UI views and every dashboard or script that queries visibility. Track error rates and query latency against the thresholds your team set before the switch. The step is done when every consumer returns the expected results from the new store. Rollback point: switch reads back to Cassandra through dynamic configuration, which is safe because writes continued to both stores during the period.

  7. Upgrade one minor version at a time

    Upgrade the server one minor version at a time, moving to the latest patch of each minor line first, because backward compatibility is guaranteed only between two successive minor versions. For each hop, read the release notes and run any schema upgrade they call for before replacing the server binaries. If you deploy with Helm, match the chart and server image versions, since chart versions below 0.73.1 do not work with server 1.30 and later. Check that every service reports the expected version and that test workflows complete after each hop. Confirm in the 1.24 release notes what must be true before you cross that hop. Rollback point: the previous minor version and its matching schema, recorded before each hop.

  8. Remove Cassandra visibility configuration

    Before the server reaches 1.24, remove the Cassandra visibility configuration and retire the Cassandra visibility tables, since that release removed Cassandra visibility. First confirm that no consumer, report or backup job still reads from those tables. Keep the Cassandra data available for the rollback window your team sets before deleting it. The step is done when the server runs with only the new store configured for visibility and the owner has signed off. Rollback point: restore the Cassandra visibility configuration from the record kept in the inventory step, while the retained data is still available.

Testing and rollback for each cutover stage

Staging rehearsal proves the visibility move on a copy of production data before any live traffic changes. Run the same Temporal Server version, the same new visibility store version and the same dynamic configuration you plan to use in production. Capture baseline query results from Cassandra first so you have something concrete to compare against.

  • Query parity: Run a fixed set of list and count queries by workflow type, status, time range and search attributes against both stores, then compare the result sets, not only the totals.
  • Latency and errors: Measure latency percentiles and error rates for visibility queries under load close to your production peak.
  • Backfill coverage: Confirm which closed workflows the copy includes, especially those older than your retention window if your applications still search them.
  • Rollback drill: Switch the read configuration back to Cassandra and confirm the results return to baseline, and confirm whether a service restart is needed for the change to take effect.

Rollback trigger: any unexplained mismatch in query results, or an error rate above the threshold you agreed before testing started. Ask the platform team to record the drill timings and the signed-off thresholds before production work begins.

What makes a visibility migration take longer

This table lists the factors that most often stretch a Cassandra-to-new-store visibility move and what to check for each one. Read it before estimating, since the same Temporal version change can take a short or a long project depending on these inputs.

DriverWhy it adds workWhat to check
Workflow execution volume and retentionMore stored executions mean a longer backfill of visibility records and a larger index to size and monitor during dual visibility.Count open and closed executions per namespace and the retention period set on each namespace.
Number of custom search attributesEach custom attribute must exist in the new store's index or schema before workflows can be listed or filtered by it.Export the current custom search attribute list and confirm the type of each attribute in the target store.
Clients querying visibilityEvery service, dashboard, script or operator tool that reads visibility queries must be tested against the new store and its query syntax.Inventory callers that use list or count visibility APIs, including the Web UI and any reporting jobs.
Elasticsearch or OpenSearch sizing and node rolesA cluster with too few nodes, or without dedicated master-eligible nodes for high availability, adds rework once load arrives.Confirm the target version, node roles and the master-eligible node count against the vendor's documentation before provisioning.
Team familiarity with the new storeUnfamiliar query tuning, index lifecycle, security settings and upgrade rules slow troubleshooting during the switch.Identify who will own the search cluster after cutover and whether they have run it in production.
Number of minor versions to crossEach minor hop needs its own schema step, binary rollout and wait period before the next hop.List the Temporal Server versions between your current release and the target, and check the release notes for each.

Questions teams ask before moving off Cassandra visibility

What drives the cost of moving Temporal visibility off Cassandra?

The cost comes mostly from the people and environment work, not from the store itself. Costs grow with the number of Temporal clusters and namespaces, the volume of workflow executions to index, how many search attributes your workflows use, and how many teams query the Web UI or custom tooling. One-time costs include planning, a staging rehearsal, the new store build, dual visibility testing and the cutover window. Recurring costs include running and patching the new search store, its storage and backups, and on-call coverage. Ask any partner for a quote that lists each of these separately and states what is in scope.

How long does a Cassandra visibility migration take?

Duration depends on the scope you agree in writing, not on a fixed number. The main variables are the cluster count, the visibility data volume, how many search attributes and custom queries you rely on, whether you rehearse in staging, and how long you run dual visibility before trusting the new store. Temporal's own visibility docs describe dual visibility and dynamic configuration changes as the mechanism for the switch, so plan a window long enough to compare results from both stores. Ask for a timeline tied to specific milestones rather than a single date.

What must our team provide before a visibility migration starts?

Your team needs to provide an inventory of Temporal clusters, versions, namespaces and search attributes, plus the Cassandra visibility schema and current query patterns used by the Web UI, tctl or temporal CLI scripts, and internal dashboards. You also need access to a staging environment that mirrors production, the infrastructure account or data center where the new store will run, a named decision-maker for the store choice, and a maintenance window for cutover. Confirm with your platform team which change approval process applies, because dynamic configuration changes and server restarts usually go through it.

Can our internal team move Temporal visibility off Cassandra alone?

Often yes, if the team has run Temporal Server upgrades, operated a search cluster and tested dynamic configuration changes. The hardest parts are usually the staging rehearsal, verifying that queries return the same results in both stores during dual visibility, and planning a rollback. Ask whether your team has someone who can own the search store for its whole life, because the store is a new recurring dependency. If the team lacks any of those skills, an implementation partner can take on defined parts of the work under a fixed-scope agreement, while your staff keep ownership of the production decisions.

Should we choose Elasticsearch, OpenSearch or SQL for visibility?

Temporal's visibility docs list MySQL 8.0.17 and later, PostgreSQL 12 and later, and SQLite as advanced visibility options from Temporal Server 1.20, and recommend Elasticsearch or OpenSearch for anything beyond a few workflow executions. For a high volume of executions, the choice usually comes down to Elasticsearch or OpenSearch. Elasticsearch 7 and 8 are supported, and OpenSearch 2 or later is supported from Temporal Server 1.30.1. The licensing differs: Elasticsearch's default distribution uses the Elastic License 2.0, while OpenSearch is released under the Apache License, Version 2.0. Check your procurement rules, the versions you can run, and your team's skills before deciding.

Does Elasticsearch licensing affect our choice of visibility store?

Yes, it can. Elastic says its default distribution has been under the Elastic License 2.0 since 2021 and that AGPLv3 was added as an OSI-approved option, with the AGPLv3 option added in September 2024 before the 8.16 release. The Elastic licensing FAQ also states that ELv2 and SSPL are not OSI-approved. Security features such as single sign-on, field- and document-level security and anomaly-based alerting sit in paid subscription tiers, and the Platinum tier is no longer offered to new customers. OpenSearch's security plugin covers SAML, OpenID Connect, LDAP, Kerberos and JWT, under Apache 2.0. Have your legal and procurement teams review the license and subscription terms for the exact version you plan to run.

What happens if the visibility cutover fails?

A failed cutover should be reversible if you planned for it before starting. Dual visibility lets Temporal write to both stores while you verify results, so the rollback is a configuration change back to the Cassandra store rather than a data restore, provided the Cassandra data is still intact and the Temporal Server version supports that path. Before cutover, confirm the rollback steps in staging, record the dynamic configuration values, and agree on the criteria for calling a rollback. Cassandra visibility was removed in Temporal Server 1.24, so the rollback window closes once you upgrade past that release, which is why the store decision and the upgrade order must be settled first.

How the visibility store switch fits the upgrade path

The switch starts on the running Cassandra visibility store and moves through a newly provisioned store, dual visibility writes, and verification before reads are cut over. Cassandra is retired only after reads are confirmed on the new store, and a rollback decision point sits before each irreversible step. Server minor upgrades toward the latest patch follow once visibility is settled, so check the release notes for schema steps at each hop.

Phases of the visibility store switch, with rollback decision points, before server minor upgrades.

How DeployOpen scopes and delivers the visibility move

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure, so the visibility move runs on your cluster with your access controls. Engagements are fixed-scope, with the store choice, dual visibility window and upgrade order agreed in writing before work starts.

How we scope

  • Inventory the current Cassandra visibility setup, Temporal Server version and deployment method before choosing a target store.
  • Record the choice between Elasticsearch, OpenSearch or SQL visibility, with the licensing and security needs of your organization.
  • Agree in writing the dual visibility window, the upgrade order around release 1.24 and the staging rehearsal steps.

How we build

  • Provision the chosen visibility store in your infrastructure, with TLS, access control and node sizing planned up front.
  • Enable dual visibility and the dynamic configuration changes in a staging cluster, then verify reads and writes against both stores.
  • Test the cutover and rollback steps against a copy of your workflow volume before any change reaches production.

How we hand over

  • Deliver the runbook covering each upgrade hop, the schema steps, the waits between them and the rollback path.
  • Document the visibility store configuration, credentials handling, backups and the access model your teams will operate.
  • Walk operators through monitoring of the visibility store and the checks confirming the old Cassandra path is retired.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Review each later Temporal Server or visibility store release against your configuration before you schedule an upgrade.
  • Confirm with your team which support terms, response times and escalation paths apply before signing a scope.

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.