Metro-Records / la-metro-councilmatic

:metro: An instance of councilmatic for LA Metro
MIT License
6 stars 2 forks source link

Long search queries cause Haystack/Elastic error #1049

Open antidipyramid opened 6 months ago

antidipyramid commented 6 months ago
Screen Shot 2023-12-14 at 11 21 59 AM

It seems like this is usually caused by Elastic running out of memory (or at least, it thinks its running out of memory). Example query: Executive Management Committee File Career Pathways.

Some observations:

Since this happens when a search is executed, I suspect this is caused by inefficient queries.

antidipyramid commented 5 months ago

It looks like I can no longer replicate the error with the search string Executive Management Committee File Career Pathways.

We'll keep this one open for a little while in case it resurfaces as January traffic to the site picks up.

antidipyramid commented 5 months ago

2/2 update: For some reason, I can again replicate this error on long search strings. After some testing, it seems like these errors coincide with memory leak-like behavior on the server. We've updated the server to try to mitigate this issue in #1072.