To perform a cross cluster search, I've added the remote cluster using cluster settings API and also confirmed the transport port(9300) of remote cluster seeds are reachable from the search request origin cluster. Below is the output of GET _cluster/settings
{
"persistent" : {
"cluster" : {
"remote" : {
"cluster_one" : {
"mode" : "sniff",
"skip_unavailable" : "true",
"node_connections" : "2",
"seeds" : [
"172.20.1.160:9300",
"172.20.2.160:9300"
]
}
}
},
"indices" : {
"recovery" : {
"max_bytes_per_sec" : "120mb"
}
}
},
"transient" : { }
}
However, GET /_remote/info
returns nothing. Due to that, I cannot perform the cross cluster search and while trying to do, it returns with the following error:
{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [cluster_one:listings-website-900-900]",
"resource.type" : "index_or_alias",
"resource.id" : "cluster_one:listings-website-900-900",
"index_uuid" : "_na_",
"index" : "cluster_one:listings-website-900-900"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [cluster_one:listings-website-900-900]",
"resource.type" : "index_or_alias",
"resource.id" : "cluster_one:listings-website-900-900",
"index_uuid" : "_na_",
"index" : "cluster_one:listings-website-900-900"
},
"status" : 404
}
We've setup the remote clusters on our staging environment using the above steps and was able to perform the cross-cluster search queries. The issue is now with our production environment. Can anyone please help?