This commit is contained in:
XiaoxiWang 2020-08-21 05:06:13 +00:00
parent 9398a78a3a
commit 1f134d1534
2 changed files with 10 additions and 10 deletions

View File

@ -1213,8 +1213,8 @@ void updateRate(RatekeeperData* self, RatekeeperLimits* limits) {
.detail("WorstStorageServerDurabilityLag", worstDurabilityLag) .detail("WorstStorageServerDurabilityLag", worstDurabilityLag)
.detail("LimitingStorageServerDurabilityLag", limitingDurabilityLag) .detail("LimitingStorageServerDurabilityLag", limitingDurabilityLag)
.detail("TagsAutoThrottled", self->throttledTags.autoThrottleCount()) .detail("TagsAutoThrottled", self->throttledTags.autoThrottleCount())
.detail("TagsAutoThrottledBusyRead", self->throttledTags.busyReadTagCount) .detail("TagsAutoThrottledBusyRead", self->throttledTags.busyReadTagCount)
.detail("TagsAutoThrottledBusyWrite", self->throttledTags.busyWriteTagCount) .detail("TagsAutoThrottledBusyWrite", self->throttledTags.busyWriteTagCount)
.detail("TagsManuallyThrottled", self->throttledTags.manualThrottleCount()) .detail("TagsManuallyThrottled", self->throttledTags.manualThrottleCount())
.detail("AutoThrottlingEnabled", self->autoThrottlingEnabled) .detail("AutoThrottlingEnabled", self->autoThrottlingEnabled)
.trackLatest(name); .trackLatest(name);

View File

@ -1784,22 +1784,22 @@ ACTOR static Future<JsonBuilderObject> workloadStatusFetcher(Reference<AsyncVar<
JsonBuilderObject throttledTagsObj; JsonBuilderObject throttledTagsObj;
JsonBuilderObject autoThrottledTagsObj, recommendThrottleTagsObj; JsonBuilderObject autoThrottledTagsObj, recommendThrottleTagsObj;
if(autoThrottlingEnabled) { if(autoThrottlingEnabled) {
autoThrottledTagsObj["count"] = autoThrottledTags; autoThrottledTagsObj["count"] = autoThrottledTags;
autoThrottledTagsObj["busy_read"] = autoThrottledTagsBusyRead; autoThrottledTagsObj["busy_read"] = autoThrottledTagsBusyRead;
autoThrottledTagsObj["busy_write"] = autoThrottledTagsBusyWrite; autoThrottledTagsObj["busy_write"] = autoThrottledTagsBusyWrite;
recommendThrottleTagsObj["count"] = 0; recommendThrottleTagsObj["count"] = 0;
recommendThrottleTagsObj["busy_read"] = 0; recommendThrottleTagsObj["busy_read"] = 0;
recommendThrottleTagsObj["busy_write"] = 0; recommendThrottleTagsObj["busy_write"] = 0;
} }
else { else {
recommendThrottleTagsObj["count"] = autoThrottledTags; recommendThrottleTagsObj["count"] = autoThrottledTags;
recommendThrottleTagsObj["busy_read"] = autoThrottledTagsBusyRead; recommendThrottleTagsObj["busy_read"] = autoThrottledTagsBusyRead;
recommendThrottleTagsObj["busy_write"] = autoThrottledTagsBusyWrite; recommendThrottleTagsObj["busy_write"] = autoThrottledTagsBusyWrite;
autoThrottledTagsObj["count"] = 0; autoThrottledTagsObj["count"] = 0;
autoThrottledTagsObj["busy_read"] = 0; autoThrottledTagsObj["busy_read"] = 0;
autoThrottledTagsObj["busy_write"] = 0; autoThrottledTagsObj["busy_write"] = 0;
} }
throttledTagsObj["auto"] = autoThrottledTagsObj; throttledTagsObj["auto"] = autoThrottledTagsObj;