Uh oh!
There was an error while loading. Please reload this page.
[feature](workloadgroup)Add workload condition query used memory - #35662
Conversation
doris-robot
commented
May 30, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
wangbo
commented
May 30, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
May 30, 2024
TeamCity be ut coverage result: |
yiguolei
commented
Jun 3, 2024
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
d2071e7Compareyiguolei
commented
Jun 3, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
wangbo
commented
Jun 3, 2024
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Jun 3, 2024
TeamCity be ut coverage result: |
doris-robot
commented
Jun 3, 2024
TPC-H: Total hot run time: 40410 ms |
doris-robot
commented
Jun 3, 2024
TPC-DS: Total hot run time: 172146 ms |
doris-robot
commented
Jun 3, 2024
ClickBench: Total hot run time: 30.84 s |
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
…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 ```
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.