-
Notifications
You must be signed in to change notification settings - Fork 671
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
replication: change metrics API #1833
Conversation
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.
Few comments
@poornas Instead of trying to do many small corrections here is my proposal: // XferStats holds transfer rate for uploads
type XferStats struct {
// Totals
Count int64 `json:"count"`
Bytes int64 `json:"bytes"`
// Averages - 1 minute?
AvgBytes float64 `json:"avgBytes"`
PeakBytes float64 `json:"peakBytes"`
CurrBytes float64 `json:"currBytes"`
AvgCount float64 `json:"avgCount"`
PeakCount float64 `json:"peakCount"`
CurrCount float64 `json:"currCount"`
}
type NodeQueueStats struct {
Name string `json:"name"`
Uptime int64 `json:"uptime"`
ActiveWorkers int `json:"activeWorkers"`
QueuedCount int `json:"queuedCount"`
QueuedBytes int64 `json:"queuedBytes"`
// Transfer statistics For objects larger/smaller than XXXKB.
Large XferStats `json:"large"`
Small XferStats `json:"small"`
}
type QueueStats struct {
Nodes []NodeQueueStats `json:"nodes"`
}
Still needs more docs. |
for additional info to be passed back.
Thanks @klauspost , adopted some of the suggestions - the xfer stats refer to rate/sec and different from the in-queue stats, so kept it separate. |
(also some |
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.
LGTM
@poornas PTAL |
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.
Few comments
continuing from minio#1833
continuing from minio#1833
for additional info to be passed back.