Add metrics for batch pending max elapse time#6829
Closed
turboFei wants to merge 7 commits intoapache:masterfrom
turboFei:batch_pending_time
Closed
Add metrics for batch pending max elapse time#6829turboFei wants to merge 7 commits intoapache:masterfrom turboFei:batch_pending_time
turboFei wants to merge 7 commits intoapache:masterfrom
turboFei:batch_pending_time
Conversation
pan3793
reviewed
Dec 2, 2024
| requestName = batchName, | ||
| createTime = createTime, | ||
| createTime = createTimeFilter, | ||
| endTime = endTime) |
Member
There was a problem hiding this comment.
not related to this PR, but createTime and endTime are confusing, should be minCreateTime and maxEndTime, and say if they are inclusive or exclusive in the comments, with an explanation for specific values
Member
There was a problem hiding this comment.
update: the predication name might be more intuitive if we use greatThanXXX lessThanOrEqualsXXX
Member
Author
There was a problem hiding this comment.
Will address it in another PR
pan3793
reviewed
Dec 2, 2024
pan3793
reviewed
Dec 2, 2024
Member
Author
|
thanks for the comments, will address it today |
pan3793
reviewed
Dec 3, 2024
pan3793
approved these changes
Dec 5, 2024
pan3793
pushed a commit
that referenced
this pull request
Dec 5, 2024
### Why are the changes needed? 1. add metrics `kyuubi.operartion.batch_pending_max_elapse` for the batch pending max elapse time, which is helpful for batch health monitoring, and we can send alert if the batch pending elapse time too long 2. For `GET /api/v1/batches` api, limit the max time window for listing batches, which is helpful that, we want to reserve more metadata in kyuubi server end, for example: 90 days, but for list batches, we just want to allow user to search the last 7 days. It is optional. And if `create_time` is specified, order by `create_time` instead of `key_id`. https://github.com/apache/kyuubi/blob/68a6f48da53dd0ad2e20b450a41ca600b8c1e1d2/kyuubi-server/src/main/resources/sql/mysql/metadata-store-schema-1.8.0.mysql.sql#L32 ### How was this patch tested? GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #6829 from turboFei/batch_pending_time. Closes #6829 ee4f931 [Wang, Fei] docs bf8169a [Wang, Fei] comments f493a2a [Wang, Fei] new config ab7b6db [Wang, Fei] ut 1680175 [Wang, Fei] in memory session 510a30b [Wang, Fei] batchSearchWindow opt 1e93dd2 [Wang, Fei] save Authored-by: Wang, Fei <fwang12@ebay.com> Signed-off-by: Cheng Pan <chengpan@apache.org> (cherry picked from commit 3167692) Signed-off-by: Cheng Pan <chengpan@apache.org>
Member
|
Thanks, merged to master/1.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are the changes needed?
kyuubi.operartion.batch_pending_max_elapsefor the batch pending max elapse time, which is helpful for batch health monitoring, and we can send alert if the batch pending elapse time too longGET /api/v1/batchesapi, limit the max time window for listing batches, which is helpful that, we want to reserve more metadata in kyuubi server end, for example: 90 days, but for list batches, we just want to allow user to search the last 7 days. It is optional. And ifcreate_timeis specified, order bycreate_timeinstead ofkey_id.kyuubi/kyuubi-server/src/main/resources/sql/mysql/metadata-store-schema-1.8.0.mysql.sql
Line 32 in 68a6f48
How was this patch tested?
GA.
Was this patch authored or co-authored using generative AI tooling?
No.