Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify number of shards setting #30783

Merged
merged 1 commit into from
May 22, 2018

Commits on May 22, 2018

  1. Simplify number of shards setting

    This is code that was leftover from the move to one shard by
    default. Here in index metadata we were preserving the default number of
    shards settings independently of the area of code where we set this
    value on an index that does not explicitly have an number of shards
    setting. This took into consideration the es.index.max_number_of_shards
    system property, and was used in search requests to set the default
    maximum number of concurrent shard requests. We set the default there
    based on the default number of shards so that in a one-node case a
    search request could concurrently hit all shards on an index with the
    defaults. Now that we default to one shard, we expect fewer shards in
    clusters and this adjustment of the node count as the max number of
    concurrent shard requests is no longer needed. This commit then changes
    the default number of shards settings to be consistent with the value
    used when an index is created, and removes the now unneeded adjustment
    in search requests.
    jasontedor committed May 22, 2018
    Configuration menu
    Copy the full SHA
    0439102 View commit details
    Browse the repository at this point in the history