Skip to content

[3.x] Allow a Shard Manager to handle multiple groups of pods (roles)#157

Merged
ghostdogpr merged 29 commits into
series/3.xfrom
feature/roles
May 14, 2026
Merged

[3.x] Allow a Shard Manager to handle multiple groups of pods (roles)#157
ghostdogpr merged 29 commits into
series/3.xfrom
feature/roles

Conversation

@ghostdogpr
Copy link
Copy Markdown
Collaborator

@ghostdogpr ghostdogpr commented Apr 3, 2025

Closes #144

Pods can now be tagged with a Role, and the Shard Manager manages each role as an independent shard pool (its own shards, rebalancing, and assignments). Pods with different roles never share shards, which lets you dedicate certain pods to certain entity types or scale parts of the system independently.

Comment thread benchmarks/src/main/scala/com/devsisters/shardcake/Server.scala Outdated
Comment thread core/src/main/scala/com/devsisters/shardcake/interfaces/Storage.scala Outdated
Comment thread manager/src/main/scala/com/devsisters/shardcake/ShardManager.scala Outdated
Comment thread manager/src/main/scala/com/devsisters/shardcake/ShardManager.scala Outdated
Comment thread manager/src/main/scala/com/devsisters/shardcake/ShardManager.scala Outdated
Comment thread manager/src/main/scala/com/devsisters/shardcake/ShardManager.scala Outdated
Comment thread entities/src/main/scala/com/devsisters/shardcake/Sharding.scala Outdated
Copy link
Copy Markdown
Contributor

@nox213 nox213 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mainly reviewed ShardManager.scala

ghostdogpr and others added 4 commits April 16, 2025 11:35
# Conflicts:
#	build.sbt
#	entities/src/main/scala/com/devsisters/shardcake/ShardManagerClient.scala
#	manager/src/main/scala/com/devsisters/shardcake/ShardManager.scala
@ghostdogpr ghostdogpr changed the title Allow a Shard Manager to handle multiple groups of pods (roles) [3.x] Allow a Shard Manager to handle multiple groups of pods (roles) May 14, 2026
@ghostdogpr ghostdogpr changed the base branch from series/2.x to series/3.x May 14, 2026 05:49
@ghostdogpr ghostdogpr merged commit 5a84f81 into series/3.x May 14, 2026
5 checks passed
@ghostdogpr ghostdogpr deleted the feature/roles branch May 14, 2026 08:25
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.

Support pods "roles" so that different services can use the same shard manager

3 participants