Skip to content

[DOCS] Java REST Client: document setMaxConnPerRoute() + setMaxConnTotal() #82286

Open
@n0othing

Description

@n0othing

The Java REST Client exposes three tunable parameters:

  • Thread Count
  • Max Connections Per Route (setMaxConnPerRoute())
  • Max Connections Total (setMaxConnTotal())

We document how to adjust the thread count [1] but not connections per route / total and it'd be helpful to cover these for users.

Worth noting that In scenarios where the client is communicating to an Elasticsearch cluster via a proxy (e.g an ECE backed cluster), the proxy endpoint is treated as a single route-- increasing connections per + total offers a dramatic performance boost for concurrent requests.

[1] https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/_number_of_threads.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions