In the Akka documentation it states that if a dispatcher is not configured a default dispatcher will be used. What are the properties of the default dispatcher i.e parallelism-min, parallelism-factor, parallelism-max etc. ?
Asked
Active
Viewed 1.9k times
1 Answers
62
By default the dispatcher provided by Akka
is one with a fork-join-executor
, and the default parallelism values are these:
- parallelism-min: 8
- parallelism-factor: 3.0
- parallelism-max: 64
You can see all of this in the documentation.
There is a section named: Listing of the Reference Configuration
Here is the relevant part of the configuration file (I only removed the comments):
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
}
}

Jaap
- 3,081
- 2
- 29
- 50

Rodrigo Sasaki
- 7,048
- 4
- 34
- 49
-
Thanks, somehow I missed that section. – Tsume Apr 24 '13 at 20:58
-
@Tsume, could you select this answer as the correct one? Or at least tell me what it needs to be a more complete answer? – Rodrigo Sasaki Apr 25 '13 at 11:59