在Akka中禁用协调关机

时间:2018-07-10 14:10:46

标签: 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-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仍尝试使用CoordinatedShutdown关闭,并且这些 设置不会反映在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

我想知道他们是否在某处被akka取代。预先感谢!

0 个答案:

没有答案