Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Node Discovery Frequency Only send to one node. #690

Open
Gatusko opened this issue Sep 21, 2020 · 0 comments
Open

Node Discovery Frequency Only send to one node. #690

Gatusko opened this issue Sep 21, 2020 · 0 comments

Comments

@Gatusko
Copy link

Gatusko commented Sep 21, 2020

Currently I have this configuration :

HttpClientConfig.Builder builder =
    new HttpClientConfig.Builder(address) // http://elasticsearch:9200-- > Load balance that will point to another three elasticaserchs
        .connTimeout(connTimeout)
        .readTimeout(readTimeout)
        .defaultMaxTotalConnectionPerRoute(maxInFlightRequests)
        .discoveryEnabled(true)
        .discoveryFrequency(discoveryFrecuency, TimeUnit.SECONDS)
        .multiThreaded(true);

And I have another 3 nodes of elasticsaerch example :
http://0.0.0.1:9200 , http://0.0.0.2:9200, http://0.0.0.3:9200

MY question in here is that only one node is getting the load instead of making a balance for example only node 1 is getting the data. The other two are only sync up.

Do I need to set up in the Builder the three nodes or only one ?
IT is the normal behaviour of this?

The background of this is that in my cluster I saw only IO in one ES.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant