Rerouting shards in cluster

(mohankumar) #1


In 2.x Es we have used the following rerouting command to move the INITIALIZING shard to STARTED state.

curl -XPOST "" -d'
"commands": [{
"allocate": {
"index": "fw-dd-2017-06-06",
"shard": 1,
"node": "",
"allow_primary": 1

I heard ,In ES 5.x they have changed the option to Primary and replica based,
Can anyone share the sample syntax in 5.x

(Mark Walkom) #2

You shouldn't need to do this. What is making you want to run this command?

(mohankumar) #3

If in case any hard ware failure s on the particular node, then the shards are like orphan, It's keep on the staus of INTIALIZING for Long days.

(mohankumar) #4

fw-dd-2017-06-07 1 p UNASSIGNED
fw-dd-2017-06-07 0 p STARTED 97 74.6kb
utm-mn-2017-06 4 p UNASSIGNED
utm-mn-2017-06 2 p STARTED 170 139.9kb
utm-mn-2017-06 3 p STARTED 150 119.9kb
utm-mn-2017-06 1 p UNASSIGNED
utm-mn-2017-06 5 p STARTED 173 138.5kb
utm-mn-2017-06 0 p STARTED 195 165kb
fw-dd-2017-06-06 2 p STARTED 376 165.8kb
fw-dd-2017-06-06 3 p STARTED 387 185.5kb
fw-dd-2017-06-06 1 p UNASSIGNED
fw-dd-2017-06-06 0 p STARTED 350 160.9kb
hids-wk-2017-23 2 p UNASSIGNED

Hard Disk Failures or any other hardware relates issues ,

(Mark Walkom) #5

Do you not run replicas?

(mohankumar) #6

No,We dont have enough resource to run replica's

(system) #7

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.