Skip to content
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

enhance: Reduce memory usage of BF in DataNode and QueryNode #38129

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

bigsheeper
Copy link
Contributor

@bigsheeper bigsheeper commented Dec 2, 2024

  1. DataNode: Skip generating BF during the insert phase (BF will be regenerated during the sync phase).
  2. QueryNode: Skip generating or maintaining BF for growing segments; deletion checks will be handled in the segcore.

issue: #37630

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Dec 2, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Dec 2, 2024
Copy link
Contributor

mergify bot commented Dec 2, 2024

@bigsheeper E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 69.69697% with 10 lines in your changes missing coverage. Please review.

Project coverage is 81.10%. Comparing base (d89768f) to head (5ec2c5a).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
...nternal/flushcommon/writebuffer/l0_write_buffer.go 16.66% 10 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #38129       +/-   ##
===========================================
+ Coverage   69.71%   81.10%   +11.39%     
===========================================
  Files         299     1404     +1105     
  Lines       26768   197767   +170999     
===========================================
+ Hits        18661   160400   +141739     
- Misses       8107    31719    +23612     
- Partials        0     5648     +5648     
Components Coverage Δ
Client 79.53% <ø> (∅)
Core 69.65% <ø> (-0.06%) ⬇️
Go 83.03% <69.69%> (∅)
Files with missing lines Coverage Δ
internal/querynodev2/segments/segment.go 67.79% <100.00%> (ø)
pkg/util/paramtable/component_param.go 98.40% <100.00%> (ø)
...nternal/flushcommon/writebuffer/l0_write_buffer.go 40.47% <16.66%> (ø)

... and 1109 files with indirect coverage changes

@bigsheeper
Copy link
Contributor Author

Before:
image

After:
image

czs007 pushed a commit that referenced this pull request Dec 2, 2024
…38133)

1. DataNode: Skip generating BF during the insert phase (BF will be
regenerated during the sync phase).
2. QueryNode: Skip generating or maintaining BF for growing segments;
deletion checks will be handled in the segcore.

issue: #37630

pr: #38129

---------

Signed-off-by: bigsheeper <[email protected]>
Copy link
Contributor

mergify bot commented Dec 2, 2024

@bigsheeper E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@bigsheeper
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Dec 3, 2024

@bigsheeper E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@bigsheeper
Copy link
Contributor Author

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Dec 3, 2024
@czs007 czs007 modified the milestone: 2.5.0 Dec 17, 2024
@bigsheeper bigsheeper added the 10kcp PR related to 10k collection partitions Project label Dec 30, 2024
@mergify mergify bot removed the ci-passed label Dec 31, 2024
Copy link
Contributor

mergify bot commented Dec 31, 2024

@bigsheeper go-sdk check failed, comment rerun go-sdk can trigger the job again.

@bigsheeper
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Dec 31, 2024

@bigsheeper go-sdk check failed, comment rerun go-sdk can trigger the job again.

@bigsheeper
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Jan 1, 2025

@bigsheeper go-sdk check failed, comment rerun go-sdk can trigger the job again.

@bigsheeper
Copy link
Contributor Author

rerun go-sdk

Copy link
Contributor

mergify bot commented Jan 1, 2025

@bigsheeper go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Jan 9, 2025

@bigsheeper go-sdk check failed, comment rerun go-sdk can trigger the job again.

@czs007 czs007 self-assigned this Jan 14, 2025
@czs007
Copy link
Collaborator

czs007 commented Jan 14, 2025

/approve
/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bigsheeper, czs007

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mergify mergify bot added the ci-passed label Jan 14, 2025
@sre-ci-robot sre-ci-robot merged commit ec2e77b into milvus-io:master Jan 14, 2025
18 of 20 checks passed
sre-ci-robot pushed a commit that referenced this pull request Jan 15, 2025
…38913)

1. DataNode: Skip generating BF during the insert phase (BF will be
regenerated during the sync phase).
2. QueryNode: Skip generating or maintaining BF for growing segments;
deletion checks will be handled in the segcore.

issue: #37630

pr: #38129

---------

Signed-off-by: bigsheeper <[email protected]>
gifi-siby pushed a commit to gifi-siby/milvus that referenced this pull request Jan 16, 2025
…io#38129)

1. DataNode: Skip generating BF during the insert phase (BF will be
regenerated during the sync phase).
2. QueryNode: Skip generating or maintaining BF for growing segments;
deletion checks will be handled in the segcore.

issue: milvus-io#37630

---------

Signed-off-by: bigsheeper <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10kcp PR related to 10k collection partitions Project approved ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants