-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elastic & server going OOM #3505
Comments
Kind reminder. |
Hi, You have to keep in mind that when computing category/product association for a high-level category (or the search result page), the engine will build a complex query to assemble all the products belonging to the currently viewed category:
The resulting query could end up being quite complex and adding pressure to the computation mechanism done by Elasticsearch. That’s why we strongly recommend not using them for the whole category tree. That's not the purpose behind virtual categories: they are designed to build ephemeral categories, such as dynamic corners: "special father day", "actually discounted products", "new products" or a category based on something that will often change: discount, stock, total number of sales, etc… So yeah, most probably all the levels of imbrications you're having under "Sales" could hurt, especially if they are using conditions based on categories, like "Category is one of X". These conditions should be replaced by other way to target products, like "attribute set = X". Could you check how much virtual categories you're having exactly ? |
Hi Romain, Thx for the explanation! |
Are they built with "Category is one of" clauses ? |
There's a total of 17 active categories which have category ids set as a virtual rule (366 in total but most are disabled). I suppose the disabled ones shouldn't be an issue? |
@romainruaud Maybe a fix for that yould be #3486 ? files: vendor/smile/elasticsuite/src/module-elasticsuite-virtual-category/Helper/Rule.php, method: \Smile\ElasticsuiteVirtualCategory\Model\Rule::getCategorySearchQuery
|
Could you provide a screenshot from the Indices page (Elasticsuite -> Indices)? We want to know the size of your indexes. BR, |
Hi @vahonc , Kr, |
Is your question related to a problem? Please describe.
The server of our client is currently running out of memory due to high memory use of ElasticSearch. During the start of the sales we were having issues that Elastic was crashing with 7.8gb of memory. Elastic memory has since been increased to around 12gb and is still going out of memory at times. We're only having this issue now during the sales periode. This has never happened outside of a sales period. We're wondering if this is anything related to our catalog/category setup (we suspect the virtual category setup)? Our client uses quite some virtual categories. They mainly use these to have a subselection in the filtering of the main categories.
Additional context
If the virtual category setup would be the issue, are there any plans on improving this in future releases? Or do you have any suggestions on how the issue could be resolved?
Kind regards,
Giovanni
The text was updated successfully, but these errors were encountered: