Skip to main content

Temporal (temporal)

Durable workflow engine running the long agent tasks and pipelines of the Navin Control Plane. One process or separate frontend, history, matching and worker roles on PostgreSQL.

Generated from catalog/services/temporal.yaml: do not edit by hand.

Summary​

Version1.27.4
Useinstall and configure
Layerinfrastructure (shown apart)
CategoryData platforms
Installation methodsbinary, podman
External connectionno
Sandbox onlyno

Licence​

SPDX identifierMIT
Licence policycore licence (MIT or Apache-2.0)
Licence exception-
Platform componenttemporal

Packages and artifacts​

A package the project of the service publishes (its image, its binary archive, its Python or OS package) carries the licence of the service; a third-party package carries the licence written on its row, read from the official upstream metadata.

KindPackageVersionLicenceDetails
container imagedocker.io/temporalio/server1.27.4MITimage key server, used by frontend, history, matching, worker, digest sha256:4cf4366ff5f127558161e9d071892519a87681a8df494f03fb228f585a75a782
container imagedocker.io/temporalio/admin-tools1.27.2-tctl-1.18.2-cli-1.3.0MITimage key admin-tools, used by schema, digest sha256:b5ae59dae6ea00c22fc2bdf04a2cfaf59e3e036b8b09ca777f99e2c871396fa2
binary archivetemporal_1.27.4_linux_amd64.tar.gz1.27.4MIThttps://github.com/temporalio/temporal/releases/download/v1.27.4/temporal_1.27.4_linux_amd64.tar.gz, x86_64, checksum sha256

Images are pinned by tag in the descriptor, and by digest when the descriptor declares one (the offline bundle then refuses a pulled image that does not carry it); the digest is recorded in the mirror of the Manager when the offline bundle is imported, and every pull or load is checked against it.

Supported systems and architectures​

MethodOperating systemsArchitectures
binaryRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64 (architecture of the artifacts of the descriptor)
podmanRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)

Certified host systems: RHEL 8/9/10, Rocky Linux 8/9/10, AlmaLinux 8/9/10, Oracle Linux 8/9, CentOS Stream 9/10, Ubuntu 22.04/24.04, Debian 12, Arch Linux (rolling). The host preflight accepts these systems (other releases of a known family give a warning, end of life releases are refused) and the x86_64 and aarch64 architectures.

Prerequisites​

Host​

  • at least 2048 MB of memory (blocking, memory).

Network and ports​

ComponentPort namePortOpened in the host firewall
frontendgrpc7233/tcpyes
frontendhttp7243/tcpyes
frontendmetrics9090/tcpyes
frontendmembership6933/tcp (mode cluster)yes
historygrpc7234/tcpyes
historymembership6934/tcpyes
historymetrics9091/tcpyes
matchinggrpc7235/tcpyes
matchingmembership6935/tcpyes
matchingmetrics9092/tcpyes
workergrpc7239/tcpyes
workermembership6939/tcpyes
workermetrics9096/tcpyes

Services and connections needed​

Details and resolution: see Dependencies.

Installation methods and modes​

MethodDefaultWhat the method uses
binaryyesthe binary archives of the descriptor, unpacked under the service directory
podman-the container images of the descriptor, run by Podman under systemd

Components​

ComponentKindInstallation methodsPorts
Schema setup (schema)one shotbinary, podman-
Frontend (frontend)masterbinary, podman7233/tcp, 7243/tcp, 9090/tcp, 6933/tcp (mode cluster)
History (history)masterbinary, podman7234/tcp, 6934/tcp, 9091/tcp
Matching (matching)masterbinary, podman7235/tcp, 6935/tcp, 9092/tcp
Internal worker (worker)workerbinary, podman7239/tcp, 6939/tcp, 9096/tcp

Single process (standalone) (default)​

One process runs frontend, history, matching and worker.

What the mode deploys:

ComponentPlacement
schemamin 1, max 1
frontendmin 1, max 1
historynot used
matchingnot used
workernot used

Separate roles (cluster)​

Frontend, history, matching and worker scale on their own hosts.

What the mode deploys:

ComponentPlacement
schemamin 1, max 1
frontendmin 2, recommended 2
historymin 2, recommended 3
matchingmin 2, recommended 2
workermin 1, recommended 2

Install this service​

The install wizard of the Navin Manager plans, validates and runs the installation; you need the services:install permission on the cluster.

  1. Open the wizard. In Clusters, choose the row action Install services of the target cluster. The wizard opens on its first step, Service.

  2. Choose the service. On the Service step, select Temporal. The card shows the licence MIT and the dependencies the installation needs. Pick the Method among binary, podman (default binary).

  3. Choose the hosts and the mode. On the Hosts step, tick the hosts, then choose the Mode: standalone (default), cluster. Each mode deploys the components listed in Installation methods and modes. With several components, place each one on its hosts in Component placement (Suggest placement proposes a placement that respects the cardinalities).

  4. Bind the dependencies. On the Bindings step, choose for each dependency (db, visibility) Install with the platform or Use an existing connection; an optional dependency can stay on No binding.

  5. Configure. On the Configure step, review the parameters (see Configuration parameters). Passwords left empty with a generated default are generated and sealed by the Manager.

  6. Review and install. On the Install step the Manager validates the plan and shows the installation order; when it says "The plan is valid. Ready to install.", choose Install. A highly available mode is installed only when its HA checks pass.

  7. Verify. The operation ends when the health checks of every instance pass (see Health checks); the service then shows as running in Services.

High availability​

Clusternative (native)
High availabilitynative (native)
Failovernative (native)
Replicationshared store (shared-store)
Quorumgossip (gossip)
Discoverydatabase (database)
Entry pointload balancer (load-balancer)
Official documentationhttps://docs.temporal.io/self-hosted-guide/deployment
Peer TLS parametertls_enabled
Cluster status commandcluster_health

Prerequisites​

PrerequisiteMust be highly availableModesDescription
dbyesmodes of level ha or clusterHighly available PostgreSQL (persistence).
visibilityyesmodes of level ha or clusterHighly available PostgreSQL (visibility).

Topology per mode​

ModesHighest catalog levelDistributionQuorum componentFault domainsDescription
standalonestandalone (standalone)single (single)-1One process running frontend, history, matching and worker.
clustercluster (cluster)active-active (active-active)-22 or more instances of each role; the history shards move between the history instances.

Notes​

  • Temporal is highly available only if its persistence is: the history, matching and frontend instances hold no durable state of their own.

Configuration parameters​

Network​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Frontend gRPC port (frontend_port)port7233-nononogRPC port of the frontend service (SDK clients and workers).
HTTP API port (http_port)port7243-nononoHTTP API of the frontend (EAI_TEMPORAL_URL of the Navin Control Plane).
History gRPC port (history_port)port7234-nononogRPC port of the history service.
Matching gRPC port (matching_port)port7235-nononogRPC port of the matching service.
Worker gRPC port (worker_port)port7239-nononogRPC port of the internal worker service.
Membership base port (membership_base_port)port6933-nononoRingpop ports: frontend base, history base+1, matching base+2, worker base+6.
Metrics port (metrics_port)port9090-nononoPrometheus endpoint of every Temporal process (base port, plus the role offset in cluster mode).

Cluster​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
History shards (history_shards)int512min 1, max 16384nononoFixed at creation of the cluster, cannot be changed later.
Default namespace (default_namespace)stringnavin^[a-z][a-z0-9-]{1,60}$nononoNamespace given to the clients (EAI_TEMPORAL_NAMESPACE).

Security​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
TLS (tls_enabled)boolfalse-nonoyesServe the frontend (gRPC and HTTP API) over TLS and secure the traffic between the roles with mutual TLS, with the certificates issued by the manager CA.

Dependencies​

For each active dependency the Manager takes the first of: the binding chosen in the wizard; a service of the same installation that provides it; a service already installed in the cluster; the only connection of the expected type. Otherwise an optional dependency stays unbound, and a required one is added to the installation in its default mode (the column below names the catalog service added).

BindingProvided byConnection typeEndpointOptionalWhen nothing is boundDescription
dbpostgresqlpostgresql-nopostgresql is added to the installationMain persistence of Temporal (PostgreSQL 12 or later).
visibilitypostgresqlpostgresql-nopostgresql is added to the installationVisibility store of Temporal (separate PostgreSQL database).

Endpoints​

EndpointSchemeComponentPortPathTLS parameterBinding parametersBinding secretsProvisioning command
frontendgrpcfrontend7233 (frontend_port)-tls_enabledtls--
httphttpfrontend7243 (http_port)-tls_enabledtls--

Client configuration files​

Files rendered for the client configuration download:

  • temporal.env (client.env.j2)

Commands​

CommandComponentTargetDescription
Set up the schema (setup_schema)schemafirst hostCreates or upgrades the main and visibility schemas (idempotent).
Frontend health (cluster_health)frontendevery hostChecks the HTTP API of every frontend.

Health checks​

Liveness (per instance)​

ComponentCheckDetails
frontendTCP {{ host.ip or '127.0.0.1' }}:{{ config.frontend_port }}60 retries
historyTCP {{ host.ip or '127.0.0.1' }}:{{ config.history_port }}60 retries
matchingTCP {{ host.ip or '127.0.0.1' }}:{{ config.matching_port }}60 retries
workerTCP {{ host.ip or '127.0.0.1' }}:{{ config.worker_port }}60 retries

Readiness (service check)​

CheckDetails
TCP {{ host.ip or '127.0.0.1' }}:{{ config.frontend_port }}-

Preflight checks​

CheckTypeMeaningSeverityComponents
memorymemory_mb {"min": 2048}at least 2048 MB of memoryblockingevery component
frontend_port_freeport_free {"param": "frontend_port"}port 7233 free on the hostblockingfrontend

Uninstall​

Paths removed when the data is purged: {{ paths.data }}, {{ paths.log }}.

Upstream documentation​