Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ClusterSharding.Node example to use shared SQLite store #7494

Conversation

dimabarbul
Copy link
Contributor

Fixes #3608

Changes

ClusterSharding.Node example is updated with following:

  • Correct Dockerfile to use net8.0 folder and net8.0 base image
  • Use least-shard-allocation-strategy.rebalance-absolute-limit instead of least-shard-allocation-strategy.rebalance-threshold as the latter is deprecated
  • Don't use host network in docker-compose.yaml to not mess with host machine ports
  • Use shared SQLite database for all nodes (using docker volume) - this is crucial for rebalancing
  • Use docker compose V2 as V1 is deprecated since mid of 2023

Checklist

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM - nice work

@Aaronontheweb Aaronontheweb added the samples Akka.NET code samples label Feb 3, 2025
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) February 3, 2025 22:51
@Aaronontheweb Aaronontheweb merged commit 8ea9d3b into akkadotnet:dev Feb 3, 2025
12 checks passed
@dimabarbul dimabarbul deleted the 3608-cleanup-clastersharding.node-example branch February 4, 2025 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Akka.NET code samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample Cleanup: have Akka.Cluster.Sharding sample run on multiple nodes
2 participants