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 mutex contention in datacoord meta #38219

Merged
merged 13 commits into from
Jan 14, 2025

Conversation

bigsheeper
Copy link
Contributor

  1. Using secondary index to avoid retrieving all segments at GetSegmentsChanPart.
  2. Perform batch SetAllocations to reduce the number of times the meta lock is acquired.

issue: #37630

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

mergify bot commented Dec 4, 2024

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

Copy link
Contributor

mergify bot commented Dec 4, 2024

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

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.13%. Comparing base (d89768f) to head (faa9d9c).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #38219       +/-   ##
===========================================
+ Coverage   69.71%   81.13%   +11.41%     
===========================================
  Files         299     1404     +1105     
  Lines       26768   197748   +170980     
===========================================
+ Hits        18661   160436   +141775     
- Misses       8107    31676    +23569     
- Partials        0     5636     +5636     
Components Coverage Δ
Client 79.53% <ø> (∅)
Core 69.65% <ø> (-0.06%) ⬇️
Go 83.06% <100.00%> (∅)
Files with missing lines Coverage Δ
internal/datacoord/compaction_policy_clustering.go 75.48% <100.00%> (ø)
internal/datacoord/compaction_policy_single.go 61.00% <100.00%> (ø)
internal/datacoord/compaction_trigger.go 85.53% <100.00%> (ø)
internal/datacoord/meta.go 89.66% <100.00%> (ø)
internal/datacoord/segment_info.go 84.72% <100.00%> (ø)

... and 1107 files with indirect coverage changes

@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. and removed size/M Denotes a PR that changes 30-99 lines. labels Dec 5, 2024
czs007 pushed a commit that referenced this pull request Dec 5, 2024
1. Using secondary index to avoid retrieving all segments at
GetSegmentsChanPart.
2. Perform batch SetAllocations to reduce the number of times the meta
lock is acquired.

issue: #37630

pr: #38219

---------

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

mergify bot commented Dec 5, 2024

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

Copy link
Contributor

mergify bot commented Dec 5, 2024

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

@mergify mergify bot added the ci-passed label Dec 5, 2024
Signed-off-by: bigsheeper <[email protected]>
@mergify mergify bot removed the ci-passed label Dec 13, 2024
Copy link
Contributor

mergify bot commented Dec 13, 2024

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

Copy link
Contributor

mergify bot commented Dec 17, 2024

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

@bigsheeper
Copy link
Contributor Author

rerun go-sdk

@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

@mergify mergify bot added the ci-passed label Jan 1, 2025
@xiaofan-luan
Copy link
Collaborator

/lgtm
/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bigsheeper, xiaofan-luan

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

sre-ci-robot pushed a commit that referenced this pull request Jan 14, 2025
1. Using secondary index to avoid retrieving all segments at
GetSegmentsChanPart.
2. Perform batch SetAllocations to reduce the number of times the meta
lock is acquired.

issue: #37630

pr: #38219

---------

Signed-off-by: bigsheeper <[email protected]>
@mergify mergify bot added the ci-passed label Jan 14, 2025
@sre-ci-robot sre-ci-robot merged commit 272d95a into milvus-io:master Jan 14, 2025
19 of 20 checks passed
gifi-siby pushed a commit to gifi-siby/milvus that referenced this pull request Jan 16, 2025
1. Using secondary index to avoid retrieving all segments at
`GetSegmentsChanPart`.
2. Perform batch SetAllocations to reduce the number of times the meta
lock is acquired.

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/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants