How to reindex from an frozen index?

ES Version: 7.4.2
Steps:

  1. create index and post some data:
    PUT logs
    {
    "settings": {
    "number_of_shards": 2,
    "number_of_replicas": 1
    }
    }

    POST logs/_doc
    {
    "msg": "hello there"
    }

    POST logs/_doc
    {
    "msg": "hello here"
    }

  2. freeze the index
    POST logs/_freeze

  3. try to reindex this index
    POST _reindex
    {
    "source": {
    "index": "logs"
    },
    "dest": {
    "index": "logs-new"
    }
    }
    step3 does not create index named "logs-new", and response with following:
    {
    "took" : 0,
    "timed_out" : false,
    "total" : 0,
    "updated" : 0,
    "created" : 0,
    "deleted" : 0,
    "batches" : 0,
    "version_conflicts" : 0,
    "noops" : 0,
    "retries" : {
    "bulk" : 0,
    "search" : 0
    },
    "throttled_millis" : 0,
    "requests_per_second" : -1.0,
    "throttled_until_millis" : 0,
    "failures" :
    }

i tries to add "ignore_throttled=false" to the url "POST _reindex?ignore_throttled=false", but es complains about illegal argument,
"reason": "request [/_reindex] contains unrecognized parameter: [ignore_throttled]"

how can i reindex from an frozen index ?

I don't think that's supported, although it looks feasible to support since frozen indices do support scrolling. Today your options are either to do the reindex "manually" with a scroll or else unfreeze the index while you're reindexing it.

i think maybe es reindex api should support "ignore_throttled" parameter.
that's a good solution for reindex from frozen indices?

1 Like

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