Use DETAILED_METRIC_UPDATE_RATE knob to determine GetRateInfoReply lease duration

This commit is contained in:
Trevor Clinkenbeard 2019-02-20 11:40:17 -08:00
parent a09afe5906
commit 7594606ee2
1 changed files with 1 additions and 1 deletions

View File

@ -577,7 +577,7 @@ ACTOR Future<Void> rateKeeper(
reply.transactionRate = self.TPSLimit / self.proxy_transactionCountAndTime.size();
reply.leaseDuration = SERVER_KNOBS->METRIC_UPDATE_RATE;
reply.detailedLeaseDuration = 5.0; // knob
reply.detailedLeaseDuration = SERVER_KNOBS->DETAILED_METRIC_UPDATE_RATE;
reply.healthMetrics.update(self.healthMetrics, false, false);
reply.healthMetrics.tpsLimit = self.TPSLimit;