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: add proportion for capacity seal policy in streaming flusher #36761

Merged

Conversation

chyezh
Copy link
Contributor

@chyezh chyezh commented Oct 11, 2024

issue: #36760

@sre-ci-robot sre-ci-robot added the size/XS Denotes a PR that changes 0-9 lines. label Oct 11, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Oct 11, 2024
@sre-ci-robot sre-ci-robot added size/L Denotes a PR that changes 100-499 lines. and removed size/XS Denotes a PR that changes 0-9 lines. labels Oct 11, 2024
@chyezh
Copy link
Contributor Author

chyezh commented Oct 11, 2024

rerun ut

@chyezh chyezh force-pushed the fix_add_growing_size_ratio_for_flush branch from 6fcde7f to 4df2764 Compare October 12, 2024 03:17
@chyezh
Copy link
Contributor Author

chyezh commented Oct 12, 2024

rerun ut

1 similar comment
@chyezh
Copy link
Contributor Author

chyezh commented Oct 12, 2024

rerun ut

@chyezh chyezh force-pushed the fix_add_growing_size_ratio_for_flush branch from 4df2764 to 15f5f96 Compare October 13, 2024 13:27
Signed-off-by: chyezh <chyezh@outlook.com>
…lusher

Signed-off-by: chyezh <chyezh@outlook.com>
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 90.24390% with 4 lines in your changes missing coverage. Please review.

Project coverage is 81.48%. Comparing base (3a09b43) to head (5849b30).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
internal/flushcommon/writebuffer/write_buffer.go 88.88% 1 Missing and 1 partial ⚠️
...ode/server/flusher/flusherimpl/channel_lifetime.go 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #36761      +/-   ##
==========================================
+ Coverage   72.47%   81.48%   +9.01%     
==========================================
  Files        1308     1308              
  Lines      155968   155986      +18     
==========================================
+ Hits       113036   127108   +14072     
+ Misses      37822    23759   -14063     
- Partials     5110     5119       +9     
Files with missing lines Coverage Δ
internal/flushcommon/pipeline/data_sync_service.go 76.02% <100.00%> (+0.12%) ⬆️
internal/flushcommon/writebuffer/options.go 68.57% <100.00%> (+2.94%) ⬆️
...eptors/segment/policy/segment_limitation_policy.go 89.47% <100.00%> (+1.23%) ⬆️
...ode/server/wal/interceptors/segment/stats/stats.go 100.00% <100.00%> (ø)
...er/wal/interceptors/segment/stats/stats_manager.go 82.65% <100.00%> (ø)
internal/flushcommon/writebuffer/write_buffer.go 77.19% <88.88%> (+0.75%) ⬆️
...ode/server/flusher/flusherimpl/channel_lifetime.go 73.52% <75.00%> (-0.25%) ⬇️

... and 243 files with indirect coverage changes

@@ -46,13 +47,15 @@ func (p jitterSegmentLimitationPolicy) GenerateLimitation() SegmentLimitation {
jitterRatio = 1
}
maxSegmentSize := uint64(paramtable.Get().DataCoordCfg.SegmentMaxSize.GetAsInt64() * 1024 * 1024)
segmentSize := uint64(jitterRatio * float64(maxSegmentSize))
proportion := paramtable.Get().DataCoordCfg.SegmentSealProportion.GetAsFloat()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add proportion configuration here.

// It's an async update operation, so it's not necessary to do success.
func (m *StatsManager) UpdateOnFlush(segmentID int64, flush FlushOperationMetrics) {
func (m *StatsManager) UpdateOnSync(segmentID int64, syncMetric SyncOperationMetrics) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

update binglog count when syncmgr make syncing.

@jaime0815
Copy link
Contributor

/lgtm

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: chyezh

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 8905b04 into milvus-io:master Oct 14, 2024
16 checks passed
@chyezh chyezh deleted the fix_add_growing_size_ratio_for_flush branch October 14, 2024 06:55
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/L Denotes a PR that changes 100-499 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants