-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feature](workloadgroup)Add workload condition query used memory #35662
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
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
|
the metric name should be consistent with other metrics in be, for example: So that I think the name should be be_memory_used_bytes, |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
e1141a8 to
d2071e7
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
d2071e7 to
803cc82
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 40410 ms |
TPC-DS: Total hot run time: 172146 ms |
ClickBench: Total hot run time: 30.84 s |
mrhhsg
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.
LGTM
xinyiZzz
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
) ## Proposed changes Add workload condition query used memory, we can kill queries based on memory usage. 1 create a policy which can kill query used memory exceeds 100M. ``` create workload policy memory_used_policy conditions(query_be_memory_bytes > 104857600) actions(cancel_query); ``` 2 submit a query. ``` mysql [hits]>insert into hits2 select * from hits; ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INTERNAL_ERROR]query 81c39e2b3ecf461c-bc78ad6d9b6173d2 cancelled by workload policy memory_used_policy, id:29028 ```
…che#35662) ## Proposed changes Add workload condition query used memory, we can kill queries based on memory usage. 1 create a policy which can kill query used memory exceeds 100M. ``` create workload policy memory_used_policy conditions(query_be_memory_bytes > 104857600) actions(cancel_query); ``` 2 submit a query. ``` mysql [hits]>insert into hits2 select * from hits; ERROR 1105 (HY000): errCode = 2, detailMessage = (10.16.10.8)[INTERNAL_ERROR]query 81c39e2b3ecf461c-bc78ad6d9b6173d2 cancelled by workload policy memory_used_policy, id:29028 ```
Add workload metric query_be_memory_bytes apache/doris#35662
Proposed changes
Add workload condition query used memory, we can kill queries based on memory usage.
1 create a policy which can kill query used memory exceeds 100M.
2 submit a query.