Best practice to put a node under maintenance

Hello,

I've a simple question, is there a way to move a specific shard from a
node to a specific other node ?

For example, if I don't want a to have any replicas, and my data is set
as many shards on many nodes:

NODE1:
SHARD1,SHARD4

NODE2:
SHARD2,SHARD5

NODE3:
SHARD3,SHARD6

If I shutdown the NODE3, SHARD3 and SHARD6 will be unavailable. How can
I move SHARD3 to NODE1, and SHARD6 to NODE2 without setting replica=1
to this index ?

Thanks !

--
Erwan

Probably I don't properly understand your usecase, but if you have
replica>1 then there is no problem with removing the node3 as the
shards are already replicated (at least once) to another node(s), no?

On 10 Okt., 10:49, Erwan Loaëc erwan.lo...@cgin.fr wrote:

Hello,

I've a simple question, is there a way to move a specific shard from a
node to a specific other node ?

For example, if I don't want a to have any replicas, and my data is set
as many shards on many nodes:

NODE1:
SHARD1,SHARD4

NODE2:
SHARD2,SHARD5

NODE3:
SHARD3,SHARD6

If I shutdown the NODE3, SHARD3 and SHARD6 will be unavailable. How can
I move SHARD3 to NODE1, and SHARD6 to NODE2 without setting replica=1
to this index ?

Thanks !

--
Erwan

It is possible in master (upcoming 0.18):
Cluster / Index level allocation filtering · Issue #1311 · elastic/elasticsearch · GitHub, by excluding
that relevant node for shard allocation (can be done also based on IP, see
at the bottom of the issue).

On Mon, Oct 10, 2011 at 10:49 AM, Erwan Loaëc erwan.loaec@cgin.fr wrote:

Hello,

I've a simple question, is there a way to move a specific shard from a node
to a specific other node ?

For example, if I don't want a to have any replicas, and my data is set as
many shards on many nodes:

NODE1:
SHARD1,SHARD4

NODE2:
SHARD2,SHARD5

NODE3:
SHARD3,SHARD6

If I shutdown the NODE3, SHARD3 and SHARD6 will be unavailable. How can I
move SHARD3 to NODE1, and SHARD6 to NODE2 without setting replica=1 to
this index ?

Thanks !

--
Erwan

Hello Shay,

Thanks for the answer, this feature is what I was looking for.
When have you planned to release 0.18.0 ?

--
Erwan

Shay Banon wrote:

It is possible in master (upcoming
0.18): Cluster / Index level allocation filtering · Issue #1311 · elastic/elasticsearch · GitHub, by
excluding that relevant node for shard allocation (can be done also
based on IP, see at the bottom of the issue).

On Mon, Oct 10, 2011 at 10:49 AM, Erwan Loaëc <erwan.loaec@cgin.fr
mailto:erwan.loaec@cgin.fr> wrote:

Hello,

I've a simple question, is there a way to move a specific shard from
a node to a specific other node ?

For example, if I don't want a to have any replicas, and my data is
set as many shards on many nodes:

NODE1:
SHARD1,SHARD4

NODE2:
SHARD2,SHARD5

NODE3:
SHARD3,SHARD6

If I shutdown the NODE3, SHARD3 and SHARD6 will be unavailable. How
can I move SHARD3 to NODE1, and SHARD6 to NODE2 _without_ setting
replica=1 to this index ?

Thanks !

-- 
Erwan

Thinking of releasing 0.18 in 1-2 weeks.

On Thu, Oct 13, 2011 at 10:00 AM, Erwan Loaëc erwan.loaec@cgin.fr wrote:

Hello Shay,

Thanks for the answer, this feature is what I was looking for.
When have you planned to release 0.18.0 ?

--
Erwan

Shay Banon wrote:

It is possible in master (upcoming 0.18): https://github.com/**
elasticsearch/elasticsearch/**issues/1311https://github.com/elasticsearch/elasticsearch/issues/1311,
by excluding that relevant node for shard allocation (can be done also based
on IP, see at the bottom of the issue).

On Mon, Oct 10, 2011 at 10:49 AM, Erwan Loaëc <erwan.loaec@cgin.fr<mailto:
erwan.loaec@cgin.fr>> wrote:

Hello,

I've a simple question, is there a way to move a specific shard from
a node to a specific other node ?

For example, if I don't want a to have any replicas, and my data is
set as many shards on many nodes:

NODE1:
SHARD1,SHARD4

NODE2:
SHARD2,SHARD5

NODE3:
SHARD3,SHARD6

If I shutdown the NODE3, SHARD3 and SHARD6 will be unavailable. How
can I move SHARD3 to NODE1, and SHARD6 to NODE2 without setting
replica=1 to this index ?

Thanks !

-- Erwan