# 3 nodes, replicas=2, entire cluster goes down after losing one node?

**URL:** https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685
**Category:** Elasticsearch
**Created:** [October 26, 2011, 7:56am UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685 "2011-10-26T07:56:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Mike\_Peters](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_peters/32/3022_2.png) [@Mike\_Peters](https://discuss.elastic.co/u/Mike_Peters)
#### Post date: [October 26, 2011, 7:56am UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/1 "2011-10-26T07:56:45Z")

</div>

Hi,

Using ElasticSearch 0.17.9

We have 3 nodes, with these settings:

gateway.recover\_after\_nodes: 1  
gateway.recover\_after\_time: 5m  
gateway.expected\_nodes: 2

index:  
number\_of\_shards: 3  
number\_of\_replicas: 2

As soon as any one node goes down, all other nodes stop responding to  
requests with this error:

[2011-10-26 02:38:14,677][DEBUG][action.admin.indices.status]  
[Inferno] [spi][0], node[h4GIhuqDTS2KriM3\_VM-Mw], [R], s[STARTED]:  
Failed to execute  
[org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@17c7a8f3]  
org.elasticsearch.transport.RemoteTransportException: [Lodestone]  
[inet[/10.8.197.136:9300]][indices/status/shard]  
Caused by: org.elasticsearch.indices.IndexMissingException: [spi]  
missing  
at  
org.elasticsearch.indices.InternalIndicesService.indexServiceSafe(InternalIndicesService.java:  
227)  
at  
org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:  
134)  
at  
org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:  
58)  
at  
org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction  
$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:  
381)  
at  
org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction  
$ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:  
370)  
at org.elasticsearch.transport.netty.MessageChannelHandler  
$RequestHandler.run(MessageChannelHandler.java:238)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.runTask(ThreadPoolExecutor.java:885)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:907)  
at java.lang.Thread.run(Thread.java:619)  
[2011-10-26 02:38:14,860][INFO][cluster.service] [Inferno]  
removed {[Lodestone][h4GIhuqDTS2KriM3\_VM-Mw][inet[/  
10.8.197.136:9300]],}, reason: zen-disco-receive(from master [[Stilt-  
Man][c53Wh69UR\_-z0t4MiFJ0VA][inet[/10.8.197.138:9300]]])

--

Any idea what are we doing wrong?

Thanks,  
Mike Peters

---

<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: [October 28, 2011, 5:51am UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/2 "2011-10-28T05:51:03Z")

</div>

Does it completely stop responding to any request? Can you gist the result  
of cluster state (with pretty): curl host:9200/\_cluster/state?pretty=1.

On Wed, Oct 26, 2011 at 9:56 AM, Mike Peters [mike@softwareprojects.com](mailto:mike@softwareprojects.com)wrote:

> Hi,
> 
> Using Elasticsearch 0.17.9
> 
> We have 3 nodes, with these settings:
> 
> gateway.recover\_after\_nodes: 1  
> gateway.recover\_after\_time: 5m  
> gateway.expected\_nodes: 2
> 
> index:  
> number\_of\_shards: 3  
> number\_of\_replicas: 2
> 
> As soon as any one node goes down, all other nodes stop responding to  
> requests with this error:
> 
> [2011-10-26 02:38:14,677][DEBUG][action.admin.indices.status]  
> [Inferno] [spi][0], node[h4GIhuqDTS2KriM3\_VM-Mw], [R], s[STARTED]:  
> Failed to execute
> 
> [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@17c7a8f3  
> ]  
> org.elasticsearch.transport.RemoteTransportException: [Lodestone]  
> [inet[/10.8.197.136:9300]][indices/status/shard]  
> Caused by: org.elasticsearch.indices.IndexMissingException: [spi]  
> missing  
> at
> 
> org.elasticsearch.indices.InternalIndicesService.indexServiceSafe(InternalIndicesService.java:  
> 227)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:  
> 134)  
> at
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.shardOperation(TransportIndicesStatusAction.java:  
> 58)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
> 
> $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:  
> 381)  
> at
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationAction
> 
> $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.java:  
> 370)  
> at org.elasticsearch.transport.netty.MessageChannelHandler  
> $RequestHandler.run(MessageChannelHandler.java:238)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:885)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:907)  
> at java.lang.Thread.run(Thread.java:619)  
> [2011-10-26 02:38:14,860][INFO][cluster.service] [Inferno]  
> removed {[Lodestone][h4GIhuqDTS2KriM3\_VM-Mw][inet[/  
> 10.8.197.136:9300]],}, reason: zen-disco-receive(from master [[Stilt-  
> Man][c53Wh69UR\_-z0t4MiFJ0VA][inet[/10.8.197.138:9300]]])
> 
> --
> 
> Any idea what are we doing wrong?
> 
> Thanks,  
> Mike Peters

---

<div class="post-metadata">

### Author: ![Mike\_Peters](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_peters/32/3022_2.png) [@Mike\_Peters](https://discuss.elastic.co/u/Mike_Peters)
#### Post date: [October 31, 2011, 2:23pm UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/3 "2011-10-31T14:23:51Z")

</div>

Yes - all nodes in the cluster refuse connection as soon as one node  
goes down, although we have 3 nodes with replicas = 2

Any help would be highly appreciated!

Here's the cluster state:

> <https://gist.github.com/anonymous/8b9ad12d3ab78194e890>

On Oct 28, 1:51 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Does it completely stop responding to any request? Can you gist the result  
> of cluster state (with pretty): curl host:9200/\_cluster/state?pretty=1.
> 
> On Wed, Oct 26, 2011 at 9:56 AM, Mike Peters [m...@softwareprojects.com](mailto:m...@softwareprojects.com)wrote:
> 
> > Hi,
> 
> > Using Elasticsearch 0.17.9
> 
> > We have 3 nodes, with these settings:
> 
> > gateway.recover\_after\_nodes: 1  
> > gateway.recover\_after\_time: 5m  
> > gateway.expected\_nodes: 2
> 
> > index:  
> > number\_of\_shards: 3  
> > number\_of\_replicas: 2
> 
> > As soon as any one node goes down, all other nodes stop responding to  
> > requests with this error:
> 
> > [2011-10-26 02:38:14,677][DEBUG][action.admin.indices.status]  
> > [Inferno] [spi][0], node[h4GIhuqDTS2KriM3\_VM-Mw], [R], s[STARTED]:  
> > Failed to execute
> 
> > [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@17c7a8f 3  
> > ]  
> > org.elasticsearch.transport.RemoteTransportException: [Lodestone]  
> > [inet[/10.8.197.136:9300]][indices/status/shard]  
> > Caused by: org.elasticsearch.indices.IndexMissingException: [spi]  
> > missing  
> > at
> 
> > org.elasticsearch.indices.InternalIndicesService.indexServiceSafe(InternalI ndicesService.java:  
> > 227)  
> > at
> 
> > org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction. shardOperation(TransportIndicesStatusAction.java:  
> > 134)  
> > at
> 
> > org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction. shardOperation(TransportIndicesStatusAction.java:  
> > 58)  
> > at
> 
> > org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio n
> 
> > $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja va:  
> > 381)  
> > at
> 
> > org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio n
> 
> > $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja va:  
> > 370)  
> > at org.elasticsearch.transport.netty.MessageChannelHandler  
> > $RequestHandler.run(MessageChannelHandler.java:238)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.runTask(ThreadPoolExecutor.java:885)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.run(ThreadPoolExecutor.java:907)  
> > at java.lang.Thread.run(Thread.java:619)  
> > [2011-10-26 02:38:14,860][INFO][cluster.service] [Inferno]  
> > removed {[Lodestone][h4GIhuqDTS2KriM3\_VM-Mw][inet[/  
> > 10.8.197.136:9300]],}, reason: zen-disco-receive(from master [[Stilt-  
> > Man][c53Wh69UR\_-z0t4MiFJ0VA][inet[/10.8.197.138:9300]]])
> 
> > --
> 
> > Any idea what are we doing wrong?
> 
> > Thanks,  
> > Mike Peters

