What is a general good practice for configuring core-pool-size-factor and max-pool-size-factor settings?

StackOverflow https://stackoverflow.com/questions/6336833

  •  27-10-2019
  •  | 
  •  

문제

For example, if the CPU has four cores and eight core threads.

  • Should I set the core-pool-size-factor setting all the way to 8?
  • What's a good general size for max-pool-size-factor in relation to core-pool-size-factor?
  • Are there any other settings the ones I mentioned are related to withing Akka config?
도움이 되었습니까?

해결책

core-pool-size-factor of 1.0 will be 1.0 x number of logical processors available to the runtime.

max-pool-size-factor should be the same as core-pool-size-factor unless you have a bounded queue for the pool (ThreadPoolExecutor does not grow the pool unless the queue is bounded)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top