-
Notifications
You must be signed in to change notification settings - Fork 871
[R2] CommitLag Metric + Follower State #14725
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
[R2] CommitLag Metric + Follower State #14725
Conversation
…ature/replication-2.0-commit-lag-follower-state
…0-commit-lag-follower-state
…2.0-commit-lag-follower-state
… feature/replication-2.0-commit-lag-follower-state
| } | ||
| }); |
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.
| } | |
| }); | |
| } | |
| }); |
| }; | ||
| struct FollowerStatistics : LogStatistics { | ||
| AppendEntriesErrorReason lastErrorReason; | ||
| double lastRequestLatencyMS; |
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.
How about we make this a std::chrono::duration<double, std::milli>?
|
|
||
| struct UpToDate {}; | ||
| struct ErrorBackoff { | ||
| double durationMS; |
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.
How about we make this a std::chrono::duration<double, std::milli>?
| std::size_t retryCount; | ||
| }; | ||
| struct RequestInFlight { | ||
| double durationMS; |
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.
How about we make this a std::chrono::duration<double, std::milli>?
| LogTerm term; | ||
| std::unordered_map<ParticipantId, FollowerStatistics> follower; | ||
| // now() - insertTP of last uncommitted entry | ||
| double commitLagMS; |
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.
How about we make this a std::chrono::duration<double, std::milli>?
Scope & Purpose
Add two new metrics to the log status:
up-to-date,error-backoff(including retryCount and time until retry),request-in-flight(including time passed since request was sent)