---

<div class="post-metadata">

### Author: ![Mike\_Peters](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_peters/32/3022_2.png) [@Mike\_Peters](https://discuss.elastic.co/u/Mike_Peters)
#### Post date: [October 31, 2011, 2:26pm UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/4 "2011-10-31T14:26:48Z")

</div>

If it helps, here's the cluster state right after we restart the node  
that goes down (doesn't matter which one, it's always the same  
symptom):

> <https://gist.github.com/anonymous/b6f337b69133849481e8>

On Oct 28, 1:51 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Does it completely stop responding to any request? Can you gist the result  
> of cluster state (with pretty): curl host:9200/\_cluster/state?pretty=1.
> 
> On Wed, Oct 26, 2011 at 9:56 AM, Mike Peters [m...@softwareprojects.com](mailto:m...@softwareprojects.com)wrote:
> 
> > Hi,
> 
> > Using Elasticsearch 0.17.9
> 
> > We have 3 nodes, with these settings:
> 
> > gateway.recover\_after\_nodes: 1  
> > gateway.recover\_after\_time: 5m  
> > gateway.expected\_nodes: 2
> 
> > index:  
> > number\_of\_shards: 3  
> > number\_of\_replicas: 2
> 
> > As soon as any one node goes down, all other nodes stop responding to  
> > requests with this error:
> 
> > [2011-10-26 02:38:14,677][DEBUG][action.admin.indices.status]  
> > [Inferno] [spi][0], node[h4GIhuqDTS2KriM3\_VM-Mw], [R], s[STARTED]:  
> > Failed to execute
> 
> > [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@17c7a8f 3  
> > ]  
> > org.elasticsearch.transport.RemoteTransportException: [Lodestone]  
> > [inet[/10.8.197.136:9300]][indices/status/shard]  
> > Caused by: org.elasticsearch.indices.IndexMissingException: [spi]  
> > missing  
> > at
> 
> > org.elasticsearch.indices.InternalIndicesService.indexServiceSafe(InternalI ndicesService.java:  
> > 227)  
> > at
> 
> > org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction. shardOperation(TransportIndicesStatusAction.java:  
> > 134)  
> > at
> 
> > org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction. shardOperation(TransportIndicesStatusAction.java:  
> > 58)  
> > at
> 
> > org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio n
> 
> > $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja va:  
> > 381)  
> > at
> 
> > org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio n
> 
> > $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja va:  
> > 370)  
> > at org.elasticsearch.transport.netty.MessageChannelHandler  
> > $RequestHandler.run(MessageChannelHandler.java:238)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.runTask(ThreadPoolExecutor.java:885)  
> > at java.util.concurrent.ThreadPoolExecutor  
> > $Worker.run(ThreadPoolExecutor.java:907)  
> > at java.lang.Thread.run(Thread.java:619)  
> > [2011-10-26 02:38:14,860][INFO][cluster.service] [Inferno]  
> > removed {[Lodestone][h4GIhuqDTS2KriM3\_VM-Mw][inet[/  
> > 10.8.197.136:9300]],}, reason: zen-disco-receive(from master [[Stilt-  
> > Man][c53Wh69UR\_-z0t4MiFJ0VA][inet[/10.8.197.138:9300]]])
> 
> > --
> 
> > Any idea what are we doing wrong?
> 
> > Thanks,  
> > Mike Peters

---

<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: [October 31, 2011, 5:19pm UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/5 "2011-10-31T17:19:49Z")

</div>

It seems like the state looks good. Indices are there, shards are allocated  
on the remaining nodes. When happens when you execute "count" on the spi  
index for example, does it fail?

On Mon, Oct 31, 2011 at 4:26 PM, Mike Peters [mike@softwareprojects.com](mailto:mike@softwareprojects.com)wrote:

