Update tag throttle count status fields
This commit is contained in:
parent
e0526e0095
commit
bc0873adf0
|
@ -1712,8 +1712,8 @@ ACTOR static Future<JsonBuilderObject> workloadStatusFetcher(Reference<AsyncVar<
|
||||||
double batchTpsLimit = batchRatekeeper.getDouble("TPSLimit");
|
double batchTpsLimit = batchRatekeeper.getDouble("TPSLimit");
|
||||||
double transPerSec = ratekeeper.getDouble("ReleasedTPS");
|
double transPerSec = ratekeeper.getDouble("ReleasedTPS");
|
||||||
double batchTransPerSec = ratekeeper.getDouble("ReleasedBatchTPS");
|
double batchTransPerSec = ratekeeper.getDouble("ReleasedBatchTPS");
|
||||||
int throttledTags = ratekeeper.getInt("TagsThrottled");
|
int autoThrottledTags = ratekeeper.getInt("TagsAutoThrottled");
|
||||||
int batchThrottledTags = batchRatekeeper.getInt("TagsThrottled");
|
int manualThrottledTags = ratekeeper.getInt("TagsManuallyThrottled");
|
||||||
int ssCount = ratekeeper.getInt("StorageServers");
|
int ssCount = ratekeeper.getInt("StorageServers");
|
||||||
int tlogCount = ratekeeper.getInt("TLogs");
|
int tlogCount = ratekeeper.getInt("TLogs");
|
||||||
int64_t worstFreeSpaceStorageServer = ratekeeper.getInt64("WorstFreeSpaceStorageServer");
|
int64_t worstFreeSpaceStorageServer = ratekeeper.getInt64("WorstFreeSpaceStorageServer");
|
||||||
|
@ -1744,8 +1744,17 @@ ACTOR static Future<JsonBuilderObject> workloadStatusFetcher(Reference<AsyncVar<
|
||||||
(*qos)["batch_transactions_per_second_limit"] = batchTpsLimit;
|
(*qos)["batch_transactions_per_second_limit"] = batchTpsLimit;
|
||||||
(*qos)["released_transactions_per_second"] = transPerSec;
|
(*qos)["released_transactions_per_second"] = transPerSec;
|
||||||
(*qos)["batch_released_transactions_per_second"] = batchTransPerSec;
|
(*qos)["batch_released_transactions_per_second"] = batchTransPerSec;
|
||||||
(*qos)["tags_throttled"] = throttledTags;
|
|
||||||
(*qos)["batch_tags_throttled"] = batchThrottledTags;
|
JsonBuilderObject throttledTagsObj;
|
||||||
|
JsonBuilderObject autoThrottledTagsObj;
|
||||||
|
autoThrottledTagsObj["count"] = autoThrottledTags;
|
||||||
|
throttledTagsObj["auto"] = autoThrottledTagsObj;
|
||||||
|
|
||||||
|
JsonBuilderObject manualThrottledTagsObj;
|
||||||
|
manualThrottledTagsObj["count"] = manualThrottledTags;
|
||||||
|
throttledTagsObj["manual"] = manualThrottledTagsObj;
|
||||||
|
|
||||||
|
(*qos)["throttled_tags"] = throttledTagsObj;
|
||||||
|
|
||||||
JsonBuilderObject perfLimit = getPerfLimit(ratekeeper, transPerSec, tpsLimit);
|
JsonBuilderObject perfLimit = getPerfLimit(ratekeeper, transPerSec, tpsLimit);
|
||||||
if(!perfLimit.empty()) {
|
if(!perfLimit.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue