Repository navigation
Proposal: change the history shard count of a running cluster (online resize) #13463
geraldw-ai
started this conversation in
Temporal Backend
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
numHistoryShardsis fixed when a cluster is first started. Operators who chose the wrong value have no way to correct it short of building a new cluster and migrating. This comes up regularly on the community forum, in both directions:The current answers each have a cost. Draining to a new cluster does not work for long-running workflows. Multi-cluster replication is documented as experimental, needs global namespaces, and has had problems between clusters with different shard counts (#10224, #10436).
Describe the solution you'd like
An operator-initiated resize of the history shard count on a running cluster, in place, with no second cluster and no client changes. I would like to contribute this and have written requirements for it. In outline:
Three hazards in the current code that I have identified and would design around:
AddTasksrejects a mismatch.Describe alternatives you've considered
Additional context
The 2023 post Scaling Temporal: The basics says the team hopes to make the shard count adjustable. Before I start on a design, I would like to ask:
I am happy to share the full requirements write-up.
All reactions