]> git.koha-community.org Git - koha.git/commit
Bug 27043: Add to number_of_replicas and number_of_shards to index config
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 17 Nov 2020 13:49:58 +0000 (14:49 +0100)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 18 Jan 2021 18:31:22 +0000 (19:31 +0100)
commit890e93b57d5905f678bbd5db3b817597f13232c3
tree2b89742b1bda2ba9cf9233d3b0f572f7955a51fa
parenta4d35d3de855b54caf88496776882ec8a92b4ecb
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 https://github.com/elastic/elasticsearch/pull/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 3dc90c66c7e3e53c6fab1792ebac65767e770c5e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 31b3763546e6fb5b55572e49786d0583b3abfa1a)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit ce3d0ff93e2898147c38271c2ab847b6ce4fce31)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
admin/searchengine/elasticsearch/index_config.yaml