private IActorRef GetWorkerRouter(IActorRef counter)
{
return Context.ActorOf(new ClusterRouterPool(
local: new RoundRobinPool(10),
settings: new ClusterRouterPoolSettings(
totalInstances: 30,
allowLocalRoutees: true,
useRole: null,
maxInstancesPerNode: 10))
.Props(Props.Create(() => new Worker(counter))));
}