I am trying to set an event loop group while creating AsyncHttpClient but I would like to understand the input parameters for creating and setting an eventLoop.
NioEventLoopGroup eventLoopGroup = new NioEventLoopGroup(32, Executors.newScheduledThreadPool(33));
AsyncHttpClient asyncHttpClient = return asyncHttpClient(
config().setConnectTimeout(30000).setRequestTimeout(5000).setEventLoopGroup(eventLoopGroup));
For new NioEventLoopGroup
, what's the difference between the first parameter and the threadpool size of the Executor? When I set this value and inspect the executor, 32 threads are "New I/O" threads and 1 thread for the thread pool to perform requests. This results in timeouts. What is the best way to set the thread pool size to N threads?