OpenSearch/x-pack
Alexander Reelsen f00890ee38
Watcher: Increase HttpClient parallel sent requests (#30130)
The HTTPClient used in watcher is based on the apache http client. The
current client is using a lot of defaults - which are not always
optimal. Two of those defaults are the maximum number of total
connections and the maximum number of connections to a single route.

If one of those limits is reached, the HTTPClient waits for a connection
to be finished thus acting in a blocking fashion. In order to prevent
this when many requests are being executed, we increase the limit of
total connections as well as the connections per route (a route is
basically an endpoint, which also contains proxy information, not
containing an URL, just hosts).

On top of that an additional option has been set to evict
long running connections, which can potentially be reused after some
time. As this requires an additional background thread, this required
some changes to ensure that the httpclient is closed properly. Also the
timeout for this can be configured.
2018-05-09 09:37:47 +02:00
..
dev-tools Fixup build after opening x-pack 2018-04-20 15:33:46 -07:00
docs Docs: remove transport_client from CCS role example (#30263) 2018-05-04 11:52:11 -06:00
license-tools Make licensing FIPS-140 compliant (#30251) 2018-05-02 22:19:43 +03:00
plugin Watcher: Increase HttpClient parallel sent requests (#30130) 2018-05-09 09:37:47 +02:00
qa Mute ML upgrade test (#30458) 2018-05-08 18:11:14 -04:00
test Rename certutil 2018-04-20 15:33:59 -07:00
transport-client Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
NOTICE.txt Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
README.md Reorganize license files 2018-04-20 15:33:59 -07:00
build.gradle Build: Assert jar LICENSE and NOTICE files match 2018-04-25 19:53:24 -04:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.