Temporal Service configuration essentials

Static Temporal Service configuration decides your database, search, security and shard layout before the first workflow runs. This page explains what to set, what needs a restart and what to confirm.

On this page

Temporal Service configuration essentials: what you set before go-live

If you run a self-hosted Temporal Service, the static configuration decides most of what is hard to change later, so it needs to be right before the first production workflow. Static settings live in the server configuration files and are read at startup, so changing them means a restart and, for some of them, a rolling change across every Temporal service. The areas that matter most are the persistence store that holds workflow state, the advanced visibility store that powers search, the numHistoryShards value that partitions workflow history, TLS for internode and frontend traffic, metrics exports, and the authorization model. Teams that already run Temporal in a test environment often discover late that these choices were made by default, and the defaults are not designed for production.

Persistence and visibility deserve the earliest decisions. Temporal's persistence docs list Cassandra, PostgreSQL and MySQL as tested stores, with SQLite meant only for development and testing. The visibility docs recommend Elasticsearch or OpenSearch for anything beyond a few workflow executions. Confirm the exact versions your chosen store must match in the Temporal persistence documentation and the visibility guide, and plan backups for both stores. numHistoryShards cannot be changed after the cluster is created, so size it with your expected concurrency and growth in mind, and check the scaling guidance before you set it. Authorization needs a deliberate choice as well: if no Authorizer is configured, Temporal uses the noopAuthorizer, which allows every API request. Set a ClaimMapper and Authorizer, enable mTLS between services and keep the services off the public internet.

Temporal Cloud removes most of this work. The provider operates the persistence, visibility, sharding, upgrades and the TLS and identity foundations, and you pay for usage and support instead, as described on the Temporal pricing page. Self-hosting keeps data placement, network control and operating cost under your team's control, but the recurring costs are staff time for upgrades, database operations, certificate rotation, monitoring and on-call. Before you commit, ask your team to inventory who will own each static setting, how changes are tested in a non-production cluster, and how a configuration rollback would work. DeployOpen can plan and document this configuration against your compliance and hosting requirements, and the output is a written scope and a set of checks your team can run.

Which static configuration options fit which decisions

This table compares the static Temporal Service settings that most production designs must decide early, with the situations where each option fits and what to confirm before choosing it. Read each row as a decision: pick the option that matches your scale, your existing database standards and your security model, then verify the listed items against the version you plan to run.

DecisionOptions and when they fitWhat to confirm
Persistence storeCassandra fits teams already operating Cassandra at scale. PostgreSQL and MySQL fit teams with existing relational database operations. SQLite is for development and testing only.Supported versions for your server release, backup and point-in-time recovery tooling, and who on your team operates the database.
Advanced visibility storeElasticsearch or OpenSearch is the recommended choice for anything beyond a few workflow executions. PostgreSQL, MySQL and SQLite are simpler options for smaller deployments.Supported major versions for your server release, query needs for search attributes, and index capacity and retention planning.
numHistoryShardsSet once at cluster creation. A higher value allows more parallel history processing, but it cannot be changed later on an existing cluster without a migration.The shard count you need for expected load, confirmed with Temporal documentation and a load test before the first production namespace is created.
TLS (internode and frontend)Use separate settings for internode and frontend traffic. Internode TLS protects traffic between Temporal services, and frontend TLS protects client and worker connections.Certificate authority, rotation process, and which clients, workers and the Web UI must present trusted certificates.
MetricsEnable metrics export to your monitoring stack so shard health, persistence latency and task queue backlog are visible before incidents.Which metrics your alerting uses, the exporter endpoint format, and who owns dashboards for each service.
Authorizer and ClaimMapperIf no Authorizer is configured, the default noopAuthorizer allows every API request with no access control. A custom Authorizer with a ClaimMapper is needed for namespace roles based on JWT or certificate claims.Whether you need a custom Go build to load the plugin, how claims map to namespace roles, and how access is tested before go-live.

How the Temporal Service parts connect

The diagram starts with clients and workers, which reach the frontend service over gRPC inside the trust boundary. The frontend hands work to the history service, which owns workflow state and writes it to the persistence store, while the matching service routes tasks to workers. Advanced visibility and metrics are separate hand-offs to check: the visibility store should be sized and secured like the persistence store, and the metrics endpoint should be reachable by your monitoring system but not the public internet.

Clients, workers and internal Temporal Service roles with their persistence, visibility and metrics hand-offs.

Choosing persistence and visibility stores for production

