# Elasticsearch high availability

**URL:** <https://discuss.elastic.co/t/elasticsearch-high-availability/12008>\
**Category:** Elasticsearch\
**Created:** [May 17, 2013, 9:16am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008 "2013-05-17T09:16:00Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [May 17, 2013, 9:16am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/1 "2013-05-17T09:16:00Z")

</div>

Hi All,

We want to deploy Elasticsearch in production environment, we would like to  
achieve high availability without using replication.

We have 10 ES storage nodes (0 replica), if one machine goes down, than  
indices stored on that machine are not available for read.

How we can achieve read high availability, if any machines goes down?

Thanks,  
Ankit

--  
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:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [May 17, 2013, 10:12am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/2 "2013-05-17T10:12:06Z")

</div>

Hey,

I am sorry, but I dont understand you. Why do you refrain from using  
replication, even though it can solve your problem of high availability? Do  
you think replication is bad for you because of other reasons?  
Maybe you can shed some light on this.

Thx!

--Alex

On Fri, May 17, 2013 at 11:16 AM, Ankit Jain [ankitjaincs06@gmail.com](mailto:ankitjaincs06@gmail.com)wrote:

> Hi All,
> 
> We want to deploy Elasticsearch in production environment, we would like  
> to achieve high availability without using replication.
> 
> We have 10 ES storage nodes (0 replica), if one machine goes down, than  
> indices stored on that machine are not available for read.
> 
> How we can achieve read high availability, if any machines goes down?
> 
> Thanks,  
> Ankit
> 
> --  
> 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:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [May 17, 2013, 6:30pm UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/3 "2013-05-17T18:30:05Z")

</div>

Replication is the key to high availability. Doesn't matter if it is a  
search engine or a database or static content. You don't put all your eggs  
in one basket.

--  
Ivan

On Fri, May 17, 2013 at 3:12 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> Hey,
> 
> I am sorry, but I dont understand you. Why do you refrain from using  
> replication, even though it can solve your problem of high availability? Do  
> you think replication is bad for you because of other reasons?  
> Maybe you can shed some light on this.
> 
> Thx!
> 
> --Alex
> 
> On Fri, May 17, 2013 at 11:16 AM, Ankit Jain [ankitjaincs06@gmail.com](mailto:ankitjaincs06@gmail.com)wrote:
> 
> > Hi All,
> > 
> > We want to deploy Elasticsearch in production environment, we would like  
> > to achieve high availability without using replication.
> > 
> > We have 10 ES storage nodes (0 replica), if one machine goes down, than  
> > indices stored on that machine are not available for read.
> > 
> > How we can achieve read high availability, if any machines goes down?
> > 
> > Thanks,  
> > Ankit
> > 
> > --  
> > 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).

--  
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:** ![Ankit\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Ankit\_Jain](https://discuss.elastic.co/u/Ankit_Jain)\
**Post date:** [May 19, 2013, 8:00am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/4 "2013-05-19T08:00:40Z")

</div>

Hi Alexander,

We don''t want to use replication, because replication will increase the  
storage cost.

Thanks,  
Ankit Jain

On Friday, 17 May 2013 15:42:06 UTC+5:30, Alexander Reelsen wrote:

> Hey,
> 
> I am sorry, but I dont understand you. Why do you refrain from using  
> replication, even though it can solve your problem of high availability? Do  
> you think replication is bad for you because of other reasons?  
> Maybe you can shed some light on this.
> 
> Thx!
> 
> --Alex
> 
> On Fri, May 17, 2013 at 11:16 AM, Ankit Jain \<[ankitj...@gmail.com](mailto:ankitj...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi All,
> > 
> > We want to deploy Elasticsearch in production environment, we would like  
> > to achieve high availability without using replication.
> > 
> > We have 10 ES storage nodes (0 replica), if one machine goes down, than  
> > indices stored on that machine are not available for read.
> > 
> > How we can achieve read high availability, if any machines goes down?
> > 
> > Thanks,  
> > Ankit
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > 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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 19, 2013, 8:31am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/5 "2013-05-19T08:31:35Z")

</div>

So, you don't want to backup your data because of the hard disk cost?  
So, you have to pay the cost of loosing your data when a node crash.

If the node stops and then restart, it will reuse this node data.  
If you loose your hard drive and you don't have any backup you won't be able to recover.

To add a conclusion to this: there's always a cost somewhere!

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 19 mai 2013 à 10:00, Ankit Jain [ankitjaincs06@gmail.com](mailto:ankitjaincs06@gmail.com) a écrit :

> Hi Alexander,
> 
> We don''t want to use replication, because replication will increase the storage cost.
> 
> Thanks,  
> Ankit Jain
> 
> On Friday, 17 May 2013 15:42:06 UTC+5:30, Alexander Reelsen wrote:
> 
> > Hey,
> > 
> > I am sorry, but I dont understand you. Why do you refrain from using replication, even though it can solve your problem of high availability? Do you think replication is bad for you because of other reasons?  
> > Maybe you can shed some light on this.
> > 
> > Thx!
> > 
> > --Alex
> > 
> > On Fri, May 17, 2013 at 11:16 AM, Ankit Jain [ankitj...@gmail.com](mailto:ankitj...@gmail.com) wrote:
> > 
> > > Hi All,
> > > 
> > > We want to deploy Elasticsearch in production environment, we would like to achieve high availability without using replication.
> > > 
> > > We have 10 ES storage nodes (0 replica), if one machine goes down, than indices stored on that machine are not available for read.
> > > 
> > > How we can achieve read high availability, if any machines goes down?
> > > 
> > > ## Thanks, Ankit
> > > 
> > > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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).

