-
Notifications
You must be signed in to change notification settings - Fork 564
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
only give counter resource to tablets that never had normal metrics #4763
Conversation
⚪
|
⚪
|
@@ -395,6 +395,9 @@ class TMaximumValueVariableWindowUI64 : public NKikimrMetricsProto::TMaximumValu | |||
using TProto = NKikimrMetricsProto::TMaximumValueUI64; | |||
|
|||
void SetValue(TType value, TInstant now = TInstant::Now()) { | |||
if (TProto::GetAllTimeMaximum() > 0 || MaximumValue > 0) { // ignoring initial value |
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 don't you put it into the end of the function?
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.
it's easier to make this check before we update MaximumValue
i want to ignore the initial value because it is set by hive, not actually reported by the tablet
⚪
|
⚪
|
Changelog entry
only give counter resource to tablets that never had normal metrics
Changelog category
Additional information
Counter-balancing was introduced with columnshards in mind and may be undesirable for other tablets.