The persistence store is the database that holds workflow state, history and task queues, so its choice shapes almost every later operational decision. For production, the tested options are 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. SQLite is meant only for development and testing and should never hold production workflow state. Before you pick one, check the exact supported versions against the current Temporal persistence documentation, because the tested matrix moves with each server release. Choose the engine your database team can back up, patch, monitor and restore, since Temporal will depend on it continuously. Confirm that your chosen engine is available in your own infrastructure with the high availability and backup arrangements your compliance program expects.

Visibility is the store that answers list and search queries over workflow executions, and it is separate from persistence. Advanced visibility supports Elasticsearch 7 and 8, OpenSearch 2 or later from Temporal Server 1.30.1, and MySQL 8.0.17+, PostgreSQL 12+ and SQLite from 1.20. Cassandra visibility was removed in 1.24, so any older design that assumed it must be reworked before an upgrade. The Temporal documentation recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions, because search load and index growth can slow the Web UI and list queries well before the core workflow engine is stressed. Plan the search cluster's sizing, retention and access controls alongside the persistence design, and confirm current version support on the visibility documentation before you commit.

How to configure a production Temporal Service step by step

This sequence takes a self-hosted Temporal Service from version selection to a verified, private deployment with configured persistence, visibility, shards, TLS and metrics. Each step closes with a check so the team knows it can move on.

  1. Confirm server, schema and chart versions

    Choose the Temporal Server minor line and the matching patch release from the GitHub releases, then confirm the release notes for any schema changes that must run before the server upgrade. If you deploy on Kubernetes, confirm the Helm chart version is compatible with the server image, since chart versions below 0.73.1 do not work with server images 1.30 and later. Upgrades should move one minor version at a time, so record the version you are starting from. Done when the team has a written version matrix (server, schema, chart, SDK) that the platform owner has approved.

  2. Provision the persistence store

    Create the primary persistence database on a supported engine and version: Cassandra, PostgreSQL or MySQL, as listed in the persistence documentation. SQLite is for development and testing only and should not appear in this step. Set up backups, credentials scoped to Temporal, and network rules that allow only the Temporal Service hosts to connect. Run the schema setup tooling for your chosen engine and version. Done when the schema tool reports a successful initialization and a test connection from a Temporal host succeeds.

  3. Provision the advanced visibility store

    Choose a visibility store that matches the expected number of workflow executions. The visibility documentation recommends Elasticsearch or OpenSearch for anything beyond a few workflow executions, and lists the supported versions for each, including OpenSearch 2 or later from server 1.30.1. Create the index or schema, restrict access to the Temporal hosts, and confirm the store is reachable. Done when a visibility schema setup succeeds and the team has confirmed the versions against the visibility page for its exact server release.

  4. Set shard count and static configuration

    Set numHistoryShards before the first workflow runs, because the shard count is fixed for the life of a cluster and cannot be changed later without a migration. Then write the static configuration file with persistence and visibility stores, frontend and internode addresses, TLS settings and the metrics endpoint. Keep secrets out of the file and load them from your secrets manager or environment. Done when a dry run of the server with the file reports every service starting with the intended shard count and no configuration errors in the logs.

  5. Enable TLS and an authorizer before exposure

    Configure mTLS with separate settings for internode and frontend traffic, and decide how clients will authenticate. If no Authorizer is configured, self-hosted Temporal uses the noopAuthorizer, which allows every API request, so set a ClaimMapper and an Authorizer before any non-test client connects. Confirm which settings take effect only after a restart and record them in the change log. Done when a client without a valid certificate or token is refused on the frontend and an authorized client succeeds.

  6. Start services on private hosts

    Run the frontend, history, matching and worker services on hosts that are not reachable from the public internet, with network access limited to trusted internal networks as the deployment documentation directs. Start the services with the static configuration, one service per process or pod as your deployment model requires. Expose the metrics endpoint only to your monitoring system. Done when a network scan from outside the trusted network shows no open Temporal ports and all four services are running on the internal hosts.

  7. Verify health, namespace access and metrics

    Check cluster health with the CLI or health endpoint, then create a test namespace and confirm that an authorized client can start and complete a simple workflow while an unauthorized identity is refused. Confirm the metrics endpoint returns series that your dashboards and alerts consume, and that the shard count reported matches the configuration. Record the results in the runbook. Done when the health check passes, the test workflow completes, access control behaves as configured, and metrics are visible in your monitoring tool.

Which settings need a restart and which do not

