-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[feature](cloud) Add table-level event-driven warm up #63832
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
Open
bobhan1
wants to merge
7
commits into
apache:master
Choose a base branch
from
bobhan1:pick-table-level-warmup
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e724d55
[feature](cloud) Add table-level event-driven warm up
bobhan1 d3233b7
branch-selectdb-doris-3.1: [Fix](regression) Fix some unstable cases …
bobhan1 da5a8b8
[fix](cloud) Fix warm up manager test invocation
bobhan1 4864a5c
[fix](cloud) Relax warm-up table filter perf thresholds
bobhan1 44f6b85
[fix](cloud) Relax many-rule warm-up filter perf threshold
bobhan1 40f2522
[fix](cloud) Add table id to warm-up rowset failure
bobhan1 e9ef9da
[test](fe) Relax 500K table filter perf threshold
bobhan1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
is there any memory issues if there are many jobs.
how does bvar implement "windows", does it recored every smaples of the adder every second?
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.
what does "ed" mean?
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.
I checked the bvar implementation again.
bvar::Windowdoes not record every update written to theAdder. Forbvar::Adder, the underlying sampler samples the cumulative adder value roughly once per second, and the window value is calculated from the difference between the latest sampled cumulative value and the oldest sampled cumulative value in the requested window.The 5m/30m/1h windows created for the same
Adderalso share the same underlying sampler. The sampler queue is sized by the largest window, so here it keeps about3600 + 1samples, not300 + 1800 + 3600samples and not one sample per warm-up event.Rough estimate:
Sample<int64_t>storesdataandtime_us, so it is about 16 bytes.(3600 + 1) * 16 ~= 56KB.4 * 56KB ~= 224KB/jobfor sampler queues.8 * 56KB ~= 448KB/jobfor sampler queues.(4 + 8) * 56KB ~= 672KB/job, plus small object/map/string overhead.So this is proportional to the number of job_id dimensions seen by a BE process, not proportional to the number of rowsets/segments/events. The overall memory usage should be small for the expected number of warm-up jobs. This state is also BE-process-local memory only; it is not persisted and will be released after BE restart.