Undeprecate the config, add a note in cluster singleton

This commit is contained in:
Johan Andrén 2018-09-04 14:21:25 +02:00
parent a3af8b025f
commit 8ed4f5abab
2 changed files with 2 additions and 4 deletions

View file

@ -44,6 +44,8 @@ object ClusterSingletonManagerSettings {
*/
def apply(system: ActorSystem): ClusterSingletonManagerSettings =
apply(system.settings.config.getConfig("akka.cluster.singleton"))
// note that this setting has some additional logic inside the ClusterSingletonManager
// falling back to DowningProvider.downRemovalMargin if it is off/Zero
.withRemovalMargin(Cluster(system).settings.DownRemovalMargin)
/**

View file

@ -47,10 +47,6 @@ akka {
# If a downing-provider-class is configured this setting is ignored.
auto-down-unreachable-after = off
# DEPRECATED: Specific to akka.cluster.AutoDown (which is discouraged to be used in production)
# should not be used anywhere else, instead Cluster.downingProvider.downRemovalMargin
# should be used as it allows the downing provider to decide removal margins.
#
# Time margin after which shards or singletons that belonged to a downed/removed
# partition are created in surviving partition. The purpose of this margin is that
# in case of a network partition the persistent actors in the non-surviving partitions