Use DETAILED_METRIC_UPDATE_RATE knob to determine GetRateInfoReply lease duration
This commit is contained in:
parent
a09afe5906
commit
7594606ee2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue