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: Enable node assign policy on resource group (#36968) #37588

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

weiliu1031
Copy link
Contributor

issue: #36977
pr: #36968
with node_label_filter on resource group, user can add label on querynode with env MILVUS_COMPONENT_LABEL, then resource group will prefer to accept node which match it's node_label_filter.

then querynode's can't be group by labels, and put querynodes with same label to same resource groups.

@sre-ci-robot sre-ci-robot added size/XL Denotes a PR that changes 500-999 lines. area/dependency Pull requests that update a dependency file labels Nov 11, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 93.68421% with 12 lines in your changes missing coverage. Please review.

Project coverage is 80.61%. Comparing base (25c9699) to head (8802e75).
Report is 4 commits behind head on 2.4.

Files with missing lines Patch % Lines
internal/querycoordv2/meta/resource_manager.go 92.13% 5 Missing and 2 partials ⚠️
internal/querycoordv2/meta/resource_group.go 93.58% 3 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.4   #37588      +/-   ##
==========================================
+ Coverage   79.65%   80.61%   +0.95%     
==========================================
  Files        1069     1069              
  Lines      166729   166812      +83     
==========================================
+ Hits       132816   134472    +1656     
+ Misses      29507    27932    -1575     
- Partials     4406     4408       +2     
Files with missing lines Coverage Δ
internal/querycoordv2/server.go 81.88% <100.00%> (+0.05%) ⬆️
internal/querycoordv2/session/node_manager.go 100.00% <100.00%> (ø)
internal/util/sessionutil/session_util.go 76.34% <100.00%> (+0.51%) ⬆️
internal/querycoordv2/meta/resource_group.go 96.79% <93.58%> (-3.21%) ⬇️
internal/querycoordv2/meta/resource_manager.go 82.19% <92.13%> (+0.93%) ⬆️

... and 100 files with indirect coverage changes

issue: milvus-io#36977
with node_label_filter on resource group, user can add label on
querynode with env `MILVUS_COMPONENT_LABEL`, then resource group will
prefer to accept node which match it's node_label_filter.

then querynode's can't be group by labels, and put querynodes with same
label to same resource groups.

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
Signed-off-by: Wei Liu <wei.liu@zilliz.com>
@sre-ci-robot sre-ci-robot added size/XXL Denotes a PR that changes 1000+ lines. and removed size/XL Denotes a PR that changes 500-999 lines. labels Nov 11, 2024
@weiliu1031
Copy link
Contributor Author

rerun ut

@mergify mergify bot added the ci-passed label Nov 12, 2024
@chyezh
Copy link
Contributor

chyezh commented Nov 13, 2024

/lgtm

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.

/approve

@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 6dc879b into milvus-io:2.4 Nov 13, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/dependency Pull requests that update a dependency file ci-passed dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement lgtm size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants