Configuration 在akka禁用协调关机

Configuration 在akka禁用协调关机,configuration,akka,akka-cluster,Configuration,Akka,Akka Cluster,我试图在Akka(2.5.3)中禁用协调关机功能。 我以编程方式添加了配置,如下所示 Config shutDownConfig = ConfigFactory.parseString("{akka.coordinated-shutdown.terminate-actor-system = off\n akka.coordinated-shutdown.run-by-jvm-shutdown-hook = off\n akka.cluster.run-coordinated-shutdown-w

我试图在Akka(2.5.3)中禁用协调关机功能。 我以编程方式添加了配置,如下所示

Config shutDownConfig =
ConfigFactory.parseString("{akka.coordinated-shutdown.terminate-actor-system = off\n akka.coordinated-shutdown.run-by-jvm-shutdown-hook = off\n akka.cluster.run-coordinated-shutdown-when-down = off}");
//Below is older configuration without shutdown props       
Config regular = userConfig.getConfig(actorSystemConfigPath).withFallback(userConfig);
Config combined = shutDownConfig.withFallback(regular);
actorSystem = ActorSystem.create(actorSystemName,combined );
问题是Akka仍然试图使用协调关机和 设置未反映在actor系统中

DEBUG 2018-07-10 15:27:11,388 [MACluster-akka.actor.default-dispatcher-18] akka.actor.CoordinatedShutdown - Performing phase [service-unbind] with [0] tasks
DEBUG 2018-07-10 15:27:11,391 [MACluster-akka.actor.default-dispatcher-18] akka.actor.CoordinatedShutdown - Performing phase [service-requests-done] with [0] tasks

我想知道他们是否在某处被阿克卡压倒了。提前谢谢

当你将它添加到配置文件时,它被禁用了吗?我想知道一些关于解析的配置字符串中的尾随
{
。确定这是好的吗?他们没有被禁用,这就是问题所在。他们被正确解析了,我认为
{
是问题所在。好的。重复我的第一个问题。当您在配置文件中指定此配置选项时,是否禁用了协调关机?否@StephenKing。从调试日志中可以看出,它没有被禁用。