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

fix: [cherry-pick]Save lite WatchInfo into etcd in DataNode #29751

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

XuanYang-cn
Copy link
Contributor

See also: #29689
pr: #29687

See also: milvus-io#29689
pr: milvus-io#29687

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
@sre-ci-robot sre-ci-robot added the size/S Denotes a PR that changes 10-29 lines. label Jan 8, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Jan 8, 2024
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (0c83440) 82.13% compared to head (e64ad66) 82.15%.
Report is 5 commits behind head on 2.3.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              2.3   #29751      +/-   ##
==========================================
+ Coverage   82.13%   82.15%   +0.01%     
==========================================
  Files         832      832              
  Lines      119812   119827      +15     
==========================================
+ Hits        98403    98438      +35     
+ Misses      18192    18176      -16     
+ Partials     3217     3213       -4     
Files Coverage Δ
internal/datanode/event_manager.go 77.73% <94.44%> (+1.38%) ⬆️

... and 13 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Jan 8, 2024

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

@XuanYang-cn
Copy link
Contributor Author

rerun ur

@XuanYang-cn
Copy link
Contributor Author

rerun ut

@XuanYang-cn
Copy link
Contributor Author

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Jan 9, 2024
XuanYang-cn added a commit to XuanYang-cn/milvus that referenced this pull request Jan 10, 2024
To watch a channel, datanode needs all segments info in the channel.
The segmentIDs are notified through etcd meta datapb.ChannelWatchInfo.
With the limitation of etcd meta is 2MB, the maxmaum segment number(int64)
is around 200K.

However DataNode will write full segmentInfo into etcd meta, which makes
the limitmation even lesser, approximately **4k**. There's an ongoing
pr to solve this issue: milvus-io#29751, milvus-io#29687. After these two PRs, we're
expecting a limitation of **200K** segments.

To make DataCoord&DataNode able to handle more segments, This PR
introduces a Stream rpc:

    `ListChannelSegmentInfo(ChannelSegmentInfoRequest) returns(stream SegmentInfo)`

The client would receive segmentInfo of a channel one by one, and
has no limit for segment count in theory.

See also: milvus-io#29861

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
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, XuanYang-cn

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 1128b1d into milvus-io:2.3 Jan 10, 2024
14 checks passed
@XuanYang-cn XuanYang-cn deleted the cherry-29687 branch January 10, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/bug Issues or changes related a bug lgtm size/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants