Elasticsearch v6.2.1 on Ubuntu 16.04
Getting "connection refused" intermittently - no problems can be seen in log files. Reduced to running a single master, but got the same issue:
NAME READY STATUS RESTARTS AGE
es-data-9768f6585-82j64 1/1 Running 0 2h
es-data-9768f6585-p4x9k 1/1 Running 0 2h
es-data-9768f6585-sh24n 1/1 Running 0 2h
es-ingest-64799798fd-msm2g 1/1 Running 0 2h
es-master-75bff957-djrj4 1/1 Running 0 2h
es-master-75bff957-pm2q5 1/1 Running 0 2h
es-master-75bff957-qv2qp 1/1 Running 0 2h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
elasticsearch ClusterIP 10.244.159.27 9200/TCP 7d
elasticsearch-discovery ClusterIP 10.244.85.54 9300/TCP 7d
elasticsearch@es-master-75bff957-djrj4:/root$ curl http://10.244.159.27:9200/_cluster/health?pretty
curl: (7) Failed to connect to 10.244.159.27 port 9200: Connection refused
elasticsearch@es-master-75bff957-djrj4:/root$ curl http://10.244.159.27:9200/_cluster/health?pretty
{
"cluster_name" : "es-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 7,
"number_of_data_nodes" : 3,
"active_primary_shards" : 0,
"active_shards" : 0,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 0,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 100.0
}
elasticsearch@es-master-75bff957-djrj4:/root$ curl http://10.244.159.27:9200/_cluster/health?pretty
curl: (7) Failed to connect to 10.244.159.27 port 9200: Connection refused