Bugzilla – Attachment 114559 Details for
Bug 27043
Add to number_of_replicas and number_of_shards to index config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27043: Add to number_of_replicas and number_of_shards to index config
Bug-27043-Add-to-numberofreplicas-and-numberofshar.patch (text/plain), 1.63 KB, created by
Nick Clemens (kidclamp)
on 2020-12-21 14:32:41 UTC
(
hide
)
Description:
Bug 27043: Add to number_of_replicas and number_of_shards to index config
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-12-21 14:32:41 UTC
Size:
1.63 KB
patch
obsolete
>From ac3cb2b281d9917224e1d4271f25782bd92eb22b Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 17 Nov 2020 14:49:58 +0100 >Subject: [PATCH] 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> >--- > admin/searchengine/elasticsearch/index_config.yaml | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/admin/searchengine/elasticsearch/index_config.yaml b/admin/searchengine/elasticsearch/index_config.yaml >index e424e92a0b..b8b2ac6071 100644 >--- a/admin/searchengine/elasticsearch/index_config.yaml >+++ b/admin/searchengine/elasticsearch/index_config.yaml >@@ -42,3 +42,5 @@ index: > pattern: '\s*(?<!\p{Lu})[.\-,;]*\s*$' > replacement: '' > index.mapping.total_fields.limit: 10000 >+index.number_of_replicas: 1 >+index.number_of_shards: 5 >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27043
:
113734
|
114544
| 114559