Why a self-hosted Temporal cluster needs namespace RPS limits
Picture a shared self-hosted Temporal cluster where one team starts a large batch of workflows and every other team's task starts slow down. Frontend rate limits are the control that addresses this. They cap how many requests per second the frontend service accepts, both per host and per namespace, and tuning them is how you isolate namespaces from each other. Without them, the frontend has no built-in way to refuse one namespace's surge before it consumes capacity other namespaces need.
There are two layers to understand. The per-host limit protects the frontend process itself, while the per-namespace limit keeps one namespace from using more than its share. A global namespace limit sets a ceiling that applies to each namespace by default, and individual namespaces can be given different values through dynamic configuration. The noisy neighbor problem is what happens when a busy namespace, such as a team running a large backfill, uses the requests the others depend on. Its own workflows may run fine while everyone else's latency climbs.
Do not assume any particular default value. The defaults and the configuration keys that change them differ between server versions, so confirm the exact numbers against the release notes of the server version you run, and check the Temporal GitHub releases for changes after your upgrade. Before you change anything, ask your platform team which namespaces share the cluster, which of them produce bursts, and whether throttled requests show up in your metrics. Those answers decide whether you need limits at all and how far apart their values should sit.
How a request passes through frontend rate limits
The diagram follows a client call from an internal caller into the Temporal frontend service, where the per-host limit is checked first and the per-namespace limit second. The global namespace limit is shared across frontend hosts, so each host draws from a common budget. Requests that exceed a limit are rejected at the frontend and never reach history or matching, which is why the rejection path matters when you tune limits. Check which callers sit inside the trust boundary and confirm how your SDK reports rejected calls.
Requests pass two frontend limits before reaching history and matching.
Rate limit settings and when each one fits
This table compares the frontend rate limit controls a self-hosted operator can set, from the per-host limit down to per-namespace overrides. Read each row for the question it answers, what it protects, and the failure on each side of the setting. The main takeaway is that a namespace limit only helps when the host limit above it leaves room for the namespaces you want to isolate.
| Control | When it fits | What it protects | What breaks if set too low or too high |
|---|---|---|---|
| Per-host frontend RPS limit | Set once per frontend host to cap total request load a single node will accept before it sheds traffic | The frontend and the persistence layer behind it from overload across all namespaces combined | Too low: legitimate traffic gets throttled during peaks. Too high: a surge can saturate the database before limits act. Confirm the key and default in your version's configuration reference. |
| Per-namespace RPS limit | Use when one namespace is a known heavy producer or belongs to a tenant or team that must not affect others | Other namespaces sharing the same frontend hosts and history shards | Too low: the namespace's own workflows slow or fail to start. Too high: a noisy namespace still starves neighbors. Test with your own workload profile. |
| Global namespace RPS limit | Use when you need one cap applied consistently across all frontend hosts for a namespace, not per host | Shared capacity across the frontend fleet, so a namespace cannot multiply its quota by the number of hosts | Too low: throughput falls as hosts are added but the cap stays fixed. Too high: the cap has no effect on overload. Verify how your version aggregates the limit. |
| Dynamic configuration keys | Use to change limits without a server restart, and to set overrides per namespace | Lets operators adjust limits during an incident or rollout with a recorded change | Wrong key names are ignored or misapplied, so an intended cap never takes effect. Check each key against the reference for your server version. |
| Worker and task queue poll limits | Use when the bottleneck is task pickup rather than frontend admission | Worker capacity and task queue latency, which frontend limits do not control directly | Too low: schedule-to-start latency rises while the frontend looks healthy. Too high: workers overwhelm matching and history. |
| Client-side retry behavior | Use to confirm SDK clients back off when they receive resource exhausted responses | Clients from retry storms that amplify throttling into outages | Aggressive retries keep a throttled namespace saturated. Overly slow retries delay work after the limit eases. |
| Monitoring of throttled requests | Use from the first load test onward to see where requests are rejected | The ability to tell a healthy cap from one that is hiding a capacity problem | Without alerts on rejections, a limit can silently degrade a tenant. Set alerts on the metrics your version exposes. |
Which limit to tune first, by situation
When one namespace slows or returns rate-limit errors while the rest of the cluster looks normal, the usual cause is that namespace's own request rate reaching its per-namespace limit. Cluster capacity is rarely the issue in this case, so the first check is whether other namespaces and persistence latency are healthy.
- First signal: Client-side resource exhausted errors and the frontend rate-limit rejection metrics for that namespace, with history and database latency flat.
- Limit most likely involved: The per-namespace RPS limit on the frontend, which applies to that namespace alone.
- Find the caller: Identify which workers, starters or schedules drive the spike, including polling loops and retry storms that multiply request volume.
- Change to test: Raise the namespace's limit through dynamic config on a non-production cluster that mirrors the traffic, then replay the same load and compare rejections.
- Watch downstream: Persistence load and history latency, because a higher ceiling moves pressure onto shared components.
Confirm the exact dynamic config key names and default values for your server version before editing anything, and record the namespace's request mix before and after the change.
When latency and rejections appear across many namespaces at the same time, the limit is more likely shared than per-namespace. The frontend enforces limits per host and also against a cluster-wide budget for each namespace, so a shared ceiling or an overloaded frontend tier can affect every tenant at once.
- First signal: Frontend-wide rejection and latency charts moving together, with frontend host CPU or memory near saturation.
- Limit most likely involved: The per-host frontend RPS limit or the global namespace limit, which divides a cluster-wide budget across frontend hosts.
- Check the arithmetic: Compare the configured global limit with the actual number of frontend hosts and their real traffic share, since a mismatch can throttle namespaces that have headroom.
- Check shared dependencies: Confirm the persistence database is not the saturated component before changing frontend settings.
- Change to test: Adjust the per-host limit or add frontend replicas in a staging cluster, then run a multi-namespace load test that reproduces the production mix.
Ask your platform team to document the frontend host count and the global budget together, so a change to one is reviewed against the other.
Adding a namespace to a shared cluster changes the load that every existing tenant shares, even before the new team sends traffic. The planning question is whether the default limits suit the new workload and whether the cluster-wide budget still leaves headroom for the namespaces already running.
- First signal: A capacity review before go-live, using a baseline of current per-namespace headroom and the expected peak request rate from the new team's own design.
- Limit most likely involved: The default per-namespace RPS applied to the new namespace, together with the global budget it draws on.
- Set overrides deliberately: Apply a per-namespace override only where the expected peak exceeds the default, and record the reason with the override.
- Confirm the defaults: Verify which default applies to new namespaces on your server version, since the behavior can differ between releases.
- Change to test: Onboard the namespace in staging with a replay of the expected traffic, then check that existing namespaces keep their latency and rejection rates.
Ask the new team for a peak request rate estimate with its assumptions, and treat it as a planning input to test rather than a fixed figure.
Batch jobs, bulk starts and mass signals often send a short, dense burst of requests that is far above the steady rate. The pattern is recognizable from the timeline, because throttling starts at the same time each run and clears when the batch ends.
- First signal: Request rate and rejection spikes that line up with batch start times, plus a rise in schedule-to-start latency.
- Limit most likely involved: The per-namespace RPS limit during the burst. If workers are the bottleneck instead, the delay shows up as queue pickup latency rather than rejections, which is a different limit.
- Shape the traffic: Add jitter to start times and submit work through a client-side rate limiter so the burst is spread across the window.
- Separate the two causes: Confirm whether the rejections come from the frontend or whether tasks are waiting for workers before changing any server setting.
- Change to test: Replay the batch at production peak in staging with the chosen submission rate, and measure rejections and downstream latency.
Avoid raising a cluster-wide ceiling for a short daily burst until the client-side shaping has been tested, because a permanent increase to cover a few minutes of load also raises pressure on every other hour.
How to set and verify namespace RPS limits
This sequence takes a namespace rate limit from a version check and load-test inventory through a staged change, verification under load and a documented, approved set of values. The result is a limit set that protects shared neighbors without guessing at numbers.
Confirm the server version and release notes
Record the Temporal Server version and the exact dynamic configuration keys that the release notes and the self-hosted documentation describe for frontend rate limits in your version. The platform team does this before any change, because key names and defaults can differ between minor lines. Check the server against the latest patch of its current minor line first, as the upgrade guidance recommends. The step is done when you have a written list of the keys in use, the version they were confirmed on, and a link to the release notes you read, which you can find on the Temporal GitHub releases page.
Inventory namespaces and expected peak request rates
List every namespace on the cluster with its owning team, its workload type and its expected peak request rate per second. Take the peak figures from load tests run against the same server version and persistence setup, not from estimates. Mark which namespaces are latency-sensitive and which are batch or backfill workloads that can tolerate throttling. The owner of the cluster reviews the list with each namespace owner. The step is complete when every active namespace has a peak value with its source test recorded, and any namespace without a measured value is flagged as open.
Set per-host and per-namespace limits in dynamic configuration
Using the keys confirmed in the first step, set the per-host limit and the per-namespace limit in the dynamic configuration file used by your cluster. Keep the global namespace limit consistent with the sum of the per-namespace values you expect the frontend hosts to absorb, and document the reasoning for any namespace given a higher value. The platform engineer makes the change in version control so that the previous file can be restored. The step is complete when the diff is reviewed, the file loads without errors on a non-production frontend, and the active values are visible in the server logs or the configuration you use to inspect the running cluster.
Roll the change out in a staging cluster
Apply the same dynamic configuration to a staging cluster whose frontend hosts, persistence backend and worker counts match production as closely as possible. Restart or reload the configuration in the way your deployment supports, then confirm each frontend host reports the new values. Run a short soak with representative client traffic to confirm nothing else changes. The step is done when staging shows the intended limits on every frontend host and the soak finishes without new server errors compared with the baseline.
Load test above the limits to confirm throttling
Drive each namespace above its configured limit with the load testing tooling you used for the inventory, while a second namespace runs at its normal rate. The aim is to confirm that the noisy namespace is throttled and that the quiet namespace keeps its latency and error rate. Watch the frontend rate limit and resource exhaustion signals in your metrics system. The step is complete when the throttling appears where expected, the neighboring namespace stays within its baseline, and the results are saved with the test parameters.
Verify client error behavior under load
Check how SDK clients and workers respond when they hit the limit. Confirm that the errors are retryable, that retry backoff keeps the request rate from climbing, and that workflows and activities are delayed rather than failed. Confirm that your alerts fire on sustained throttling and not on brief bursts. Record any client that retries too aggressively and fix it in the application before production. The step is done when a written summary shows the observed error type and retry pattern for each SDK in use and each alert has been tested.
Document the values and the approving owner
Write down each namespace limit, the per-host value, the global namespace value, the server version, the load test results and the date of approval. Name the owner who approves future changes and the review path, such as a platform lead and the namespace owner who requested the change. Store the record next to the dynamic configuration in version control. The step is complete when the owner has signed off on the record, and a reviewer who was not involved can find the current values and the approval history without asking anyone.
Security and access controls that interact with rate limits
Rate limits shape how much load the Temporal frontend accepts, but they do not decide who may call it. The cards below cover the controls that determine who can reach the frontend, what they may do there, and who may change the limits themselves. Check these together before you tune any RPS value.
Who can change dynamic configuration
Per-host and per-namespace RPS values are set through dynamic configuration, so anyone who can edit that configuration can raise or lower the limits for every tenant. Restrict write access to the dynamic configuration file or store to a small platform group, and keep the change history in your own version control. Confirm who can also restart or redeploy the Temporal services, since that path can change limits too.
Self-hosted security docsFrontend exposure that limits protect
The frontend service is the entry point for client and worker traffic, and it is where the rate limiter runs. A limit caps the load a client can place on the cluster, but it does not stop an unauthenticated caller from sending requests within that cap. Map which networks and clients can reach the frontend port so you know which traffic the limits are meant to absorb.
Authorization when no Authorizer is set
If no Authorizer is configured, self-hosted Temporal uses the default noopAuthorizer, which allows every API request with no authentication or access control. In that state, any caller that reaches the frontend can start workflows, query data or call namespace operations, and rate limits will not restrict what they do. Confirm that an Authorizer is configured before you treat any namespace as isolated.
Security docsmTLS and ClaimMapper namespace roles
Self-hosted Temporal supports mTLS with separate settings for internode and frontend traffic, and a ClaimMapper that maps JWT or certificate claims to namespace roles. Use these to decide which client identity may call each namespace, so a noisy tenant's credentials cannot be reused against another namespace. Test the mapping for each namespace, because a rate limit on a namespace only helps if the wrong caller cannot reach it.
Network placement of Temporal services
The Temporal deployment documentation says Temporal services should run on hosts that the public internet cannot reach, with access limited to trusted internal networks. Keep the frontend, history, matching and worker-facing endpoints off public addresses, and confirm the load balancer or ingress in front of them is internal. Exposure at the network layer is a separate control from RPS, and it should be verified separately.
Deployment docsAudit of configuration changes
A change to a per-namespace RPS value can cause throttling for every workflow in that namespace, so each change should have a record of who made it, when and why. Store dynamic configuration in version control with reviewed merges, and forward service logs to your central logging system. Ask your team to confirm how they will trace a throttling incident back to the change that caused it.
How to recognize a noisy namespace before it starves others
The first sign of a noisy namespace is a sustained rise in request rate from a single caller against the frontend, while other namespaces on the same cluster stay flat. Frontend traffic is the shared resource that per-host and per-namespace RPS limits protect, so a namespace whose request count climbs steadily, or spikes in step with a batch job, deserves a closer look. Confirm this in your own environment by breaking down frontend request metrics by namespace and by caller identity, and by checking which client deployment or service account is generating the calls. Look for the pattern over days, not minutes, because a short burst often reflects a normal retry or backfill rather than a standing problem.
The second and third signs appear in the namespaces that are not making the noise. Throttling or resource-exhausted errors that show up in a namespace with modest traffic usually mean that its requests are queuing behind someone else's load. Latency that climbs for task queues with no change in their own workload is a similar warning, especially if schedule-to-start times rise on those queues while their worker counts and slot usage remain stable. Slow task pickup reported by workers in other teams is often the first signal raised by people, so treat those reports as a prompt to check frontend throttling and namespace request rates together rather than tuning the affected workers first.
None of these signals gives you a limit value on its own. The thresholds that separate normal bursts from starvation depend on your workload, your worker fleet and the rate limits you have configured, so ask your platform team to record a baseline before changing anything. A defined peak profile, meaning the request rates each namespace must sustain at its busiest, is what turns these observations into per-host and per-namespace settings. Load testing against that profile, as covered in the load testing section of this page, shows where throttling begins and whether one namespace can exhaust the budget that the others need.
Limits and what to confirm in your environment
Temporal's frontend limits are set by configuration, and the defaults and behavior depend on the server version and the way you deploy it. The cards below list the points to verify against your exact release and deployment method before you set a limit or rely on one. Each check ties back to the same goal: keeping one namespace from using capacity that other namespaces need.
Default per-host and per-namespace RPS
The frontend limits requests per host and per namespace, and the default values can change between server releases. Do not copy a number from a blog post or an older guide. Confirm the default for the exact server version you will run, read it from the dynamic configuration reference for that release, and record it in your runbook. Then compare it with your measured peak request rate from load testing, including worker polling and client starts, so you know how much headroom each namespace actually has.
- Latest server release
- 1.32.1
Dynamic configuration without restart
Some limit settings are read from dynamic configuration, which lets you change them while the cluster runs. Whether a given key takes effect without a restart depends on the key and the server version, so test each one before you depend on it during an incident. Check whether the change applies to all frontend hosts at once, how long propagation takes, and whether a rollback works the same way. Record the result for each key you plan to change.
Global namespace limit across frontends
A per-namespace RPS limit is applied by each frontend host, so the effective cluster-wide ceiling depends on how many frontend hosts are running and how requests are spread across them. Confirm with the vendor documentation for your version whether the limit is enforced per host, globally, or both. Then test with a skewed load pattern, where one client sends most of its traffic to a single host, to see whether the limit holds as you add or remove frontend replicas.
Worker poll rates and history shards
A limit that looks safe on the frontend can still be reached from the worker side. Worker pollers, activity and workflow task dispatch, and the number of history shards all change how many requests reach the frontend and how load spreads across history and matching services. Confirm how many pollers each worker process opens, how many task queue partitions you run, and how the shard count you chose affects the request rate per namespace. Measure these together, because changing one can move the bottleneck to another.
Configuration keys across deployment methods
Helm, Docker Compose, plain binaries and a custom Go build can expose the same limit settings through different files, environment variables or chart values. The Helm chart in particular must match the server image: chart versions below 0.73.1 do not work with server images 1.30 and later. Before you rely on a key, confirm the exact name, where it is set in your chosen method, and whether your method passes it through to the dynamic configuration file. Keep the mapping in version control.
Deployment docsTesting noisy namespace isolation
A limit only protects other namespaces if you test that it does. Build a test where one namespace sends a burst above its limit while a second namespace runs a steady, known workload, and watch the second namespace's latency and error rate. Confirm that throttled requests return the errors your clients handle, and that your workers retry them correctly. Repeat the test after each server upgrade, because limit behavior can change between releases.
Questions teams ask about Temporal rate limits and namespace RPS
How much does tuning Temporal frontend rate limits cost?
Cost is mostly the time of the people doing the work, plus any load-generation capacity you need to test. Tuning a rate limit is a short change, but proving it is safe takes measurement, load testing and review of how each namespace behaves under pressure. The main cost drivers are how many namespaces and services are involved, how much metrics history you already have, and whether you need to test in a staging cluster that matches production. Ask any partner for a written quote that separates discovery, load testing, configuration changes, and the handover of runbooks, so you can see who is paid for each part and what is one-time versus recurring.
How long does a Temporal rate limit tuning project take?
Duration depends on how well your cluster is already measured and how many namespaces need to be analyzed. A project with existing dashboards for frontend request rates, throttling and latency usually moves faster than one where metrics must be added first. Other factors include the number of frontend hosts, how many teams own namespaces, how often you can hold change windows, and how many load test cycles are needed to confirm the new values. Confirm the timeline in the written scope, including the dates when you must provide access and the dates when changes can be applied to production.
What does the client team need to provide for this work?
The work needs read access to Temporal server and frontend metrics, a clear view of which namespaces exist and who owns each one, and realistic load profiles that show normal and peak request patterns. You also need an agreed change window for applying dynamic configuration updates and a rollback plan. Ask the partner to list every input they need before work starts, including access to the monitoring stack, a staging environment that resembles production, and a named contact who can approve changes to shared limits. Missing load profiles are the most common cause of delay.
Can an in-house platform team tune Temporal rate limits on its own?
Yes, a capable in-house team can tune rate limits, provided it has the metrics, the ability to test under load and the authority to change shared settings. The risk lies in judging how one noisy namespace affects others, because limits interact with per-host settings, the global namespace limit and worker behavior. Teams that have not run load tests on Temporal before often underestimate how long validation takes. Assess your team's experience with Temporal operations, its monitoring coverage and its availability for change windows before deciding. An outside review can be a useful second check even when your team does the changes.
What does a fixed-scope rate limit engagement cover at DeployOpen?
DeployOpen works from a written scope that is agreed before work starts. For a rate limit engagement, that scope can cover reviewing your current frontend and namespace limit settings, checking the metrics that show throttling and latency, designing a per-namespace approach to keep one tenant from starving others, testing the proposed values under representative load, and preparing the configuration changes and runbook. Deliverables, timelines and exclusions are written down in the agreement. Any ongoing monitoring or tuning after the handover is handled as a separate retainer, not assumed in the fixed scope.
When does a managed service like Temporal Cloud change the rate limit question?
A managed service changes who owns the limits, not whether you need to understand them. In Temporal Cloud, Temporal Technologies operates the service, so your team no longer tunes the server's frontend settings, but you still need to design namespaces, workloads and retry behavior so one team does not overload another. Compare the operational work you keep against the cost and control you give up. Review the Temporal Cloud pricing page for the current plan terms, support tiers and service levels, and confirm with the vendor how capacity limits apply to your account.
What should we ask a partner before agreeing to a rate limit engagement?
Ask how the partner will measure the current state before proposing any change, and which metrics they will use to confirm each new value. Ask what load profiles they will test, whether they test in an environment that matches production, and how they handle rollback if a change causes throttling. Ask who approves changes to global limits and how they document ownership of each namespace. Request a written scope that lists deliverables, client inputs, exclusions and the handover of runbooks, along with the terms for any ongoing support.
How DeployOpen scopes and delivers Temporal rate limit tuning
DeployOpen approaches Temporal rate limits as a scoped piece of work on a self-hosted Temporal Service running in infrastructure you control. We start from the namespaces, traffic sources and load you actually have, then tune frontend limits, test the result and hand over settings your team can operate. Engagements are fixed-scope, with the scope agreed in writing before work starts.
How we scope
- Inventory every namespace, its workers, task queues and expected request rate against the frontend limits
- Agree in writing which per-host and per-namespace limits will be reviewed, and which noisy namespaces are in scope
- Confirm the Temporal Server version, deployment method and persistence and visibility stores before any change
- Define the load scenarios and acceptance criteria that will show whether starvation is removed
How we build
- Document current frontend rate limit settings and dynamic config values, with a rollback copy kept before each change
- Test limit changes in a non-production cluster that mirrors your server version and configuration
- Run controlled load tests that push one namespace hard while measuring latency and errors in the others
- Configure dashboards and alerts for rate limit rejections and task pickup latency on your monitoring stack
How we hand over
- Deliver a written record of final limit values, the reasoning behind each one, and the tests that support them
- Provide a runbook covering how to change limits, who approves changes and how to roll back safely
- Walk your platform and operations engineers through the test results and alert thresholds
- Hand over the load test scripts so your team can repeat the checks after future upgrades
How we support
- Re-run rate limit checks when you upgrade Temporal Server or add namespaces, through a separately scoped task
- Offer ongoing support, upgrades and continuous testing as a retainer if your team wants a standing partner
- Review configuration drift and alert noise on request so limits stay matched to real traffic
- Confirm retainer terms and response expectations in writing alongside the original scope

