HomePhabricator

Allow to set Elasticsearch number of shards and replicas

Authored by David Pursehouse <dpursehouse@collab.net> on Nov 30 2018, 7:07 AM.

Description

Allow to set Elasticsearch number of shards and replicas

In the current latest version of Elasticsearch, the number of shards
and replicas are set to 5 and 1 respectively if not explicitly set.

From version 7, the default number of shards will be changed to 1, and
to continue using 5 it must be explicitly set when creating the index.

Explicitly set the values when creating the index, but allow them to be
changed in the gerrit.config. Default the new configurations to 5 and 1
to be consistent with the current defaults.

Bug: Issue 9768
Change-Id: Ia6bc925757f7bf4450d4c8feb21cf838671344f8

Event Timeline

Marco Miller <marco.miller@ericsson.com> committed rGERRITDEPLOY499f7fe4f774: Allow to set Elasticsearch number of shards and replicas (authored by David Pursehouse <dpursehouse@collab.net>).Nov 30 2018, 4:44 PM