# ES 5.1.1- Using slices with the reindex from remote

**URL:** <https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089>\
**Category:** Elasticsearch\
**Created:** [December 27, 2016, 5:58pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089 "2016-12-27T17:58:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![benregn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benregn/32/14170_2.png) [@benregn](https://discuss.elastic.co/u/benregn)\
**Post date:** [December 27, 2016, 5:58pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/1 "2016-12-27T17:58:22Z")

</div>

I'm testing a 1.7.5 migration to 5.1 using the reindex-from-remote upgrade path. I tried to use [automatic slicing](https://www.elastic.co/guide/en/elasticsearch/reference/5.1/docs-reindex.html#docs-reindex-automatic-slice) with the Reindex API.

```bash
curl -XPOST localhost:9200/_reindex?slices=24 -d '{
    "source": {
        "index": "index_name",
        "remote": {
            "host": "http://remote-es-cluster:9200"
        }
    },
    "dest": {
        "index": "index_name"
    }
}'

```

```json
{
  "error": {
    "reason": "Validation Failed: 1: reindex from remote sources doesn't support workers > 1 but was [24];",
    "root_cause": [
      {
        "reason": "Validation Failed: 1: reindex from remote sources doesn't support workers > 1 but was [24];",
        "type": "action_request_validation_exception"
      }
    ],
    "type": "action_request_validation_exception"
  },
  "status": 400
}

```

I previously used manual slicing successfully and I was looking forward to replacing that with auto slicing. Maybe I misunderstood and auto slicing was never supposed to work with reindex from remote? Any input would appreciated.

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [December 28, 2016, 9:24am UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/2 "2016-12-28T09:24:07Z")

</div>

Looking at the linked comment on the PR implementing the change, it looks to me like the feature is just not implemented yet:

> <https://github.com/elastic/elasticsearch/pull/20767#discussion_r82022089>

---

<div class="post-metadata">

**Author:** ![benregn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benregn/32/14170_2.png) [@benregn](https://discuss.elastic.co/u/benregn)\
**Post date:** [December 28, 2016, 1:27pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/3 "2016-12-28T13:27:49Z")

</div>

So it didn't get included in the v5.1.1 release? There is a mention of this feature in the release notes and there are documentation about it. Maybe the docs and release notes should be updated to reflect that it isn't released yet 🙂

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [December 28, 2016, 1:40pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/4 "2016-12-28T13:40:03Z")

</div>

well, it's just not supporting reindex-from-remote yet. /cc: @nik9000

---

<div class="post-metadata">

**Author:** ![benregn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benregn/32/14170_2.png) [@benregn](https://discuss.elastic.co/u/benregn)\
**Post date:** [December 28, 2016, 2:10pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/5 "2016-12-28T14:10:11Z")

</div>

I see. Might be an ok idea to point that out in the docs until it get's implemented.

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [December 28, 2016, 2:13pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/6 "2016-12-28T14:13:21Z")

</div>

> I see. Might be an ok idea to point that out in the docs until it get's implemented.

I completely agree with that.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 25, 2017, 2:13pm UTC](https://discuss.elastic.co/t/es-5-1-1-using-slices-with-the-reindex-from-remote/70089/7 "2017-01-25T14:13:39Z")

</div>

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