Temporal Service configuration splits into settings read once at startup and settings that can change while the cluster runs. Knowing which is which decides when you schedule a rolling restart, and whether a change can wait for a maintenance window.

Static settings that need a restart

Static configuration is loaded when each Temporal Service process starts. Persistence and visibility stores, the number of history shards, TLS, and the listen addresses all fall here. Changing them on a running cluster does not take effect until each service process is restarted. Plan these changes as rolling restarts, and confirm the restart requirement for each key in the current self-hosted configuration reference before editing it.

Deployment docs

The dynamic configuration file

Dynamic configuration is a separate file that the Temporal Service reads and polls for changes, so many overrides apply without a restart. It holds per-namespace and global values for tuning behavior. Keep it under version control and confirm the polling interval in your deployment, because a change is only as current as the last poll.

Keys that must not drift

Some settings, such as the number of history shards, cannot be changed on an existing cluster without a new deployment. Treat them as fixed at creation time. Record their values in your infrastructure code and compare the running config against that record before every upgrade or scaling change.

Recording changed keys at each upgrade

Each Temporal Server upgrade can add, rename or change the default of configuration keys. Keep a dated change log listing every key you set or altered, its old and new value, and whether it is static or dynamic. Review the release notes for the target version against this log before rolling out, and confirm each key's restart behavior in the docs for that release.

Upgrade step
1 minor
Upgrade guide

Verifying a change took effect

A configuration file edit does not prove the running service uses the new value. After a restart or a dynamic configuration poll, check the effective value through logs, metrics, or the service's own status output. Record the check in your change ticket so an operator can confirm the setting was applied on every host and pod, not only the first one.

Sequencing changes with schema updates

When release notes call for a schema upgrade, it must run before the server upgrade, and a configuration change that depends on new schema should follow the same order. Pair each restart plan with the schema step it depends on. Check the target version's release notes for ordering rules before you touch either the database or the server.

Questions teams ask before configuring Temporal for production

What does Temporal service configuration work cost, and what drives it up?

The cost is the engineering time to design, build and verify the service configuration, and it is quoted from a written scope rather than a rate card. The main drivers are the number of environments, the choice of persistence and visibility stores, how many TLS and identity integrations are needed, whether metrics and alerting are built now, and how many upgrade paths must be documented. Ask any provider to split the quote into design, build, verification and handover, and to state which items are one-time and which recur, such as retainer support or upgrades. DeployOpen does not publish a price list, and a quote follows from the written scope.

How long does it take to get a production-ready Temporal configuration?

Duration depends on how many decisions are still open when the work starts, mainly the database choice, the visibility store, identity model and network layout. Teams with those decisions made and an existing database platform usually move faster than teams that must choose them first. No timeline is stated here because none is supplied for this topic, so ask for a schedule tied to named milestones: environment build, load-related settings, TLS and identity validation, and a documented restart and upgrade procedure. Treat any date that is not tied to those milestones as an unverified estimate.

What does the configuration work need from our database, network and identity teams?

The work needs people who own each dependency, not only the platform team. Database administrators provide the persistence and visibility stores, credentials, backup policy and sizing input. Network engineers confirm that Temporal services sit on hosts not reachable from the public internet and that traffic between services, workers and clients is restricted to trusted internal paths. Identity teams supply the certificate authority or JWT issuer, the claim mapping to namespace roles, and the OIDC settings for the Web UI. Agree on these contacts and access windows before the scope is signed.

Can our internal team configure self-hosted Temporal on its own?

Yes, a capable internal team can configure Temporal alone if it has database, networking, TLS and identity skills and time to read the upgrade and security documentation closely. The areas that most often need specialist review are the authorization model, since the default noopAuthorizer allows every API request until an Authorizer is configured, and the order of schema and server upgrades. Teams that want an independent check of their settings can scope a separate review. Ask whether the work will include documented settings, a restart checklist, and a handover that your own staff can operate.

Which static Temporal settings need a restart, and how do we check them?

Static configuration, such as persistence, visibility, TLS and metrics settings, is read when the Temporal Server starts, so changes to it require a restart of the affected service. Dynamic configuration is different because it is polled from a file and can change behavior without a restart. Before production, list every static key your team sets, mark which ones need a rolling restart, and test that change in a non-production environment. Keep the exact keys and values under version control so a rollback is a known action.

Does Temporal Cloud change the configuration work, and what does it cost?

