在Akka文档中,它指出如果未配置调度程序,将使用默认调度程序。默认调度程序的属性是什么,即parallelism-min,parallelism-factor,parallelism-max等?
答案 0 :(得分:48)
默认情况下,Akka
提供的调度程序是fork-join-executor
的调度程序,默认的并行度值是:
您可以在documentation中看到所有这些内容。
有一个名为: Listing of the Reference Configuration
的部分以下是配置文件的相关部分(我只删除了注释):
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
}
}