Shrink on multi path is not working

(IzekChen) #1

I am try to reduce the number of shards on my cluster.
But there have multi data.path in my elasticsearch.yml file.
I saw this post Curator fails to shrink index
I know it is hard to do it.

But when I manually run the shrink API , it works.
Here is the step:

PUT /test1/_settings
  "settings": {
    "index.routing.allocation.require._name": "ServerA", 
    "index.blocks.write": true 

POST test1/_shrink/test1_shrink
  "settings": {
    "index.routing.allocation.require._name": null, 
    "index.blocks.write": null 

Is curator going to support this or is there another solution I can try on ?

(Aaron Mildenstein) #2

This is an issue I'm aware of. It will be added at some point, but it's not in there right now. Feel free to dig in and add a pull request that removes the code that prevents multi-path.

(system) closed #3

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