【发布时间】:2016-09-10 12:48:02
【问题描述】:
我在the official site 上阅读了有关调度程序的文档。但目前还不清楚什么调度员是野兽。比如可以这样配置:
my-thread-pool-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# What kind of ExecutionService to use
executor = "thread-pool-executor"
# Configuration for the thread pool
thread-pool-executor {
# minimum number of threads to cap factor-based core number to
core-pool-size-min = 2
# No of core threads ... ceil(available processors * factor)
core-pool-size-factor = 2.0
# maximum number of threads to cap factor-based number to
core-pool-size-max = 10
}
# Throughput defines the maximum number of messages to be
# processed per actor before the thread jumps to the next actor.
# Set to 1 for as fair as possible.
throughput = 100
}
问题:
这是否意味着每个参与者系统唯一一个实例代表的任何已配置调度程序?
一个调度程序实例能否管理多个执行器(线程池、fork-join 池)?
如果每个配置的调度程序只有一个实例,不同的参与者(可能在不同的节点上)如何与之交互?
【问题讨论】: