-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add support of per bucket scanner report #227
base: main
Are you sure you want to change the base?
Conversation
metrics.go
Outdated
CurrentCycle uint64 `json:"current_cycle"` // Deprecated Sep 2023 | ||
CurrentStarted time.Time `json:"current_started"` // Deprecated Sep 2023 | ||
CyclesCompletedAt []time.Time `json:"cycle_complete_times"` // Deprecated Sep 2023 |
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.
Why is this deprecated?
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.
Why is this deprecated?
I didn't see this; well, since a new bucket will be scanned when there is an available disk; there is no concept of scan cycle anymore; let's discuss this futher if you want
metrics.go
Outdated
if s.CollectedAt.Before(other.CollectedAt) { | ||
// Use latest timestamp | ||
s.CollectedAt = other.CollectedAt | ||
} | ||
|
||
if s.BucketsScanInfo.OngoingBuckets < other.BucketsScanInfo.OngoingBuckets { | ||
s.BucketsScanInfo.OngoingBuckets = other.BucketsScanInfo.OngoingBuckets |
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.
So this is only being sent from the (master) server controlling the scan?
46c6477
to
31972d6
Compare
c96b346
to
112c599
Compare
Each bucket will be scanned individually, this commit will deprecate old cycle scan metrics since there is no concept of a full cycle in the upcoming per bucket scan change.
Each bucket will be scanned individually, this commit will deprecate
old cycle scan metrics since there is no concept of a full cycle in the
upcoming per bucket scan change.