multithreading - Does Akka's BalancingPool dispatcher (BalancingDispatcher) have one thread per actor? -


balancingdispatcher deprecated assigning actors directly balancingpool routers uses balancingdispatcher.

as don't configure balancingdispatcher directly, i'd know if balancingdispatcher configured threads equal number of workers?

if we're producing balancingpool in code instead of config, still work same way?

thanks in advance help/info! may better suited question ask in akka mailing group. or should read source.

the balancingpool indeed set balancing dispatcher routees. number of threads , executor used can configured providing pool-dispatcher setting. default uses fork join executor, can give following settings:

pool-dispatcher {   fork-join-executor { # force allocate 5 threads     parallelism-min = 5     parallelism-max = 5   }    # executor = "thread-pool-executor" // can change executor here   #thread-pool-executor {   #  core-pool-size-min = 1   #  core-pool-size-factor = 2.0   #  core-pool-size-max = 5   #} } 

if you'd use 5 threads. can refer dispatcher docs understand how configure dispatchers , executors are.

ps: in general akka questions best served on akka-user mailing list, team monitors , helps out on threads, there's active community "it depends" :-)


Comments