Recently, there have been several exceptions about this issue happening every day with my service.
Regarding what this httpclient does, it is like uploading audio files to object storage. And in terms of concurrency, its proportion is very high compared to the entire service.
Currently, my settings are all default settings, but I found the following paragraph in the document:
When you expect a high load, be cautious with a connection pool with a very high value for maximum connections. You might experience reactor.netty.http.client.PrematureCloseException exception with a root cause "Connect Timeout" due to too many concurrent connections opened/acquired.
What I don't understand is why we can't set the number of connections too high? Wouldn't setting it too low actually accelerate this problem?
Do you have any configuration suggestions regarding this issue? What I can confirm is that it's not the remote server closing the connection, but rather a timeout occurring when obtaining the connection on the client side.
Recently, there have been several exceptions about this issue happening every day with my service.
Regarding what this httpclient does, it is like uploading audio files to object storage. And in terms of concurrency, its proportion is very high compared to the entire service.
Currently, my settings are all default settings, but I found the following paragraph in the document:
What I don't understand is why we can't set the number of connections too high? Wouldn't setting it too low actually accelerate this problem?
Do you have any configuration suggestions regarding this issue? What I can confirm is that it's not the remote server closing the connection, but rather a timeout occurring when obtaining the connection on the client side.