-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-16023: CNDB-15260: Add SAI-specific execution info to slow query logger #2129
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
Conversation
Checklist before you submit for review
|
270faac to
3f621fb
Compare
|
adelapena
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I see that the properties SLOW_QUERY_LOG_MONITORING_REPORT_INTERVAL_IN_MS and SLOW_QUERY_LOG_MONITORING_MAX_OPERATIONS haven't been added because they already existed in 5.0 as MONITORING_REPORT_INTERVAL_MS and MONITORING_MAX_OPERATIONS, which is fine. Probably we should rename them in CC main to adopt the 5.0 form. I'll do that in CNDB-16237.
… logger (#2044) Adds the metrics in IndexContext and the tree view of the query's Plan to the log messages produced for slow SAI queries. There is a new system property named cassandra.sai.slow_query_log.execution_info_enabled to toggle this feature, which is enabled by default. This property can be changed dynamically at any time, without a restart. When SAI-specific information is added to the slow query logger, the log messages for slow queries can take up almost 10x the (uncompressed) disk space. In the worst of the worst cases, with all queries being permanently slower than 500ms, and at least 50 different queries, reporting every 5 seconds (the default), the slow query logger can produce around 120MB of text per day and instance. With the detailed logging, it would be 1.14GB per day.
3f621fb to
2a3a5e1
Compare
The agreement is to avoid unnecessary refactorings in CC. Such changes should be made upstream rather than in CC. |
Probably unnecessary refactorings should be avoided everywhere :) This is the other way around, changing the name of the properties in CC to adapt to ASF/CC5. |
❌ Build ds-cassandra-pr-gate/PR-2129 rejected by Butler7 regressions found Found 7 new test failuresFound 1 known test failures |



https://github.com/riptano/cndb/issues/16023
Port into main-5.0 commit 27689d3
BLOCKED on https://github.com/riptano/cndb/issues/16021