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: [2.4] Save collection targets by batches (#31616) #31632

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

congqixia
Copy link
Contributor

Cherry-pick from master
pr: #31616
See also #28491 #31240

When colleciton number is large, querycoord saves collection target one by one, which is slow and may block querycoord exits.

In local run, 500 collections scenario may lead to about 40 seconds saving collection targets.

This PR changes the SaveCollectionTarget interface into batch one and organizes the collection in 16 per bundle batches to accelerate this procedure.

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Mar 27, 2024
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

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 dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Mar 27, 2024
See also milvus-io#28491 milvus-io#31240

When colleciton number is large, querycoord saves collection target one
by one, which is slow and may block querycoord exits.

In local run, 500 collections scenario may lead to about 40 seconds
saving collection targets.

This PR changes the `SaveCollectionTarget` interface into batch one and
organizes the collection in 16 per bundle batches to accelerate this
procedure.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Copy link
Contributor

mergify bot commented Mar 27, 2024

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

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 80.70%. Comparing base (35664fa) to head (3ea26f9).
Report is 12 commits behind head on 2.4.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.4   #31632      +/-   ##
==========================================
- Coverage   80.85%   80.70%   -0.16%     
==========================================
  Files         970      970              
  Lines      137715   137761      +46     
==========================================
- Hits       111354   111175     -179     
- Misses      22647    22875     +228     
+ Partials     3714     3711       -3     
Files Coverage Δ
internal/metastore/catalog.go 100.00% <ø> (ø)
internal/metastore/kv/querycoord/kv_catalog.go 70.09% <100.00%> (+0.44%) ⬆️
internal/querycoordv2/meta/target_manager.go 87.33% <77.77%> (-0.25%) ⬇️

... and 29 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Mar 27, 2024

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

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Mar 27, 2024
@weiliu1031
Copy link
Contributor

/lgtm

@sre-ci-robot sre-ci-robot merged commit 34f2179 into milvus-io:2.4 Mar 27, 2024
14 checks passed
@congqixia congqixia deleted the cp24/31616 branch April 1, 2024 09:25
congqixia added a commit to congqixia/milvus that referenced this pull request Apr 17, 2024
See also milvus-io#31632

Release conc.Pool after usage to clean worker and stop background purge
and ticktock.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
congqixia added a commit to congqixia/milvus that referenced this pull request Apr 18, 2024
See also milvus-io#31632

Release conc.Pool after usage to clean worker and stop background purge
and ticktock.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
sre-ci-robot pushed a commit that referenced this pull request Apr 19, 2024
See also #31632

Release conc.Pool after usage to clean worker and stop background purge
and ticktock.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
congqixia added a commit to congqixia/milvus that referenced this pull request Apr 19, 2024
See also milvus-io#31632

Release conc.Pool after usage to clean worker and stop background purge
and ticktock.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
sre-ci-robot pushed a commit that referenced this pull request Apr 22, 2024
Cherry-pick from master
pr: #32358 
See also #31632

Release conc.Pool after usage to clean worker and stop background purge
and ticktock.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/test ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm sig/testing size/L Denotes a PR that changes 100-499 lines. test/integration integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants