Akka配置将并行级别设置为核心
我们可以将并行级别配置为如下特定数字:Akka配置将并行级别设置为核心,akka,Akka,我们可以将并行级别配置为如下特定数字: my-thread-pool-dispatcher { type = Dispatcher executor = "thread-pool-executor" thread-pool-executor { core-pool-size-min = 2 core-pool-size-factor = 2.0 core-pool-size-max = 10 } throughput = 100 } 但是,由于我想在
my-thread-pool-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
core-pool-size-min = 2
core-pool-size-factor = 2.0
core-pool-size-max = 10
}
throughput = 100
}
但是,由于我想在多个环境中使用此配置,我想设置核心池大小max=Runtime.getRuntime().availableProcessors()
。有没有办法通过配置来做到这一点