Router thread pool can't be increased

Hello everyone,

We are migrating our play backend who use intensively Http.Context.current(). We are going to implement custom thread pool for the blocking calls.

But in the interval we need to increase the number of simultaneous calls to play. In our tests we ware limited to 6.

public Result sleepTest() {
        System.out.println("Go Sleep");
        try {
            Thread.sleep(10000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("Sleep done");
        return ok();
    }

the configuration :

akka {
  actor {
    default-dispatcher {
      executor = "thread-pool-executor"
      throughput = 1
      thread-pool-executor {
        fixed-pool-size = 55 # db conn pool (50) + number of cores (4) + housekeeping (1)
      }
    }
  }
}

Best regards

I don’t fully understand your problem. So you saying you are just able to process only 6 requests in parallel with the above configuration?

Hello Matthias,

Yes exactly, I can process only 6 requests. When I call sleepTest 6 times, then all requests are in queue until sleepTest is done.