ES freezes with number of replicas > 1


(mfeingold) #1

I was playing with different shard/replica settings on my indexes. In
one of my experiments I set number of replicas to 2 and the request to
index a document never returned. At the moment I have only one node
set up, and I understand that 1 node and 2 replicas is not really a
meaningful configuration, but freezing does not seem the right
response here. What's interesting is that 1 replica with a single node

  • still an invalid configuration works fine,

What am missing here?


(Shay Banon) #2

It does not freeze, it will timeout after 1 minute (the default). When you
index, by default, a quorum of shard/replica is expected to be allocated. in
2 replica case, that quorum number is 2, and you only have 1 node, so only 1
for each partition is allocated.

On Tue, Sep 13, 2011 at 1:05 AM, Michael Feingold mfeingold@hill30.comwrote:

I was playing with different shard/replica settings on my indexes. In
one of my experiments I set number of replicas to 2 and the request to
index a document never returned. At the moment I have only one node
set up, and I understand that 1 node and 2 replicas is not really a
meaningful configuration, but freezing does not seem the right
response here. What's interesting is that 1 replica with a single node

  • still an invalid configuration works fine,

What am missing here?


(mfeingold) #3

ah - makes sense

On Sep 12, 5:55 pm, Shay Banon kim...@gmail.com wrote:

It does not freeze, it will timeout after 1 minute (the default). When you
index, by default, a quorum of shard/replica is expected to be allocated. in
2 replica case, that quorum number is 2, and you only have 1 node, so only 1
for each partition is allocated.

On Tue, Sep 13, 2011 at 1:05 AM, Michael Feingold mfeing...@hill30.comwrote:

I was playing with different shard/replica settings on my indexes. In
one of my experiments I set number of replicas to 2 and the request to
index a document never returned. At the moment I have only one node
set up, and I understand that 1 node and 2 replicas is not really a
meaningful configuration, but freezing does not seem the right
response here. What's interesting is that 1 replica with a single node

  • still an invalid configuration works fine,

What am missing here?


(system) #4