Temporal Cloud removes the need to configure and operate the persistence, visibility and server services yourself, so most of the configuration effort moves to connectivity, identity and client-side settings. Temporal Cloud pay-as-you-go pricing starts at 50 US dollars per million actions, with active storage at 0.042 dollars per GB-hour and retained storage at 0.00105 dollars per GB-hour, according to the Temporal pricing page. Support add-ons start with Business at 500 US dollars per month, with a 2-hour P0 response in business hours. Enterprise and Mission Critical are quoted by sales and include SCIM. Your actual bill depends on action volume and storage, so model those against your workload before deciding.

What should a self-hosted Temporal configuration review check before go-live?

A review should confirm the persistence and visibility stores are on supported versions, the numHistoryShards value was chosen deliberately because it is fixed after cluster creation, TLS is enabled for internode and frontend traffic, an Authorizer and ClaimMapper are in place, and metrics are exported and alerted on. It should also confirm that the upgrade path follows one minor version at a time and that schema upgrades run before server upgrades when release notes require them. Supported persistence and visibility versions and the upgrade order are listed in the Temporal documentation, so check them against your chosen release at the time of build.

When Temporal Cloud changes the configuration work

Choosing Temporal Cloud moves most of the static configuration described on this page out of your hands. Persistence and visibility stores, numHistoryShards, the Temporal Server service layout and the upgrade sequence for the server itself become the provider's operational work rather than yours. What stays with your team is the application side: how workers and clients connect, which namespaces you create, how identities map to access, and how payloads are protected before they leave your systems. Self-hosting keeps all of the server layer in your infrastructure, including the database schema upgrades, the TLS settings on the frontend and internode traffic, the Authorizer and ClaimMapper, and the metrics pipeline. That is the trade: more control over where data lives and how the server is configured, in exchange for owning the runbooks that a managed service would otherwise carry.

The Cloud pricing page lists pay-as-you-go rates that begin at 50 US dollars per million actions, with active storage at 0.042 dollars per GB-hour and retained storage at 0.00105 dollars per GB-hour. Those rates recur with usage, so the cost driver to model is the volume of actions and the amount of data each workflow keeps, not a fixed license line. Self-hosting has its own recurring costs, such as database hosting, visibility infrastructure, compute for the services, and staff time for upgrades and on-call, and these are not priced by the vendor. The same pricing page lists availability options of 99.9% or 99.99% with high availability, plus SAML SSO. Before comparing those numbers with your own design, ask the provider for the written SLA terms, which dependencies are included, and how support tiers are priced and staffed, since support add-ons differ in P0 response times and in whether SCIM is included.

Before choosing either path, confirm data residency and compliance requirements with your compliance and legal teams. Ask where workflow histories, payloads and visibility records would be stored, which regions and sub-processors are involved, what audit evidence the provider can supply, and whether your controls require that database and key material stay inside your own boundary. If residency or key custody is a hard requirement, the configuration work in this topic remains yours. If the provider can meet those requirements in writing, the work shifts toward namespace design, identity mapping and payload encryption at the client edge.

How DeployOpen scopes and delivers Temporal service configuration

DeployOpen plans, implements, documents and supports the static configuration of a self-hosted Temporal Service inside infrastructure you control. Work starts with a written scope covering persistence, visibility, shard count, TLS, metrics and restart planning, and ends with a handover your operators can run.

How we scope

  • Inventory your target persistence database and visibility store against the versions Temporal documents as tested.
  • Record the planned numHistoryShards value, which cannot be changed later without rebuilding the environment.
  • Define which settings require a server restart and agree the change windows with your operations team.
  • Agree in writing the deployment method, environments, deliverables and timeline before any build work starts.

How we build

  • Configure persistence and advanced visibility stores, running schema setup and upgrades in the order release notes require.
  • Set mTLS for internode and frontend traffic, with separate certificate chains and rotation steps documented.
  • Wire metrics export and alert baselines so shard, persistence latency and service health are visible from day one.
  • Test each configuration change in a non-production environment that matches your production topology.

How we hand over

  • Deliver the static configuration files, secrets references and a map of which keys need a restart.
  • Document the upgrade procedure, moving one minor version at a time to the latest patch of each step.
  • Run a walkthrough with your platform, security and database teams so they can change settings and read the metrics themselves.
  • Provide a checklist of security settings, including Authorizer and network exposure, for your review.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover.
  • Re-check configuration against each new Temporal Server release notes before scheduling an upgrade.
  • Retest TLS, authorization and visibility behavior after changes to certificates, databases or network paths.
  • Confirm with your team which support tier, hours and response terms apply before the retainer starts.

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.