我的应用启动后不久,我在日志中看到了这一点:
INFO akka.actor.DeadLetterActorRef - Message [java.lang.String] from Actor[akka://MyApp/user/sqs-poller/router#-923782747] to Actor[akka://MyApp/deadLetters] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
这是否意味着路由器发送了关机命令?是否有可能让akka记录死信?
答案 0 :(得分:0)
这种死信警告通常无害,如Akka doc所述。如文档中所示,您可以配置在关闭期间记录的死信的数量,如下所示:
akka {
log-dead-letters = 10
log-dead-letters-during-shutdown = on
}
还有一些可能感兴趣的相关router actor specific discussion。