> If it helps, here's the cluster state right after we restart the node  
> that goes down (doesn't matter which one, it's always the same  
> symptom):  
> [3rd node restarted · GitHub](https://gist.github.com/b6f337b69133849481e8)
> 
> On Oct 28, 1:51 am, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Does it completely stop responding to any request? Can you gist the  
> > result  
> > of cluster state (with pretty): curl host:9200/\_cluster/state?pretty=1.
> > 
> > On Wed, Oct 26, 2011 at 9:56 AM, Mike Peters \<[m...@softwareprojects.com](mailto:m...@softwareprojects.com)  
> > wrote:
> > 
> > > Hi,
> > 
> > > Using Elasticsearch 0.17.9
> > 
> > > We have 3 nodes, with these settings:
> > 
> > > gateway.recover\_after\_nodes: 1  
> > > gateway.recover\_after\_time: 5m  
> > > gateway.expected\_nodes: 2
> > 
> > > index:  
> > > number\_of\_shards: 3  
> > > number\_of\_replicas: 2
> > 
> > > As soon as any one node goes down, all other nodes stop responding to  
> > > requests with this error:
> > 
> > > [2011-10-26 02:38:14,677][DEBUG][action.admin.indices.status]  
> > > [Inferno] [spi][0], node[h4GIhuqDTS2KriM3\_VM-Mw], [R], s[STARTED]:  
> > > Failed to execute
> > 
> > >
> 
> [org.elasticsearch.action.admin.indices.status.IndicesStatusRequest@17c7a8f3
> 
> > > ]  
> > > org.elasticsearch.transport.RemoteTransportException: [Lodestone]  
> > > [inet[/10.8.197.136:9300]][indices/status/shard]  
> > > Caused by: org.elasticsearch.indices.IndexMissingException: [spi]  
> > > missing  
> > > at
> > 
> > >
> 
> org.elasticsearch.indices.InternalIndicesService.indexServiceSafe(InternalI  
> ndicesService.java:
> 
> > > 1. at
> > 
> > >
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.  
> shardOperation(TransportIndicesStatusAction.java:
> 
> > > 1. at
> > 
> > >
> 
> org.elasticsearch.action.admin.indices.status.TransportIndicesStatusAction.  
> shardOperation(TransportIndicesStatusAction.java:
> 
> > > 1. at
> > 
> > >
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio  
> n
> 
> > >
> 
> $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja  
> va:
> 
> > > 1. at
> > 
> > >
> 
> org.elasticsearch.action.support.broadcast.TransportBroadcastOperationActio  
> n
> 
> > >
> 
> $ShardTransportHandler.messageReceived(TransportBroadcastOperationAction.ja  
> va:
> 
> > > 1. at org.elasticsearch.transport.netty.MessageChannelHandler  
> > > $RequestHandler.run(MessageChannelHandler.java:238)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.runTask(ThreadPoolExecutor.java:885)  
> > > at java.util.concurrent.ThreadPoolExecutor  
> > > $Worker.run(ThreadPoolExecutor.java:907)  
> > > at java.lang.Thread.run(Thread.java:619)  
> > > [2011-10-26 02:38:14,860][INFO][cluster.service] [Inferno]  
> > > removed {[Lodestone][h4GIhuqDTS2KriM3\_VM-Mw][inet[/  
> > > 10.8.197.136:9300]],}, reason: zen-disco-receive(from master [[Stilt-  
> > > Man][c53Wh69UR\_-z0t4MiFJ0VA][inet[/10.8.197.138:9300]]])
> > 
> > > --
> > 
> > > Any idea what are we doing wrong?
> > 
> > > Thanks,  
> > > Mike Peters

---

<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, 3:50am UTC](https://discuss.elastic.co/t/3-nodes-replicas-2-entire-cluster-goes-down-after-losing-one-node/5685/6 "2017-07-06T03:50:22Z")

</div>


