Skip to content

Conversation

@arzonus
Copy link
Contributor

@arzonus arzonus commented Dec 15, 2025

What changed?

  • GetAssignedShardsCount method was added to Executor
  • ShardCreator will stop creating shards if the number of assigned shards is greater than the maximum number of assigned shards
  • managedProcessorsCount counter was added to Executor

Why?
We observed some instability in the cluster caused by non-stop shard creation by canary. This PR limits canary to create no more than 1K shard per running instance.

managedProcessorsCount was added to count number of created managed processor. sync.Map doesn't have Len/Count methods and only a range over the whole Map is a way to get the size of the map. To avoid N operations, the counter was added.

How did you test it?

  • Unit test
  • Integration test
  • Run on the dev env

@arzonus arzonus force-pushed the limit-ephemeral-canary branch from c8dd2fe to 0a5660f Compare December 15, 2025 10:13
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.

1 participant