Hello all,
I'm still learning ElasticSearch so maybe I'm missing a key notion / parameter here.
Presentation :
So far I've installed two independent ES 6.6.0 clusters, on two different regions. Let's call them cluster1 and cluster2.
Each cluster has :
- three master nodes (1 elected)
- three data nodes
- one Kibana server with it's own URL (kibana1.mysite.org and kibana2.mysite.org)
Except for performance tuning to be done everything seems to work as expected so far.
Adding a remote cluster :
Now I want to be able to query cluster2 from kibana.mysite.org, and get rid of kibana2.mysite.org.
To do so, from kibana1.mysite.org I go to :
Management -> Remote clusters -> Add a remote cluster
Then, I try to add cluster2 as a remote server (where X.X.X.X is cluster2 public IP) :
Name: cluster2
Seed nodes: X.X.X.X:9300
It seems that the settings are updated, as I can see several lines like this in the logs :
[2019-03-04T16:37:40,627][INFO ][o.e.c.s.ClusterSettings ] [jXovQsj] updating [cluster.remote.kek.seeds] from [[]] to [["X.X.X.X:9300"]]
The problem :
Unfortunately the remote connection status of cluster2 is stuck to "Not connected"
If I try to reach cluster2 from any cluster1 node :
[root@elasticsearch-master-68964797cb-xxfs2 elasticsearch]# curl -X GET "X.X.X.X:9300/_remote/info"
This is not an HTTP port
So I guess it's not a firewall problem.
In every nodes configuration I've set the following parameters :
- name: cluster.remote.connect
value: "true"
- name: http.cors.enabled
value: "true"
- name: http.cors.allow-origin
value: "*"
- name: network.host
value: " 0.0.0.0"
What am I missing here, maybe those parameters are not correctly set ? Or do I even try to connect to the right port number ?
Please let me know what additional informations you need, I'll be glad to provide them.