druid icon indicating copy to clipboard operation
druid copied to clipboard

Netty HttpClient worker threads are not configurable

Open dclim opened this issue 10 years ago • 5 comments

This issue belongs with the metamx/http-client project:

The Netty client worker pool uses a non-configurable Runtime.getRuntime().availableProcessors() * 2 threads. This can create an excessive number of threads on machines with a high number of cores that run a large number of Druid processes (e.g. MMs with lots of peon processes).

https://github.com/metamx/http-client/blob/master/src/main/java/com/metamx/http/client/HttpClientInit.java#L119

It would be good if this could be overridden through configuration. DruidHttpClientConfig has a numMaxThreads field (set from 'druid.global.http.numMaxThreads') which is not currently being honored and probably makes sense to use here.

dclim avatar Jul 28 '16 19:07 dclim

ugh, yeah... that needs to be fixed by making it configurable in http-client

drcrallen avatar Jul 28 '16 19:07 drcrallen

http-client patch in https://github.com/metamx/http-client/pull/25

gianm avatar Aug 03 '16 21:08 gianm

http-client 1.0.5 includes that patch.

gianm avatar Aug 05 '16 20:08 gianm

@dclim could this issue be closed?

leventov avatar Mar 28 '17 22:03 leventov

@leventov yes, thank you

dclim avatar Mar 29 '17 21:03 dclim