Versions Compared

Key

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

...

  • 라우티의 이름은 a/b/c/d/e 이며 a의 라우티에 임의 300ms 지연처리
  • round robbing 순차분배 기준 각 라우티는 10개의 작업을 분배받습니다.분배받일수 있습니다. ( a의 경우 300 * 10 지연이 필연발생 )


라우팅 정의

Code Block
akka.actor.deployment {
  /router1 {
    router = round-robin-pool
    nr-of-instances = 5
  }

  /router2 {
    router = random-pool
    nr-of-instances = 5
  }

  /router3 {
    router = balancing-pool
    nr-of-instances = 5
    pool-dispatcher {
      attempt-teamwork = off
    }
  }

  /router4 {
    router = balancing-pool
    nr-of-instances = 5
    pool-dispatcher {
      executor = "thread-pool-executor"

      # Thread Pool을 지정할수도 있습니다.
      thread-pool-executor {
        core-pool-size-min = 5
        core-pool-size-max = 5
      }
    }
  }

  /router5 {
    router = smallest-mailbox-pool
    nr-of-instances = 5
  }}

...