-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] High CPU usage with flat_object field type #12030
Comments
Ah ... this is so sad, the problem was reported on the forum [1] but the user had never created an issue for that, it got lost, thank you @waqarsky for filling this one in. [1] https://forum.opensearch.org/t/high-cpu-usage-with-several-write-threads-pools-in-queue/15642 |
Wondering if this still exists after the change done as part of #7835 |
👍
I am not aware of this side effect
A bit more details (server logs?) would help, thank you |
Describe the bug
3 node cluster without dedicated master.
Mapping template snippet:
hot_threads output
Seeing 100% cpu usage across all 3 nodes with the same report on hot_threads. Data coming into OS has some fields which are mapped as "flat_object"
Issue stops happening if the mapping is changed to, e.g. keyword - CPU falls back down to ~3% from 100% with the same rate of incoming events as well as search.
Visualised across several days.
Changing the mapping back to flat_object to confirm theory was successful as then CPU shot back to 100% after the index was rolled over to start using flat_object again.
One other very important thing to note is that while this high CPU is occurring, a number of duplicate documents in OS were noticed. Exactly the same just the ID were different.
Related component
Indexing:Performance
To Reproduce
Use flat_object like in snippet above - > CPU 100%
Change flat_object to keyword - > CPU 3%
Change back to flat_object - > CPU 100%
Expected behavior
Not high CPU
Additional Details
No response
The text was updated successfully, but these errors were encountered: