feat(elastic): sub index by thing type#1735
Conversation
|
(fixing tests) |
|
merging this so we can do a test indexing on QA over the weekend. |
|
Great work! I'll look at it more closely but one thing we really should do right away is change The general guidelines from https://www.elastic.co/docs/deploy-manage/production-guidance/optimize-performance/size-shards are "Aim for shard sizes between 10GB and 50GB" and "Keep the number of documents on each shard below 200 million". The item/work/instance shards on QA are now 170-180 GB each, so maybe 5 shards each? And a single shard for the tiny ones. Ideally we'd set an index-specific number but until then I suggest we lower it to 5 in |
Yes!! |
Add support for splitting the ES index in different parts based on thing type.
Based on the great work by @andersju in #1569
A new parameter in secret.properties specifies which types (and subtypes) are placed in their own "subindex".
All other documents remain in the main index.
example
elasticSubIndexTypes = Work,Instance,ItemSee https://github.com/libris/devops/pull/298 for how to set up
Summary of changes:
Basically just a lot of plumbing to make
ElasticSearchand some related places aware of the subindiceselasticSubIndexTypesJsonLd