-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: add proportion for capacity seal policy in streaming flusher #36761
Conversation
rerun ut |
6fcde7f
to
4df2764
Compare
rerun ut |
1 similar comment
rerun ut |
4df2764
to
15f5f96
Compare
Signed-off-by: chyezh <chyezh@outlook.com>
…lusher Signed-off-by: chyezh <chyezh@outlook.com>
15f5f96
to
5849b30
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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
|
@@ -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() |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
/lgtm |
[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 |
issue: #36760