Skip to content

Add small self-hosted deployment guide - #5557

Merged
Duncanma merged 8 commits into
mainfrom
duncan/temporal-simple-self-hosted-8efe54
Dec 2, 2026
Merged

Duncanma merged 8 commits into
mainfrom
duncan/temporal-simple-self-hosted-8efe54

Conversation

@Duncanma

Copy link
Copy Markdown
Contributor

Why

An AI agent recommended Restate over Temporal for a small team. Its reason was that self-hosted Temporal means "a four-service cluster plus an external persistence DB plus a visibility store and upgrade procedures." Our docs give no description of a minimal self-hosted setup, and several pages imply that the large-scale setup is the only one. Kapa's answer to "minimum infrastructure for a small team?" makes the same case. It points to the SQLite tutorials, says self-hosting means managing "four additional independent services," and recommends Cloud.

What changes

  • New page /self-hosted-guide/small-deployment, listed in the sidebar after Deployment. It covers:
    • the setup: one temporalio/server process running all four services, one PostgreSQL database for persistence and Visibility, and the Web UI
    • NUM_HISTORY_SHARDS=512, set before the first start, because the image defaults to 4
    • an upgrade procedure: one minor version at a time, schema first, never latest
    • what this setup doesn't provide: no server high availability, no zero-downtime upgrades, no extra availability from adding replicas of the container, no paid support
    • when to move to a larger deployment
  • Scoped wording on pages that presented the large-scale setup as the only one:
    • temporal-server.mdx: running services separately is now the recommendation for high-throughput deployments
    • persistence.mdx, visibility/index.mdx, visibility/legacy-standard.mdx: Elasticsearch/OpenSearch recommended for high-volume Visibility, instead of "for production" or "more than a few Workflow Executions"
    • deployment.mdx: notes that the temporal container runs all four services, points to docker-compose-postgres.yml, and drops "This is what you need to use in your production environments"
    • checklist.mdx: scoped to mission-critical and high-throughput workloads
    • embedded-server.mdx: no longer implies production requires a multi-node deployment
    • self-hosted-guide/index.mdx (new link and description) and cloud-vs-self-hosted.mdx: link to the new page
  • Eval readme/evals/self-hosted-small-deployment.md: a 14-question rubric with phrases each answer must include and must not include, plus the verbatim baseline answers from 2026-10-22 (Kapa, a fresh agent with web search, and the retrieval layer). The guardrail questions check for misreadings: SQLite or the dev server in production, skipping upgrades, 4 shards, single node treated as highly available, naive replicas, public exposure, and paid support. We'll rerun the eval about 1 day, 2 weeks, and 2 months after merge.

Questions for the Server team (draft until answered)

  1. Is running all four services in one process supported for small-scale production?
  2. Is 512 History Shards the right default for a single node on PostgreSQL? The "Scaling Temporal: The Basics" blog recommends 512 for small production clusters.
  3. Should we publish a throughput ceiling for a single node, or only the signals that mean it's time to grow? The page currently gives no numbers.
  4. At what point should we recommend Elasticsearch/OpenSearch over SQL Visibility? The page currently says "high-volume."
  5. What should we say about downtime when a single-node server restarts during an upgrade?
  6. Is running two or more replicas of the all-in-one container against one database a supported way to get basic availability, and what membership settings does it need (broadcast address, ports)? A fresh agent already recommends "at least two replicas" without mentioning membership. The page currently says to use Helm or the multi-role Compose example instead.

Outside this repo

  • The learn.temporal.io SQLite binary tutorials (configuring, Nginx, Envoy) call a SQLite setup with numHistoryShards: 4 "a production Temporal Service." They're the top retrieval result for the minimum-infrastructure query.
  • The latency-benchmark blog says Temporal recommends Cloud "for all production workloads," and Kapa quotes that as policy.

Checks

  • vale --config .vale-ci.ini on touched files: clean
  • yarn check:orphans, yarn check:index-slugs: clean
  • yarn build: passes. The generated small-deployment.md opens with the setup and its limits.

Add /self-hosted-guide/small-deployment: one Temporal Server process,
one PostgreSQL database for persistence and Visibility, and the Web UI,
with 512 History Shards, an upgrade runbook, and the limits of a
single-node setup.

Scope wording on other pages that presented the large-scale shape as
the only option: separate services, Elasticsearch Visibility, and the
production checklist's framing.

Add an eval rubric and verbatim baseline answers from Kapa, a fresh
agent, and the retrieval layer, to compare after the change ships.
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
temporal-documentation Ready Ready Preview Dec 2, 2026 12:33am UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guide leaves a broken Compose dependency, omits the required per-version migration wait, and recommends MySQL versions below the documented persistence minimum.

3 open issues
What changed in this PR

Adds a small self-hosted deployment path to Temporal’s documentation, distinguishing minimal infrastructure from high-throughput and highly available setups.

Changes:

  • Documents single-process setup, database initialization, upgrades, operational limits, and scaling guidance.
  • Updates related pages and navigation to distinguish small deployments from larger production architectures.
  • Adds an evaluation rubric and baseline answers to track AI guidance.
File Description
sidebars.js Adds the small-deployment guide to navigation.
readme/​evals/​self-hosted-small-deployment.md Records evaluation prompts, guardrails, and baseline answers.
docs/​production-deployment/​self-hosted-guide/​visibility/​legacy-standard.mdx Scopes Elasticsearch/OpenSearch recommendations to high-volume Visibility.
docs/​production-deployment/​self-hosted-guide/​visibility/​index.mdx Clarifies SQL-only options for small deployments.
docs/​production-deployment/​self-hosted-guide/​small-deployment.mdx Adds setup, operations, upgrades, limits, and scaling guidance.
docs/​production-deployment/​self-hosted-guide/​index.mdx Introduces the guide and broadens the section description.
docs/​production-deployment/​self-hosted-guide/​embedded-server.mdx Removes the implication that production requires multiple nodes.
docs/​production-deployment/​self-hosted-guide/​deployment.mdx Clarifies single-process containers and the PostgreSQL-only example.
docs/​production-deployment/​self-hosted-guide/​checklist.mdx Scopes the checklist to mission-critical or high-throughput workloads.
docs/​evaluate/​features/​cloud-vs-self-hosted.mdx Links small-team readers to the new guide.
docs/​encyclopedia/​temporal-service/​temporal-server.mdx Limits separate-service recommendations to high-throughput deployments.
docs/​encyclopedia/​temporal-service/​persistence.mdx Clarifies shared SQL storage and high-volume Visibility recommendations.

Review effort: Balanced

Raise the MySQL minimum to 8.0.19 to match the persistence page, list
every Compose change needed to use an external database, and add the
per-version History Shard wait to the upgrade steps.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The guide recommends Archival despite its documented Docker restriction and omits the required health-verification gate before advancing to the next upgrade version.

2 open issues
3 resolved since last review

Review effort: Balanced

Note that Archival is experimental and unsupported through Docker, and
replace the fixed upgrade wait with the Verify the upgrade check from the
updated upgrade page.
…ed-8efe54' into duncan/temporal-simple-self-hosted-8efe54
@Duncanma
Duncanma merged commit ce77b8d into main Dec 2, 2026
16 of 17 checks passed
@Duncanma
Duncanma deleted the duncan/temporal-simple-self-hosted-8efe54 branch December 2, 2026 00:31

This branch was successfully deployed

1 active deployment
Preview — 435109f0 Deployed Dec 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants