在Akka文档中指出,如果未配置调度程序,则将使用默认调度程序。默认调度程序的属性是什么,即parallelism-min,parallelism-factor,parallelism-max等?
最佳答案
默认情况下,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
}
}
关于java - Akka调度程序的默认配置值是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16175725/