pires / kubernetes-elasticsearch-cluster

Elasticsearch cluster on top of Kubernetes made easy.
Apache License 2.0
1.51k stars 690 forks source link

Multi client issue #156

Open vijayanj opened 6 years ago

vijayanj commented 6 years ago

Hi, Running Elasticsearch 6.0 on k8s with following configuration, As following your documentation.

Master node - 3 no's Client node - 2 no's Data node - 5 no's

Uploaded 1 million docs into the cluster. while querying, every time it shows different docs count, while passing through different clients. This applies to both kibana and browser (http://localhost:9200/INDEXNAME/_search).

If we use single client this is not happen.

Vijayan

IanMoroney commented 6 years ago

I am seeing this issue occur also. When I curl the ip address on port 9200, i see different "name" values when using multiple clients (intended behaviour i'm assuming). but it results in different behaviour, almost in a split brain fashion.

pires commented 6 years ago

IIRC, that's because the service points to client nodes which instead points to data nodes.