aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/resources
diff options
context:
space:
mode:
authorDiego <diegolparra@gmail.com>2014-12-02 00:58:30 -0300
committerDiego <diegolparra@gmail.com>2014-12-02 00:58:30 -0300
commitf511e1c25aa683e0d436ef9b65d3e841b4a83732 (patch)
tree75a61d386093cf8bfef654f307ecb0faadf851e5 /kamon-core/src/main/resources
parentadb02b6323d65c178ce8bd095bc9807384b5a7f8 (diff)
downloadKamon-f511e1c25aa683e0d436ef9b65d3e841b4a83732.tar.gz
Kamon-f511e1c25aa683e0d436ef9b65d3e841b4a83732.tar.bz2
Kamon-f511e1c25aa683e0d436ef9b65d3e841b4a83732.zip
+ core, play: introduce kamon-dispatcher
Diffstat (limited to 'kamon-core/src/main/resources')
-rw-r--r--kamon-core/src/main/resources/reference.conf27
1 files changed, 26 insertions, 1 deletions
diff --git a/kamon-core/src/main/resources/reference.conf b/kamon-core/src/main/resources/reference.conf
index 12e21bd7..639d4aba 100644
--- a/kamon-core/src/main/resources/reference.conf
+++ b/kamon-core/src/main/resources/reference.conf
@@ -5,7 +5,7 @@
kamon {
# Default dispatcher for all Kamon components, unless a more specific one is configured.
- default-dispatcher = "akka.actor.default-dispatcher"
+ default-dispatcher = "kamon.kamon-dispatcher"
metrics {
@@ -132,4 +132,29 @@ kamon {
# the future was created.
ask-pattern-tracing = off
}
+
+ kamon-dispatcher {
+ # Dispatcher is the name of the event-based dispatcher
+ type = Dispatcher
+ # What kind of ExecutionService to use
+ executor = "fork-join-executor"
+ # Configuration for the fork join pool
+ fork-join-executor {
+ # Min number of threads to cap factor-based parallelism number to
+ parallelism-min = 2
+
+ # The parallelism factor is used to determine thread pool size using the
+ # following formula: ceil(available processors * factor). Resulting size
+ # is then bounded by the parallelism-min and parallelism-max values.
+ parallelism-factor = 2.0
+
+ # Max number of threads to cap factor-based parallelism number to
+ parallelism-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 = 3
+ }
} \ No newline at end of file