Skip to content

Automatically slice reindex and friends #24547

@nik9000

Description

@nik9000

Background:

Right now reindex and friends have a slices parameter that you can set to automatically parallelize the process. Setting the right value for the slices parameter is a little involved but we have documented guidelines.

Question:

Is it worth implementing something like ?slices=auto? We can do a fairly good job picking the number of slices with something simple like:

if (sourceIndex.numberOfShards > 50) {
  slices = 1; // too big, user should optimize it by hand.
} else {
  slices = sourceIndex.numberOfShards;
}

The point here is that ?slices=auto can be a sane default. Maybe, even, it could be the default in 6.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Indexing/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.>enhancementhelp wantedadoptme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions