Skip to content

Commit 890e93b

Browse files
fridoboxtuxayo
authored andcommitted
Bug 27043: Add to number_of_replicas and number_of_shards to index config
With Elasticsearch 6 (>6.4), we have a warning on index creation : the default number of shards will change from [5] to [1] in 7.0.0 See elastic/elasticsearch#30587 I propose to add number_of_shards in index config. Also add number_of_replicas that is better explicit. In case on only one node, it must be 0. Test plan : 1) Use Elasticsearch 2) Apply patch and flush memcached 3) Rebuild indexes : misc/search_tools/rebuild_elasticsearch.pl -v -b -d 4) Check you dont have a warning about number of shards 5) Check the settings of index : curl '<cluster>:9200/<myindex>_biblios/_settings?pretty&filter_path=**.number_of_*' 6) You should see : "number_of_shards" : "5", "number_of_replicas" : "1" Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit 3dc90c6) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit 31b3763) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> (cherry picked from commit ce3d0ff) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
1 parent a4d35d3 commit 890e93b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

admin/searchengine/elasticsearch/index_config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ index:
4242
pattern: '\s*(?<!\p{Lu})[.\-,;]*\s*$'
4343
replacement: ''
4444
index.mapping.total_fields.limit: 10000
45+
index.number_of_replicas: 1
46+
index.number_of_shards: 5

0 commit comments

Comments
 (0)