# Need Help for Configuring Two Clusters

**URL:** https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852
**Category:** Elasticsearch
**Created:** [May 7, 2013, 12:54pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852 "2013-05-07T12:54:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mohammad\_rafi\_g](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mohammad\_rafi\_g](https://discuss.elastic.co/u/mohammad_rafi_g)
#### Post date: [May 7, 2013, 12:54pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/1 "2013-05-07T12:54:49Z")

</div>

Hi to All...

```
          Please Any One Tell Me If You Know., How to Configure Two 

```

Clusters [of same version i.e., 0.20.5V],  
setting like:  
Cluster One: {node.data is set to true}  
{master is true}  
{cluster name is like., elasticserach1}  
Cluster Two: {node.data is set to False}  
{master is true}  
{cluster name is like., elasticserach2}

One Cluster[elasticserach1] is For Purely Indexing and this cluster is not  
suppose to search And  
Another Cluster[elasticserach2] is for Searching Data , Which is Stored in  
the Cluster[elasticserach1] and not suppose to Index data.

```
        Is This is Possible to Have Two Different Clusters as in the 

```

above Condition.

Please Any One Help me..  
What I have to do to Accomplish my Requirement described Above.

Regards and Thanks to All,  
Mohammad Rafi.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)
#### Post date: [May 7, 2013, 2:20pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/2 "2013-05-07T14:20:04Z")

</div>

rafi wrote:

> Please Any One Tell Me If You Know., How to Configure Two  
> Clusters [of same version i.e., 0.20.5V], setting like:
> 
> Cluster One: {node.data is set to true}  
> {master is true}  
> {cluster name is like., elasticserach1}  
> Cluster Two: {node.data is set to False}  
> {master is true}  
> {cluster name is like., elasticserach2}
> 
> One Cluster[elasticserach1] is For Purely Indexing and this  
> cluster is not  
> suppose to search And  
> Another Cluster[elasticserach2] is for Searching Data , Which is  
> Stored in  
> the Cluster[elasticserach1] and not suppose to Index data.

Rafi:

You actually don't want two different clusters here. Set  
cluster.name to the same thing for all nodes, and then for the  
"cluster two" nodes, use:

node.client: true

These nodes will join the cluster with the "cluster one" nodes and  
be able to see its data, but they won't get elected master or be  
able to store data themselves. You can also issue queries to any  
of the "cluster one" or "cluster two" nodes.

Drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Stephane\_Raux](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephane_raux/32/2349_2.png) [@Stephane\_Raux](https://discuss.elastic.co/u/Stephane_Raux)
#### Post date: [May 7, 2013, 2:24pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/3 "2013-05-07T14:24:47Z")

</div>

Hi Mohammad,

You will have to put all of your nodes in the same cluster name, in  
order to allow both types of nodes to communicate.

Also, this page may provide a solution to your problem :

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Regards,

Stéphane

2013/5/7 rafi [me.mrafi.en@gmail.com](mailto:me.mrafi.en@gmail.com):

> Hi to All...
> 
> ```
> Please Any One Tell Me If You Know., How to Configure Two
> 
> ```
> 
> Clusters [of same version i.e., 0.20.5V],  
> setting like:  
> Cluster One: {node.data is set to true}  
> {master is true}  
> {cluster name is like., elasticserach1}  
> Cluster Two: {node.data is set to False}  
> {master is true}  
> {cluster name is like., elasticserach2}
> 
> One Cluster[elasticserach1] is For Purely Indexing and this cluster is not  
> suppose to search And  
> Another Cluster[elasticserach2] is for Searching Data , Which is Stored in  
> the Cluster[elasticserach1] and not suppose to Index data.
> 
> ```
> Is This is Possible to Have Two Different Clusters as in the
> 
> ```
> 
> above Condition.
> 
> Please Any One Help me..  
> What I have to do to Accomplish my Requirement described Above.
> 
> Regards and Thanks to All,  
> Mohammad Rafi.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mohammad\_rafi\_g](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mohammad\_rafi\_g](https://discuss.elastic.co/u/mohammad_rafi_g)
#### Post date: [May 7, 2013, 3:37pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/4 "2013-05-07T15:37:58Z")

</div>

Thanks to Stéphane R., and Drew Raines for Replying Me.

As Per Stéphane R.,

> > You will have to put all of your nodes in the same cluster name, in  
> > order to allow both types of nodes to communicate.

I will Do As you Say.

As Per Drew Raines.,

> > Set cluster.name to the same thing for all nodes, and then for the  
> > "cluster two" nodes, use:  
> > node.client: true

Now I will Use Settings like:  
for ClusterOne: cluster name is like "elasticserach"  
Master as true  
node.data as true  
for ClusterTwo: cluster name is like "elasticserach"  
node.client: true \<-------------------  
node.data as false

I think this is What You say me to Do.

Ok Once Again Thanks For Replying..

Regards  
Mohammad Rafi

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)
#### Post date: [May 7, 2013, 5:02pm UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/5 "2013-05-07T17:02:58Z")

</div>

rafi wrote:

> Now I will Use Settings like:  
> for ClusterOne: cluster name is like "elasticserach"  
> Master as true  
> node.data as true

These are the defaults, FYI. You wouldn't need to do anything  
special for the data nodes.

> for ClusterTwo: cluster name is like "elasticserach"  
> node.client: true  
> \<-------------------  
> node.data as false

Setting node.client: true will automatically set node.data: false.

Cheers!

Drew

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![mohammad\_rafi\_g](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mohammad\_rafi\_g](https://discuss.elastic.co/u/mohammad_rafi_g)
#### Post date: [May 9, 2013, 7:22am UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/6 "2013-05-09T07:22:45Z")

</div>

Hi., Drew Raines  
Thanks for your Response. Now I am Clear about how to Configure settings to  
work with two ElasticSearch servers.  
And Now I am able to work with two ElasticSearch servers.

Thank You Very Much, Drew Raines, for reply me.

Regards  
Mohammad Rafi.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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: [July 6, 2017, 2:37am UTC](https://discuss.elastic.co/t/need-help-for-configuring-two-clusters/11852/7 "2017-07-06T02:37:24Z")

</div>


