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

Add support of per bucket scanner report #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vadmeste
Copy link
Member

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.

metrics.go Outdated
Comment on lines 236 to 238
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
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this deprecated?

Copy link
Member Author

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
Copy link
Contributor

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?

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants