Repository navigation
Add small self-hosted deployment guide - #5557
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📖 Docs PR preview links
|
Contributor
There was a problem hiding this comment.
🟡 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.
Contributor
There was a problem hiding this comment.
🟡 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
…e-self-hosted-8efe54
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
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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
/self-hosted-guide/small-deployment, listed in the sidebar after Deployment. It covers:temporalio/serverprocess running all four services, one PostgreSQL database for persistence and Visibility, and the Web UINUM_HISTORY_SHARDS=512, set before the first start, because the image defaults to 4latesttemporal-server.mdx: running services separately is now the recommendation for high-throughput deploymentspersistence.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 thetemporalcontainer runs all four services, points todocker-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 workloadsembedded-server.mdx: no longer implies production requires a multi-node deploymentself-hosted-guide/index.mdx(new link and description) andcloud-vs-self-hosted.mdx: link to the new pagereadme/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)
Outside this repo
numHistoryShards: 4"a production Temporal Service." They're the top retrieval result for the minimum-infrastructure query.Checks
vale --config .vale-ci.inion touched files: cleanyarn check:orphans,yarn check:index-slugs: cleanyarn build: passes. The generatedsmall-deployment.mdopens with the setup and its limits.