temporalio / temporalio/temporal

Scaling Temporal Workers

Open
#6,805 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

I’d like to monitor Temporal metrics and automatically scale my Temporal workers based on the number of workflows in the task queue. My goal is to increase the number of workers if the queue has a high number of workflows waiting to be processed and to scale down if there are fewer workflows in the queue. However, I haven’t found a direct metric that specifically tracks the number of pending tasks in the queue for workers to pick up. Given this, what alternative methods are suggested to scale workers up and down based on task queue load?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Temporal metrics, worker behavior, and task queue load concepts. Determine whether a supported pending-task metric or another scaling signal exists for increasing and decreasing workers. Done means documenting a concrete, supported approach for autoscaling Temporal workers.

Written by the indexing model from the issue text.

Assessment

Domain
distributed-systems, observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.