Skip to content

How can I configure the number of event loop on server? #6019

Answered by jrhee17
d3bt3ch asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! If you would like to specify it globally, you can declare it via flags.
You can specify it programmatically via SPI or via JVM flags.

/**
* Returns the default number of {@linkplain CommonPools#workerGroup() common worker group} threads.
* Note that this flag has no effect if a user specified the worker group explicitly via
* {@link ServerBuilder#workerGroup(EventLoopGroup, boolean)} or
* {@link ClientFactoryBuilder#workerGroup(EventLoopGroup, boolean)}.
*
* <p>The default value of this flag is {@code 2 * <numCpuCores>} for {@link TransportType#…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jrhee17
Comment options

@d3bt3ch
Comment options

@d3bt3ch
Comment options

@ikhoon
Comment options

@d3bt3ch
Comment options

Answer selected by d3bt3ch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants