You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**I/O Thread Pool Size**|`ioThreadPoolSize`|`Number of processors`|
103
-
| The number of threads in the I/O thread pools. The number defaults to the number of available processors that the runtime returns (which, as a well-known fact, sometimes does not represent the actual number of processors). Every thread represents an internal event loop where all I/O tasks are run. The number does not reflect the actual number of I/O threads because the client requires different thread pools for Network (NIO) and Unix Domain Socket (EPoll) connections. The minimum I/O threads are `3`. A pool with fewer threads can cause undefined behavior. |||
104
-
|**Computation Thread Pool Size**|`comput ationThreadPoolSize`|`Number of processors`|
105
-
| The number of threads in the computation thread pool. The number defaults to the number of available processors that the runtime returns (which, as a well-known fact, sometimes does not represent the actual number of processors). Every thread represents an internal event loop where all computation tasks are run. The minimum computation threads are `3`. A pool with fewer threads can cause undefined behavior. |||
|**I/O Thread Pool Size**|`ioThreadPoolSize`|`See below`|
103
+
| The number of threads in the I/O thread pools. Every thread represents an internal event loop where all I/O tasks are run. The number does not reflect the actual number of I/O threads because the client requires different thread pools for Network (NIO) and Unix Domain Socket (EPoll) connections. The minimum I/O threads are `2`. |||
104
+
|**Computation Thread Pool Size**|`comput ationThreadPoolSize`|`See below`|
105
+
| The number of threads in the computation thread pool. Every thread represents an internal event loop where all computation tasks are run. The minimum computation threads are `2`. |||
106
+
107
+
#### Default thread pool size
108
+
109
+
Unless configured otherwise by the settings above, the number of threads (for both computation and I/O) is determined in the following order:
110
+
* if there is an environment variable setting for `io.netty.eventLoopThreads` we use it as default setting
111
+
* otherwise we take the number of available processors, retrieved by `Runtime.getRuntime().availableProcessors()`_(which, as a well-known fact, sometimes does not represent the actual number of processors)_
112
+
* in any case if the chosen number is lower than the minimum, which is `2` threads, then we use the minimum.
0 commit comments