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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -