A cluster cannot be yellow if any primaries are unassigned. Are you sure
it's yellow before you set replica's to 0?

On 8 January 2015 at 06:52, Mathew D <[email protected]> wrote:

> I understand there's no point assigning primaries *and* replicas to a
> single node, but in my case ES won't even allocate a primary (until I
> reduce the number of replicas)
>
>
> On Wednesday, January 7, 2015 4:58:58 PM UTC+13, Mark Walkom wrote:
>>
>> It's not recommended to run an Elasticsearch cluster across
>> geographically dispersed locations.
>>
>> You cannot assign both primaries and replicas to a single node, it
>> defeats the purpose! So it's as design.
>>
>> On 7 January 2015 at 14:08, Mathew D <[email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I've encountered some unexpected behaviour during my DR testing which
>>> I'm trying to explain.
>>>
>>> I have a 3-node geographically-separated cluster with the following
>>> settings:
>>>
>>> - index.number_of_shards=5
>>> - index.number_of_replicas=2
>>> - discovery.zen.minimum_master_nodes: 2
>>>
>>> I use number_of_replicas=2 for durability, so that each node will
>>> contain a full set to data (meaning I can lose 2 of my 3 nodes without
>>> losing any data).
>>>
>>> However I am finding that if I shut down 2 nodes, after adjusting
>>> minimum_master_nodes on the remaining node to 1 and restarting that node,
>>> the cluster stays yellow with all shards unassigned.  They remain in the
>>> unassigned state until I manually reduce number_of_replicas to down 1 or
>>> 0.  Once number_of_replicas <= number of nodes, the shards reassign and the
>>> cluster goes green.  Just wondering if this behaviour is as designed?
>>>
>>> Regards,
>>> Mat
>>>
>>>
>>>
>>>  --
>>> 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 [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/elasticsearch/abb0e7cd-c11a-4914-a98f-70d68c1d17be%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/elasticsearch/abb0e7cd-c11a-4914-a98f-70d68c1d17be%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/74ae6254-e4c5-4504-8bee-cd337666bea4%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/74ae6254-e4c5-4504-8bee-cd337666bea4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8HPUQada0aLLGufES6PA05aMLrgHtHvvMmARwE6zFK-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to