Track the local ratekeeper rate as a percentage
This value is reported in status for each storage server.
This commit is contained in:
parent
2b60d6fd12
commit
1bac04509e
|
@ -36,6 +36,7 @@
|
|||
"roles":[
|
||||
{
|
||||
"query_queue_max":0,
|
||||
"local_rate":0,
|
||||
"input_bytes":{
|
||||
"hz":0.0,
|
||||
"counter":0,
|
||||
|
|
|
@ -56,6 +56,7 @@ const KeyRef JSONSchemas::statusSchema = LiteralStringRef(R"statusSchema(
|
|||
"roles":[
|
||||
{
|
||||
"query_queue_max":0,
|
||||
"local_rate":0,
|
||||
"input_bytes":{
|
||||
"hz":0.0,
|
||||
"counter":0,
|
||||
|
|
|
@ -429,6 +429,7 @@ struct RolesInfo {
|
|||
obj["keys_queried"] = StatusCounter(storageMetrics.getValue("RowsQueried")).getStatus();
|
||||
obj["mutation_bytes"] = StatusCounter(storageMetrics.getValue("MutationBytes")).getStatus();
|
||||
obj["mutations"] = StatusCounter(storageMetrics.getValue("Mutations")).getStatus();
|
||||
obj.setKeyRawNumber("local_rate", storageMetrics.getValue("LocalRate"));
|
||||
|
||||
Version version = storageMetrics.getInt64("Version");
|
||||
Version durableVersion = storageMetrics.getInt64("DurableVersion");
|
||||
|
|
|
@ -507,7 +507,7 @@ public:
|
|||
specialCounter(cc, "DurableVersion", [self](){ return self->durableVersion.get(); });
|
||||
specialCounter(cc, "DesiredOldestVersion", [self](){ return self->desiredOldestVersion.get(); });
|
||||
specialCounter(cc, "VersionLag", [self](){ return self->versionLag; });
|
||||
specialCounter(cc, "LocalRatekeeper", [self]{ return self->currentRate(); });
|
||||
specialCounter(cc, "LocalRate", [self]{ return self->currentRate() * 100; });
|
||||
|
||||
specialCounter(cc, "FetchKeysFetchActive", [self](){ return self->fetchKeysParallelismLock.activePermits(); });
|
||||
specialCounter(cc, "FetchKeysWaiting", [self](){ return self->fetchKeysParallelismLock.waiters(); });
|
||||
|
|
Loading…
Reference in New Issue