Akka configuration set paralellism level to cores -
we can configure parallelism level specific number this:
my-thread-pool-dispatcher { type = dispatcher executor = "thread-pool-executor" thread-pool-executor { core-pool-size-min = 2 core-pool-size-factor = 2.0 core-pool-size-max = 10 } throughput = 100 }
but since, want use config in multiple environments i'd set core-pool-size-max=runtime.getruntime().availableprocessors()
. there wayt through configuration?
Comments
Post a Comment