What are the default values for NettyNioAsyncHttpClient maxConcurrency, maxPendingConnectionAcquires, and connectionAcquisitionTimeout? #6493
-
QuestionI'm experiencing connection acquisition timeouts in production and would like to understand the default values for Specifically, what are the default values for:
Production IssueI'm encountering this error in my materializer application:
The error suggests the acquire timeout is 10 seconds, but I'd like to confirm the official defaults for all parameters. Current ConfigurationI'm currently using explicit configuration to avoid relying on defaults: NettyNioAsyncHttpClient.builder()
.readTimeout(Duration.ofSeconds(60))
.maxConcurrency(100)
.maxPendingConnectionAcquires(1000)
.connectionAcquisitionTimeout(Duration.ofSeconds(30))Documentation GapThe HTTP Configuration Netty documentation or the source file doesn't explicitly list the default values for these parameters. It would be helpful to have these documented for better application tuning. Use CaseMy application has a component that processes data and uploads to S3. It needs to handle:
Understanding the defaults would help me make informed decisions about whether to use explicit configuration or rely on SDK defaults. RequestCould you please provide the official default values for these parameters? If they're documented somewhere I missed, a pointer to the documentation would be appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Yes this is a little hard to find, sometimes the default values are mentioned in the HTTP client Javadoc but it's not consistent. The default values are:
See the code where the defaults are set here. |
Beta Was this translation helpful? Give feedback.
Yes this is a little hard to find, sometimes the default values are mentioned in the HTTP client Javadoc but it's not consistent.
The default values are:
maxConcurrency(): 50maxPendingConnectionAcquires(): 10000connectionAcquisitionTimeout(): 10 secondsSee the code where the defaults are set here.