-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
very slow query of segments #9899
Comments
This issue has been marked as stale due to 280 days of inactivity. |
Is this issue resolved ? im still facing the same issue with v25. Does any one know who fires this query (is it Overlord or Coordinator) ? and the reason for these queries ? each query is taking almost 60 seconds and returning empty results which is blocking overall ingestion and made the platform unstable (no response in UI) |
We have exactly the same issue. We see that the max length of the payload is around 6000 characters. Maybe it's a good improvement to change the column type of the We have also begun to re-index our segments. We have changed the segment granularity from hour to day or even month, which decreased the number of segments. For other people who find this topic, this is something which is a good solution for it. And kill unused segments as the topic starter also suggested. |
We have exactly the same issue when segments count > 100, 000, . SQL SELECT id FROM druid_segments WHERE used=true query vrey slow. |
Druid version 26.0.0. We have the same issue about 200K segments that SQL query very slowly about 3 minutes. |
this issue is related to #9755 . At first I thought it was because there were too many rows in the
druid_segments
table. So we killed unused segments through API to reduce the records in that table. After that, the count of rows dropped from about 360,000 to about 50,000.But our DBA still reported that there were slow queries there, which pointed to statement
SELECT payload FROM druid_segments WHERE used=true
. So I ran this SQL from local mysql client, and it reported that it took more than 90 seconds to get the result.I ran another SQL
SELECT id FROM druid_segments WHERE used=true
from local, which reported that it took more than 12 seconds to complete.Since the
payload
field in database is aLONGBLOB
, I guess the reason why the query is so slow is because the return set is too large in bytes, which takes a long time to transmit data from MySQL server to client in network.Affected Version
the version we currently use is 0.16.0. since this issue is related to database, Ii think the latest version is still affected
The text was updated successfully, but these errors were encountered: