Skip to content

Add automated TRU management to the temporary rate limit increases guide - #5793

Open
Duncanma wants to merge 4 commits into
mainfrom
duncan/tru-automation-bc61f6
Open

Duncanma wants to merge 4 commits into
mainfrom
duncan/tru-automation-bc61f6

Conversation

@Duncanma

@Duncanma Duncanma commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #5764

Summary

Adds an Automate capacity changes on a schedule section to the Temporary rate limit increases guide. It introduces the temporal-cloud-ops-capacity-modes Python sample as the automated option, next to the guide's existing Go sample for one-off changes.

  • New section describes the sample's two Workflows:
    • Bulk capacity analysis: read-only. Reads Action limit and count for every Namespace from the Metrics API and current capacity mode from the Cloud Ops API, then recommends a capacity mode and TRU count per Namespace.
    • Scheduled capacity change: sets one Namespace to a chosen TRU count, verifies it, and optionally reverts to On-Demand at an end time. Run it from a Temporal Schedule for recurring peaks.
  • High-level run steps: API keys, start the Worker, run the analysis, apply a change, then schedule it. Also mentions DRY_RUN_MODE.
  • One sentence in the intro points readers to the new section.
  • The Related resources link for the Python sample now points to temporal-sa/temporal-cloud-ops-capacity-modes. The old lainecsmith/... URL already redirects there.

Every capability described was checked against the sample's source (src/workflows/*, src/activities/*, scripts/*, .env.example), not only its README.

Checks

  • vale --config .vale-ci.ini on the changed file: 0 results
  • yarn build: passes

Introduce the temporal-cloud-ops-capacity-modes Python sample as the
automated option for usage-based and scheduled capacity changes, and
point the Python sample link at its temporal-sa home.

Fixes #5764
@Duncanma
Duncanma requested a review from a team as a code owner November 23, 2026 19:37
Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:37
@vercel

vercel Bot commented Nov 23, 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 Nov 24, 2026 5:26pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs PR preview links

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 needs to clarify that failed verification can leave paid capacity enabled without reverting and that recurring schedules require a fresh deadline for each execution to avoid immediate reverts.

2 open issues
What changed in this PR

Extends the temporary rate limit increases guide with a Python automation option alongside the existing Go example for one-off changes, addressing #5764.

Changes:

  • Introduces bulk capacity analysis and scheduled capacity changes.
  • Adds setup and execution steps, including dry-run guidance.
  • Links the introduction to the new section and updates the Python sample’s repository URL.
File Description
docs/​guides/​temporary-rate-limit-increases.mdx Adds automated capacity-management guidance and updates the Python sample link.

Review effort: Balanced

The scheduled capacity change Workflow reverts only when the first
verification passes, and the README's Schedule example fixes the end
time at Schedule creation, so later runs revert immediately.

This branch was successfully deployed

1 active deployment
Preview — 1561f308 Deployed Nov 24, 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.

Add automated TRU management to the Temporary Rate Limit Increases guide

2 participants