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: Speed up target recovery after query coord restart (#31240) #31449

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

weiliu1031
Copy link
Contributor

issue: #28491
pr: #31240

after querycoord restart, it will pull a new target, which include channel and segment list. when segments loaded on querynode has reached the target, the collection could provide search/query. but if segment list changes by time, ater querycoord pull a new target, it will takes a few minutes to catch up the target's segment distribution. and before that, query/search will fail due to lack of segments.

This PR save the current loaded target to meta storein querycoord's stop progress, and recover it when query coord starts, to speed up the target recovery time.


@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Mar 20, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Mar 20, 2024
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

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

Project coverage is 82.26%. Comparing base (52a7eb9) to head (05e0899).
Report is 7 commits behind head on 2.3.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.3   #31449      +/-   ##
==========================================
+ Coverage   82.22%   82.26%   +0.04%     
==========================================
  Files         844      844              
  Lines      122291   122550     +259     
==========================================
+ Hits       100549   100816     +267     
+ Misses      18507    18490      -17     
- Partials     3235     3244       +9     
Files Coverage Δ
internal/metastore/catalog.go 100.00% <ø> (ø)
internal/querycoordv2/meta/target_manager.go 87.35% <100.00%> (+2.84%) ⬆️
internal/querycoordv2/meta/target.go 93.87% <95.52%> (+3.55%) ⬆️
internal/querycoordv2/server.go 81.29% <57.14%> (-0.46%) ⬇️
internal/metastore/kv/querycoord/kv_catalog.go 69.65% <88.23%> (+3.78%) ⬆️

... and 36 files with indirect coverage changes

@mergify mergify bot added the ci-passed label Mar 20, 2024
…o#31240)

issue: milvus-io#28491

after querycoord restart, it will pull a new target, which include
channel and segment list. when segments loaded on querynode has reached
the target, the collection could provide search/query. but if segment
list changes by time, ater querycoord pull a new target, it will takes a
few minutes to catch up the target's segment distribution. and before
that, query/search will fail due to lack of segments.

This PR save the current loaded target to meta storein querycoord's stop
progress, and recover it when query coord starts, to speed up the target
recovery time.

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
@weiliu1031
Copy link
Contributor Author

rerun ut

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

@congqixia congqixia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia, weiliu1031

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 sre-ci-robot merged commit 0bf595a into milvus-io:2.3 Mar 22, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/internal-api 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