Skip to content

Instantly share code, notes, and snippets.

@kermitas
Created July 6, 2015 11:23
Show Gist options
  • Save kermitas/5b9936dd8d93b49805ad to your computer and use it in GitHub Desktop.
Save kermitas/5b9936dd8d93b49805ad to your computer and use it in GitHub Desktop.
Configuration for Akka dispatcher that contains low priority threads.
# Low priority threads protects system from CPU starvation.
low-priority-threads-dispatcher {
# For more details please see documentation of this class.
type = akka.dispatch.PriorityThreadsDispatcher
executor = "thread-pool-executor"
# Priority of threads in this thread pool, should be between Thread.MIN_PRIORITY (which is 1) and Thread.MAX_PRIORITY (which is 10).
thread-priority = 1
thread-pool-executor {
core-pool-size-min = 0
core-pool-size-factor = 2.0
core-pool-size-max = 10
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment