使用主机连接池时 "Pool is now shutting down as requested" 是什么意思
What does "Pool is now shutting down as requested" mean when using host connection pools
我有几个流每分钟左右唤醒一次,从数据库中提取一些文档并执行一些操作,最后将消息发送到 SNS。
滴答间隔目前是每1分钟一次。
每隔几分钟我就会在日志中看到以下错误信息:
[INFO] [06/04/2020 07:50:32.326] [default-akka.actor.default-dispatcher-5] [default/Pool(shared->https://sns.eu-west-1.amazonaws.com:443)] Pool is now shutting down as requested.
[INFO] [06/04/2020 07:51:32.666] [default-akka.actor.default-dispatcher-15] [default/Pool(shared->https://sns.eu-west-1.amazonaws.com:443)] Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.
这是什么意思?有人以前有过吗? 443让我担心。
如果在一定时间内(默认为 30 秒)未使用,Akka http 连接池将由 akka 自动终止。如果需要,可以配置并设置为 infinite
。
池会在下次使用时重新创建,但这需要一些时间,因此启动创建的请求将是 "blocked",直到池被重新创建。
The time after which an idle connection pool (without pending requests) will automatically terminate itself. Set to infinite
to completely disable idle timeouts.
控制它的配置参数是
akka.http.host-connection-pool.idle-timeout
日志消息也指向配置参数
Pool shutting down because akka.http.host-connection-pool.idle-timeout
triggered after 30 seconds.
我有几个流每分钟左右唤醒一次,从数据库中提取一些文档并执行一些操作,最后将消息发送到 SNS。
滴答间隔目前是每1分钟一次。
每隔几分钟我就会在日志中看到以下错误信息:
[INFO] [06/04/2020 07:50:32.326] [default-akka.actor.default-dispatcher-5] [default/Pool(shared->https://sns.eu-west-1.amazonaws.com:443)] Pool is now shutting down as requested.
[INFO] [06/04/2020 07:51:32.666] [default-akka.actor.default-dispatcher-15] [default/Pool(shared->https://sns.eu-west-1.amazonaws.com:443)] Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.
这是什么意思?有人以前有过吗? 443让我担心。
如果在一定时间内(默认为 30 秒)未使用,Akka http 连接池将由 akka 自动终止。如果需要,可以配置并设置为 infinite
。
池会在下次使用时重新创建,但这需要一些时间,因此启动创建的请求将是 "blocked",直到池被重新创建。
The time after which an idle connection pool (without pending requests) will automatically terminate itself. Set to
infinite
to completely disable idle timeouts.
控制它的配置参数是
akka.http.host-connection-pool.idle-timeout
日志消息也指向配置参数
Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds.