在Akka文档中指出,如果未配置调度程序,则将使用默认调度程序。默认调度程序的属性是什么,即并行度最小值,并行度因子,并行度最大值等?
默认情况下,提供的调度程序Akka是带有的调度程序fork-join-executor,并且默认的并行度值为:
Akka
fork-join-executor
您可以在文档中看到所有这些信息。
有一个节名为: 参考配置清单
这是配置文件的相关部分(我只删除了注释):
default-dispatcher { type = "Dispatcher" executor = "fork-join-executor" fork-join-executor { parallelism-min = 8 parallelism-factor = 3.0 parallelism-max = 64 } thread-pool-executor { keep-alive-time = 60s core-pool-size-min = 8 core-pool-size-factor = 3.0 core-pool-size-max = 64 max-pool-size-min = 8 max-pool-size-factor = 3.0 max-pool-size-max = 64 task-queue-size = -1 task-queue-type = "linked" allow-core-timeout = on } }