Created
July 6, 2015 11:23
-
-
Save kermitas/5b9936dd8d93b49805ad to your computer and use it in GitHub Desktop.
Configuration for Akka dispatcher that contains low priority threads.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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