Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • parallelism-min =2 : 동시에 활성화되는 최소 스레드수 (available processors * factor)
  • parallelism-max = 8 : 동시에 활성화되는 최대 스레드수
  • parallelism-factor =2.0 : Core개수대비 최대가 될수있는 스레드수
  • throughput =100 : 동시에 처리하는 메시지수
  • fixed-pool-size =32 : 스레드 개수 고정

동시 호출수 제한 예제

Panel

//설정

blocking-io-dispatcher {
type = Dispatcher
executor = "thread-pool-executor"
thread-pool-executor {
fixed-pool-size = 32
}
throughput = 1
}

//특정 액터 Dispatcher지정
ActorRef myActor =
system.actorOf(Props.create(MyActor.class).withDispatcher("blocking-io-dispatcher"),
"myactor3");