Skip to content

[cherry-pick]Add workload metric query_be_memory#35911

Merged
HappenLee merged 1 commit into
apache:branch-2.1from
wangbo:0605_pick_35662
Jun 6, 2024
Merged

[cherry-pick]Add workload metric query_be_memory#35911
HappenLee merged 1 commit into
apache:branch-2.1from
wangbo:0605_pick_35662

Conversation

@wangbo
Copy link
Copy Markdown
Contributor

@wangbo wangbo commented Jun 5, 2024

Proposed changes

pick #35662

mysql [information_schema]>select * from workload_policy;
+-------+------------------+------------------------------------+--------------+----------+---------+---------+----------------+
| ID | NAME | CONDITION | ACTION | PRIORITY | ENABLED | VERSION | WORKLOAD_GROUP |
+-------+------------------+------------------------------------+--------------+----------+---------+---------+----------------+
| 11020 | cancel_query_mem | query_be_memory_bytes >= 524288000 | cancel_query | 0 | 0 | 1 | |
+-------+------------------+------------------------------------+--------------+----------+---------+---------+----------------+
1 row in set (0.01 sec)

{
"TxnId": 2,
"Label": "hits",
"Comment": "",
"TwoPhaseCommit": "false",
"Status": "Fail",
"Message": "[INTERNAL_ERROR]cancelled: query 1e483ee97b04d9ec-5bdd0aa1b40ab799 cancelled by workload policy: cancel_query_mem, id:11020",
"NumberTotalRows": 463296,
"NumberLoadedRows": 463296,
"NumberFilteredRows": 0,
"NumberUnselectedRows": 0,
"LoadBytes": 398295040,
"LoadTimeMs": 130281,
"BeginTxnTimeMs": 16,
"StreamLoadPutTimeMs": 190,
"ReadDataTimeMs": 3349,
"WriteDataTimeMs": 3480,
"CommitAndPublishTimeMs": 0
}

I20240605 15:13:37.930701 3512264 query_context.cpp:122] Query 1e483ee97b04d9ec-5bdd0aa1b40ab799 deconstructed, , deregister query/load memory tracker, queryId=1e483ee97b04d9ec-5bdd0aa1b40ab799, Limit=2.00 GB, CurrUsed=460.71 MB, PeakUsed=551.86 MB

@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2024

clang-tidy review says "All clean, LGTM! 👍"

@HappenLee HappenLee merged commit 5cecbfc into apache:branch-2.1 Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants