# What is the correct setup needed for remote cluster?

**URL:** <https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099>\
**Category:** Elasticsearch\
**Tags:** ccs-cross-cluster-search\
**Created:** [February 5, 2019, 10:43am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099 "2019-02-05T10:43:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 5, 2019, 10:43am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/1 "2019-02-05T10:43:55Z")

</div>

Hi Everyone,

Elasticsearch version - 6.4.1

Can we have the remote cluster with two nodes which are present in the same cluster (i.e node1 (active master node) and node2 in cluster (cluster name: cluster1))?

The reason I'm asking this is because I'm able to successfully set the remote cluster when both the nodes are present in same cluster.

[root@node2 ~]# curl -X PUT "node2:9200/\_cluster/settings" -H 'Content-Type: application/json' -d'

> {  
> "persistent": {  
> "search": {  
> "remote": {  
> "cluster\_one": {  
> "seeds": [  
> "10.x.x.1:9300"  
> ]  
> }  
> }  
> }  
> }  
> }  
> '  
> {"acknowledged":true,"persistent":{"search":{"remote":{"cluster\_one":{"seeds":["10.x.x.1:9300"]}}}},"transient":{}}[root@node2 ~]#

Also, should we configure remote cluster when both the nodes are present in different clusters?

Kindly help with the setup. I'm following the given below link:

> **[Remote clusters | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-remote-clusters.html#modules-remote-clusters)**

Thanks & Regards  
Nikhil Kapoor

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 6:39am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/2 "2019-02-06T06:39:39Z")

</div>

Can anyone help me with this?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2019, 6:42am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/3 "2019-02-06T06:42:21Z")

</div>

What are you trying to achieve? How is the cluster to be deployed? What is your use case?

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 7:05am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/4 "2019-02-06T07:05:07Z")

</div>

Hi @Christian_Dahlqvist,

Thanks for your response. I want to setup a remote cluster setup. I have two nodes with roles as Master & Data. I am confused to setup a remote cluster, both the nodes should be indifferent cluster or same clusters.

Then, I want to perform cross cluster search.

Regards  
Nikhil Kapoor

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2019, 7:15am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/5 "2019-02-06T07:15:25Z")

</div>

How far apart are the nodes? Are they in different data centres?

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 7:34am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/6 "2019-02-06T07:34:14Z")

</div>

The machines are present on different machines in a building. I want to understand and implementation of the remote cluster and cross cluster scenario.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2019, 7:37am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/7 "2019-02-06T07:37:16Z")

</div>

Cross-cluster search is used to query across multiple, distinct clusters. If the nodes form a single cluster there is therefore no need for cross cluster search. If you set them up as separate clusters with different names, you should configure the remote cluster and use cross cluster search.

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 7:51am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/8 "2019-02-06T07:51:13Z")

</div>

@Christian_Dahlqvist okay got your point about cross cluster but what about remote cluster? Can we configure a remote cluster in single cluster only.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2019, 7:55am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/9 "2019-02-06T07:55:37Z")

</div>

Remote cluster indicates that you are connecting to a different cluster, so is not applicable if both node form part of the same cluster.

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 8:15am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/10 "2019-02-06T08:15:22Z")

</div>

Okay understood your point for remote cluster too.

So, know i want to tell you that when two nodes are in same cluster and cluster update settings command is executed to configure remote cluster (on any node) , it observed that it is set successfully. I think an error should be shown on console that `Cannot set the remote cluster as nodes are in same cluster`

I think it's a bug? What do you think @Christian_Dahlqvist

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 6, 2019, 8:23am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/11 "2019-02-06T08:23:23Z")

</div>

I am not sure I understand what you are trying to do. Can you explain at a high level what you are trying to achieve?

---

<div class="post-metadata">

**Author:** ![nikhil.k](https://avatars.discourse-cdn.com/v4/letter/n/5daacb/32.png) [@nikhil.k](https://discuss.elastic.co/u/nikhil.k)\
**Post date:** [February 6, 2019, 8:42am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/12 "2019-02-06T08:42:25Z")

</div>

Suppose there are two nodes in a cluster (cluster name: cluster1)

1. Node1: 10.x.x.1 (active master node)
2. Node2: 10.x.x.2

Now suppose below command is executed:  
[root@node2 ~]# curl -X PUT "node2:9200/\_cluster/settings" -H 'Content-Type: application/json' -d'  
{  
"persistent": {  
"search": {  
"remote": {  
"cluster\_one": {  
"seeds": [  
"10.x.x.1:9300"  
]  
}  
}  
}  
}  
}  
'  
{"acknowledged":true,"persistent":{"search":{"remote":{"cluster\_one":{"seeds":["10.x.x.1:9300"]}}}},"transient":{}}[root@node2 ~]#

It is observed that no error is shown on the console `Cannot set the remote cluster as nodes are in same cluster` instead acknowledgement is sent to the user.

Does it now make some sense @Christian_Dahlqvist

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 6, 2019, 8:42am UTC](https://discuss.elastic.co/t/what-is-the-correct-setup-needed-for-remote-cluster/167099/13 "2019-03-06T08:42:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
