Skip to content
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

Magento Cloud slow request for Smile\ElasticsuiteThesaurus\Model\Index::getSynonymRewrites #3491

Open
Yoan-Philippe opened this issue Jan 15, 2025 · 1 comment

Comments

@Yoan-Philippe
Copy link

I'm having some 503 error on my Magento Cloud PWA website. With New relic, I was able to pin point some Smile elasticsuite request that took too long than normal to finish (see screenshot below), and it might be related to those 503 we had.

Does anyone know if it's related to the version of smile we have ? it's far from the latest out there, maybe it could help fix this.

It's these 2 methods that takes a long time to finish :

Smile\ElasticsuiteThesaurus\Model\Index::computeQueryRewrites
Smile\ElasticsuiteThesaurus\Model\Index::getSynonymRewrites

Preconditions

Magento Version : Magento Cloud EE 2.4.5-p9

ElasticSuite Version : 2.10.12.1

Environment : Production

Steps to reproduce

This part is almost impossible to describe, it happens randomly, maybe when there is a lot of traffic on the website or some bot crawling.

Expected result

Request taking less time than 2 minutes

Actual result

Request taking at least 2 minutes
Screenshot 2025-01-15 at 3 31 16 PM

@romainruaud
Copy link
Collaborator

Does anyone know if it's related to the version of smile we have ? it's far from the latest out there, maybe it could help fix this.

Hi, yes, there's a big probability that this was fixed in 2.10.23.2 version by the fix named "Ability to cut-off the amount of alternative queries" : https://github.com/Smile-SA/elasticsuite/releases/tag/2.10.23.2

Please proceed to an upgrade to this one and check if this is happening again. If you cannot upgrade, please report this fix as a patch locally in your project.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants