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

Ceph Stats #8

Merged
merged 4 commits into from
Dec 4, 2024
Merged

Ceph Stats #8

merged 4 commits into from
Dec 4, 2024

Conversation

shutstart
Copy link
Collaborator

This commit adds the ceph status service which runs the "ceph status" command and returns its output.

@shutstart shutstart requested a review from arttor December 2, 2024 10:25
@shutstart shutstart self-assigned this Dec 2, 2024
int32 election_epoch = 3;
repeated int32 quorum = 4;
repeated string quorum_names = 5;
int32 quorum_age = 6;
Copy link
Collaborator

Choose a reason for hiding this comment

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

so in this context epoch and age is not time but some internal ceph sequence, right? And we cannot convert it to timestamps?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

election epoch is a sequence used to track the number of elections that have occured, and quorum age is the number of seconds passed since the quroum has been stable both can be represented as integer, not sure weather quorums can be stable for more than the upper limit of int32 in go....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to be on the safe side we can just upgrade all int32 variables to int64?

@shutstart shutstart merged commit a3d6439 into main Dec 4, 2024
1 check passed
@shutstart shutstart mentioned this pull request Dec 4, 2024
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.

2 participants