Junyewu opened a new pull request, #65574:
URL: https://github.com/apache/doris/pull/65574
### What problem does this PR solve?
Issue Number: close N/A
Related PR: N/A
Problem Summary: Current version of Doris only records the queryId and its
resource consumption information in audit-log. When a BE node experiences a
read/write high load failure, it is impossible to directly correlate and
analyze which queryId is related from the exposed indicators/logs, and can only
vaguely extract, guess and handle the problem
### Release note
Add query-level BE metrics persistence and automatically create the
`query_be_metrics` internal table for historical query analysis.
### Check List (For Author)
- Test
- Built FE with `sh build.sh --fe` :Passed
- No dedicated FE unit tests were added or run for this change.
- Manually verified automatic creation of the `query_be_metrics` table
- Manually verified metrics persistence when the feature is enabled
- Manually verified behavior when the feature is disabled
- Behavior changed:
- Collects query-level BE runtime metrics.
- Persists the metrics for subsequent analysis.
- Create the internal table automatically during initialization.
- Add configuration options for enabling and controlling persistence.
- Extend audit events with query-level BE metrics context.
- Does this need documentation?
- No. This change does not introduce a user-facing interface or require
additional user documentation.
### Target branch
This PR targets `branch-3.0` as requested.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]