-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Akka.Cluster.Sharding: enable prefer-oldest
by default on Replicator
#7290
Changes from all commits
9967c51
37a897a
6317eab
53ab183
2a19354
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,7 +297,7 @@ public ClusterShardingGuardian( | |
}); | ||
} | ||
|
||
private ReplicatorSettings GetReplicatorSettings(ClusterShardingSettings shardingSettings) | ||
internal static ReplicatorSettings GetReplicatorSettings(ClusterShardingSettings shardingSettings) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made this |
||
{ | ||
var config = Context.System.Settings.Config.GetConfig("akka.cluster.sharding.distributed-data") | ||
.WithFallback(Context.System.Settings.Config.GetConfig("akka.cluster.distributed-data")); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,6 +207,9 @@ akka.cluster.sharding { | |
distributed-data { | ||
# minCap parameter to MajorityWrite and MajorityRead consistency level. | ||
majority-min-cap = 5 | ||
|
||
# ShardCoordinator is singleton running on oldest | ||
prefer-oldest = on | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
durable.keys = ["shard-*"] | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detect whether or not
PreferOldest
is enabled.