我阅读了官方网站上有关调度程序的文档,但仍然不清楚调度程序是什么。例如,它可以如下配置:
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池)?
如果每个配置的分发器只有一个实例,不同的演员(可能在不同的节点上)如何与其交互?