# Distributed search

**URL:** <https://discuss.elastic.co/t/distributed-search/2834>\
**Category:** Elasticsearch\
**Created:** [March 2, 2010, 6:38pm UTC](https://discuss.elastic.co/t/distributed-search/2834 "2010-03-02T18:38:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomlili](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tomlili](https://discuss.elastic.co/u/tomlili)\
**Post date:** [March 2, 2010, 6:38pm UTC](https://discuss.elastic.co/t/distributed-search/2834/1 "2010-03-02T18:38:54Z")

</div>

Hallo everybody,

I am new to elastic search.

So ...

First:  
How can I start clients/masters on more then one server?

Second:  
Where can I find a list of all options and there default values?

Greets

Tom

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 2, 2010, 6:44pm UTC](https://discuss.elastic.co/t/distributed-search/2834/2 "2010-03-02T18:44:40Z")

</div>

See below:

On Tue, Mar 2, 2010 at 8:38 PM, tomlili [tom.lili@ymail.com](mailto:tom.lili@ymail.com) wrote:

> Hallo everybody,
> 
> I am new to Elasticsearch.
> 
> So ...
> 
> First:  
> How can I start clients/masters on more then one server?

Just fire up elasticsearch in each server, they will automatically discover  
each other.

> Second:  
> Where can I find a list of all options and there default values?

The docs, under the rest\_api section:  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/)

> Greets
> 
> Tom

---

<div class="post-metadata">

**Author:** ![tomlili](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@tomlili](https://discuss.elastic.co/u/tomlili)\
**Post date:** [March 3, 2010, 1:17pm UTC](https://discuss.elastic.co/t/distributed-search/2834/3 "2010-03-03T13:17:10Z")

</div>

Is it possible to limit the addresses on which to search for new masters/slaves?

I want to start some intances on some EC2 servers.

Greetz Tom

* * *

Von: Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)  
An: [users@elasticsearch.com](mailto:users@elasticsearch.com)  
Gesendet: Dienstag, den 2. März 2010, 19:44:40 Uhr  
Betreff: Re: Distributed search

See below:

On Tue, Mar 2, 2010 at 8:38 PM, tomlili [tom.lili@ymail.com](mailto:tom.lili@ymail.com) wrote:

> Hallo everybody,
> 
> > I am new to Elasticsearch.
> 
> > So ...
> 
> > First:  
> > How can I start clients/masters on more then one server?

Just fire up elasticsearch in each server, they will automatically discover each other.

> > Second:  
> > Where can I find a list of all options and there default values?

The docs, under the rest\_api section: [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/)

> > Greets
> 
> > Tom

* * *

Do You Yahoo!?  
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.

> **[Yahoo Mail - Organized Email](https://mail.yahoo.com/)**
>
> It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 3, 2010, 1:34pm UTC](https://discuss.elastic.co/t/distributed-search/2834/4 "2010-03-03T13:34:37Z")

</div>

In EC2 you will need to use unicast. The configuration is explained here:  
[http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast\_Disabled](http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast_Disabled)

On Wed, Mar 3, 2010 at 3:17 PM, Tom Lander [tom.lili@ymail.com](mailto:tom.lili@ymail.com) wrote:

> Is it possible to limit the addresses on which to search for new  
> masters/slaves?
> 
> I want to start some intances on some EC2 servers.
> 
> Greetz Tom
> 
> * * *
> 
> _Von:_ Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)  
> _An:_ [users@elasticsearch.com](mailto:users@elasticsearch.com)  
> _Gesendet:_ Dienstag, den 2. März 2010, 19:44:40 Uhr  
> _Betreff:_ Re: Distributed search
> 
> See below:
> 
> On Tue, Mar 2, 2010 at 8:38 PM, tomlili [tom.lili@ymail.com](mailto:tom.lili@ymail.com) wrote:
> 
> > Hallo everybody,
> > 
> > I am new to Elasticsearch.
> > 
> > So ...
> > 
> > First:  
> > How can I start clients/masters on more then one server?
> 
> Just fire up elasticsearch in each server, they will automatically discover  
> each other.
> 
> > Second:  
> > Where can I find a list of all options and there default values?
> 
> The docs, under the rest\_api section:  
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/)
> 
> > Greets
> > 
> > Tom
> 
> * * *
> 
> Do You Yahoo!?  
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz  
> gegen Massenmails.  
> [http://mail.yahoo.com](http://mail.yahoo.com)

---

<div class="post-metadata">

**Author:** ![Tux\_Racer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tux_racer/32/2545_2.png) [@Tux\_Racer](https://discuss.elastic.co/u/Tux_Racer)\
**Post date:** [March 8, 2010, 9:05am UTC](https://discuss.elastic.co/t/distributed-search/2834/5 "2010-03-08T09:05:55Z")

</div>

Hello List,

If two nodes are distant (two different data centers, communicating  
over the WAN), what is the best way to detect the nodes?  
What ports should I open on my firewall?

Thanks  
TuX

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 9, 2010, 11:44am UTC](https://discuss.elastic.co/t/distributed-search/2834/6 "2010-03-09T11:44:15Z")

</div>

In this case you would probably want to use unicast discovery as explained  
in the jgroups section (  
[http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast\_Disabled](http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast_Disabled)).  
The transport specific ports are 9300-9400 (explained here:  
[http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/](http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/)) -  
this controls the communication between nodes.

-shay.banon

On Mon, Mar 8, 2010 at 11:05 AM, TuX Racer [tuxracer69@gmail.com](mailto:tuxracer69@gmail.com) wrote:

> Hello List,
> 
> If two nodes are distant (two different data centers, communicating  
> over the WAN), what is the best way to detect the nodes?  
> What ports should I open on my firewall?
> 
> Thanks  
> TuX

---

<div class="post-metadata">

**Author:** ![Graham\_Barr\_2](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Graham\_Barr\_2](https://discuss.elastic.co/u/Graham_Barr_2)\
**Post date:** [March 10, 2010, 12:31am UTC](https://discuss.elastic.co/t/distributed-search/2834/7 "2010-03-10T00:31:56Z")

</div>

When the cluster does contain nodes in separate colocations. Is it  
possible to ensure that a copy of each shard exists within each colocation  
and that any search is, if possible, performed on the replicas in the same  
colocation ?

I have a scenario where I need to have the same search index in 4 colocations.  
Our current solution involves building a separate index within each colocation.  
It would be great if I could configure them in a cluster so that  
changes could be  
made in only one colocation and replicated to the rest

Graham.

On Tue, Mar 9, 2010 at 5:44 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com) wrote:

> In this case you would probably want to use unicast discovery as explained  
> in the jgroups section  
> ([http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast\_Disabled](http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast_Disabled)).  
> The transport specific ports are 9300-9400 (explained  
> here: [http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/](http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/))
> 
> - this controls the communication between nodes.  
> -shay.banon
> 
> On Mon, Mar 8, 2010 at 11:05 AM, TuX Racer [tuxracer69@gmail.com](mailto:tuxracer69@gmail.com) wrote:
> 
> > Hello List,
> > 
> > If two nodes are distant (two different data centers, communicating  
> > over the WAN), what is the best way to detect the nodes?  
> > What ports should I open on my firewall?
> > 
> > Thanks  
> > TuX

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 10, 2010, 7:48am UTC](https://discuss.elastic.co/t/distributed-search/2834/8 "2010-03-10T07:48:17Z")

</div>

Currently, you can't do that with elasticsearch. What I mean is that you  
can't enforce where replica will exists, and you can't enforce where a  
search will go to. But, all is there and thought about, so its natural to  
add. I do plan to try and address something similar soon.

-shay.banon

On Wed, Mar 10, 2010 at 2:31 AM, Graham Barr [gmbarr@gmail.com](mailto:gmbarr@gmail.com) wrote:

> When the cluster does contain nodes in separate colocations. Is it  
> possible to ensure that a copy of each shard exists within each colocation  
> and that any search is, if possible, performed on the replicas in the same  
> colocation ?
> 
> I have a scenario where I need to have the same search index in 4  
> colocations.  
> Our current solution involves building a separate index within each  
> colocation.  
> It would be great if I could configure them in a cluster so that  
> changes could be  
> made in only one colocation and replicated to the rest
> 
> Graham.
> 
> On Tue, Mar 9, 2010 at 5:44 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)  
> wrote:
> 
> > In this case you would probably want to use unicast discovery as  
> > explained  
> > in the jgroups section  
> > (  
> > [http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast\_Disabled](http://www.elasticsearch.com/docs/elasticsearch/modules/discovery/jgroups/#Multicast_Disabled)  
> > ).  
> > The transport specific ports are 9300-9400 (explained  
> > here:  
> > [http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/](http://www.elasticsearch.com/docs/elasticsearch/modules/transport/netty/))
> > 
> > - this controls the communication between nodes.  
> > -shay.banon
> > 
> > On Mon, Mar 8, 2010 at 11:05 AM, TuX Racer [tuxracer69@gmail.com](mailto:tuxracer69@gmail.com) wrote:
> > 
> > > Hello List,
> > > 
> > > If two nodes are distant (two different data centers, communicating  
> > > over the WAN), what is the best way to detect the nodes?  
> > > What ports should I open on my firewall?
> > > 
> > > Thanks  
> > > TuX

---

<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, 4:25am UTC](https://discuss.elastic.co/t/distributed-search/2834/9 "2017-07-06T04:25:21Z")

</div>


