Hi,
I am trying to setup elastic-search 8.3 cluster with 3 nodes(2 master, 1 data node) in VMWare(ubuntu os) (IP's - 192.168.15.11(master), 192.168.15.12(master), 192.168.15.13).
Below is the elasticsearch.yml file from one master node -
cluster.name: rh-cluster
node.name: node-1
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
#bootstrap.memory_lock: true
network.host: 192.168.15.11
http.port: 9200
discovery.seed_hosts: ["192.168.15.11", "192.168.15.12", "192.168.15.13"]
cluster.initial_master_nodes: ["node-1", "node-2"]
#readiness.port: 9399
#action.destructive_requires_name: false
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
xpack.security.transport.ssl:
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
#http.host: 0.0.0.0
http.host: [_local_, _site_]
#transport.host: 0.0.0.0
transport.host: [_local_, _site_]
I am getting below cluster health response -
curl -k -u elastic:elastic -XGET https://192.168.15.11:9200/_cluster/health?pretty
{
"cluster_name" : "rh-cluster",
"status" : "green",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 2,
"active_shards" : 4,
"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
}
But in log file I can see below warnings -
[2022-07-21T01:54:29,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.13:9300], node [null], requesting [false] discovery result: [][192.168.15.13:9300] connect_exception: Connection refused: /192.168.15.13:9300: Connection refused
[2022-07-21T01:54:30,601][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [192.168.15.11, 192.168.15.12] to bootstrap a cluster: have discovered [{node-1}{RSRD69EIQna5g}{DqcocwPgTV}{node-1}{192.168.15.11}{192.168.15.11:9300}{cdfhilmrstw}]; discovery will continue using [192.168.15.12:9300, 192.168.15.13:9300] from hosts providers and [{node-1}{RSRD69EIQna5g}{DqcocwPgTV}{node-1}{192.168.15.11}{192.168.15.11:9300}{cdfhilmrstw}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2022-07-21T01:54:30,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.12:9300], node [null], requesting [false] discovery result: [][192.168.15.12:9300] connect_exception: Connection refused: /192.168.15.12:9300: Connection refused
[2022-07-21T01:54:30,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.13:9300], node [null], requesting [false] discovery result: [][192.168.15.13:9300] connect_exception: Connection refused: /192.168.15.13:9300: Connection refused
[2022-07-21T01:54:31,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.12:9300], node [null], requesting [false] discovery result: [][192.168.15.12:9300] connect_exception: Connection refused: /192.168.15.12:9300: Connection refused
[2022-07-21T01:54:31,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.13:9300], node [null], requesting [false] discovery result: [][192.168.15.13:9300] connect_exception: Connection refused: /192.168.15.13:9300: Connection refused
[2022-07-21T01:54:32,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.12:9300], node [null], requesting [false] discovery result: [][192.168.15.12:9300] connect_exception: Connection refused: /192.168.15.12:9300: Connection refused
[2022-07-21T01:54:32,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.13:9300], node [null], requesting [false] discovery result: [][192.168.15.13:9300] connect_exception: Connection refused: /192.168.15.13:9300: Connection refused
[2022-07-21T01:54:33,863][WARN ][o.e.d.PeerFinder ] [node-1] address [192.168.15.12:9300], node [null], requesting [false] discovery result: [][192.168.15.12:9300] connect_exception: Connection refused: /192.168.15.12:9300: Connection refused
Please suggest why I am having issue or any configuration is wrong in yml file.
Thank you in advance.