--  
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\_Bastian](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Stephane\_Bastian](https://discuss.elastic.co/u/Stephane_Bastian)\
**Post date:** [May 19, 2013, 12:21pm UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/6 "2013-05-19T12:21:24Z")

</div>

Hi Ankit,

ES supports two features that are key to High Availbility : Replication and  
Sharding.  
You definitely want to use (even abuse 😉 both of them in an HA scenario.  
Furthermore IMHO, disk storage is very cheap and there is no point or  
benefit in not using replication.

my 2 cents

Stephane

On Friday, May 17, 2013 11:16:00 AM UTC+2, Ankit Jain wrote:

> Hi All,
> 
> We want to deploy Elasticsearch in production environment, we would like  
> to achieve high availability without using replication.
> 
> We have 10 ES storage nodes (0 replica), if one machine goes down, than  
> indices stored on that machine are not available for read.
> 
> How we can achieve read high availability, if any machines goes down?
> 
> Thanks,  
> Ankit

--  
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:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [May 20, 2013, 8:30pm UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/7 "2013-05-20T20:30:29Z")

</div>

I recommend to read  
this: [No such thing as a free lunch - Wikipedia](http://en.wikipedia.org/wiki/There_ain't_no_such_thing_as_a_free_lunch)  
and further the following curl:

curl -s -XPUT 'localhost:9200/$your\_index/\_settings' -d '{  
"index" : {  
"number\_of\_replicas" : 1  
}  
}'

simon

On Sunday, May 19, 2013 2:21:24 PM UTC+2, Stephane Bastian wrote:

> Hi Ankit,
> 
> ES supports two features that are key to High Availbility : Replication  
> and Sharding.  
> You definitely want to use (even abuse 😉 both of them in an HA scenario.  
> Furthermore IMHO, disk storage is very cheap and there is no point or  
> benefit in not using replication.
> 
> my 2 cents
> 
> Stephane
> 
> On Friday, May 17, 2013 11:16:00 AM UTC+2, Ankit Jain wrote:
> 
> > Hi All,
> > 
> > We want to deploy Elasticsearch in production environment, we would like  
> > to achieve high availability without using replication.
> > 
> > We have 10 ES storage nodes (0 replica), if one machine goes down, than  
> > indices stored on that machine are not available for read.
> > 
> > How we can achieve read high availability, if any machines goes down?
> > 
> > Thanks,  
> > Ankit

--  
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:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [May 20, 2013, 10:06pm UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/8 "2013-05-20T22:06:48Z")

</div>

I don't believe the request is for a free lunch. The request is to feel  
full without having any food available at all.

🙂

On Monday, May 20, 2013 4:30:29 PM UTC-4, simonw wrote:

> I recommend to read this:  
> [No such thing as a free lunch - Wikipedia](http://en.wikipedia.org/wiki/There_ain't_no_such_thing_as_a_free_lunch)

--  
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:35am UTC](https://discuss.elastic.co/t/elasticsearch-high-availability/12008/9 "2017-07-06T02:35:40Z")

</div>


