Skip to content

add truncate support for a index #65189

@easyice

Description

@easyice

when i want to change type for some filed in mapping, i should reindex or bulk write to a new index,but,in my case,create an index can be costly,because:

  1. i have more than 100 index need to reindex from remote every mouth
  2. my cluster has 50 nodes and 10000 shards, when create a new index, the shards-stared RPC need much more time for master node processing, the rpc has URGENT priority,He caused the other rpc to have no chance to execute, like put-mapping.

i want to reuse the old index,Don't delete it.if the truncate api can be support, i can truncate then old index, including then all index segments, and mappings, then put new mapping, and write index to the old index

thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions