temporalio / temporalio/temporal

Validate num of matching task queue partition can be decreased

Open
#3,060 0 comments 0 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

Today, if operator need to increase number of task queue partitions, operator can simply increase both dynamic config to target number:
matching.numTaskqueueReadPartitions
matching.numTaskqueueWritePartitions

If operator need to decrease number of task queue partition, operator need to first decrease num of write partition, wait for all DB tasks to drain, then decrease num of read partitions

We need to validate the decrease scenario

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 tracing the dynamic-config handling for matching.numTaskqueueReadPartitions and matching.numTaskqueueWritePartitions. Review how partition changes are currently applied, then determine where the decrease sequence should be validated: reduce write partitions, wait for DB tasks to drain, and only then reduce read partitions. Done means the decrease scenario is validated without allowing an unsafe ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.