Skip to content

Commit

Permalink
Merge pull request #32189 from vespa-engine/vekterli/avoid-per-tick-m…
Browse files Browse the repository at this point in the history
…etric-update-for-cc-failovers

Always set CC metric update cycle counter after update
  • Loading branch information
vekterli authored Aug 20, 2024
2 parents b9fb52d + d126aa8 commit c530366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,12 @@ private boolean maybePublishOldMetrics() {
metricUpdater.updateClusterStateMetrics(cluster, baselineState,
ResourceUsageStats.calculateFrom(cluster.getNodeInfos(), options.clusterFeedBlockLimit(), stateBundle.getFeedBlock()),
systemStateBroadcaster.getLastStateBroadcastTimePoint());
lastMetricUpdateCycleCount = cycleCount;
} else {
// If we're not the master we don't have any authoritative information about
// how out of sync the cluster nodes are, so reset the metric.
metricUpdater.updateClusterBucketsOutOfSyncRatio(0);
}
lastMetricUpdateCycleCount = cycleCount;
return true;
} else {
return false;
Expand Down

0 comments on commit c530366

Please sign in to comment.