I am testing Cross cluster search.
I have 2 cluster with 2 nodes each one, but only works when i restart both clusters.
I can see the results from both cluster in Kibana and console (throught search API).
I can see the results of _remote/info API.
The problem is: After several minutes (between 10-20min) Cross cluster search don´t work anymore.
Kibana show:
Error: Request Timeout after 120000ms
at http://192.168.2.240:562/bundles/kibana.bundle.js?v=16070:13:4431
at http://192.168.2.240:562/bundles/kibana.bundle.js?v=16070:13:4852
The _remote/info API show this error after several minutes without response:
curl 10.98.129.90:9203/_remote/info?pretty
{
"error" : {
"root_cause" : [
{
"type" : "node_disconnected_exception",
"reason" : "[node-1][10.98.119.90:9300][cluster:monitor/nodes/info] disconnected"
}
],
"type" : "node_disconnected_exception",
"reason" : "[node-1][10.98.119.90:9300][cluster:monitor/nodes/info] disconnected"
},
"status" : 500
}
node-1 is always connected and responding ping.
There is not firewall between 2 clusters.
both clusters with firewalld service stopped
All traffic is permitted between 2 clusters.
¿somebody know what is wrong?
Regards!
Clusters and nodes INFO:-----------------------------------------------------------------------
Clusters:
my-cluster-a: 10.98.119.90
node-1(only data), JVM instance
node-2 (elegible master, data) JVM instance
my-cluster-b: 10.98.129.90
node-3(only data), JVM instance
node-4 (elegible master, data), JVM instance
my-cluster-a is added as remote server in my-cluster-b
Versions:
Logstash, Kibana: 6.0
Elasticsearch: 6.1.1
_remote/info my-cluster-a
curl 10.98.119.90:9201/_remote/info?pretty
{ }
_remote/info my-cluster-b (only once or twice after restart both cluster)
curl 10.98.129.90:9202/_remote/info?pretty
{
"my-cluster-b" : {
"seeds" : [
"10.98.129.90:9302",
"10.98.129.90:9303"
],
"http_addresses" : [
"10.98.129.90:9202",
"10.98.129.90:9203"
],
"connected" : true,
"num_nodes_connected" : 2,
"max_connections_per_cluster" : 3,
"initial_connect_timeout" : "30s",
"skip_unavailable" : false
},
"my-cluster-a" : {
"seeds" : [
"10.98.119.90:9300",
"10.98.119.90:9301"
],
"http_addresses" : [
"10.98.119.90:9200",
"10.98.119.90:9201"
],
"connected" : true,
"num_nodes_connected" : 2,
"max_connections_per_cluster" : 3,
"initial_connect_timeout" : "30s",
"skip_unavailable" : false
}
}
Netstat in my-cluster-b when cross cluster search don´t works
netstat -nap | grep 10.98.119.90
tcp6 0 0 10.98.129.90:57326 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:57323 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:57324 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:57304 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:57305 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:57306 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:38929 10.98.119.90:9300 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:38930 10.98.119.90:9300 ESTABLISHED 60433/java
tcp6 0 84 10.98.129.90:38900 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:57307 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:38903 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38926 10.98.119.90:9300 ESTABLISHED 60433/java
tcp6 0 62 10.98.129.90:57308 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:38902 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38927 10.98.119.90:9300 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:57322 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38904 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38928 10.98.119.90:9300 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:57325 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:57303 10.98.119.90:9301 ESTABLISHED 60433/java
tcp6 0 0 10.98.129.90:57327 10.98.119.90:9301 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38899 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38901 10.98.119.90:9300 ESTABLISHED 60593/java
tcp6 0 0 10.98.129.90:38925 10.98.119.90:9300 ESTABLISHED 60433/java