Add GLOBAL_TAG_THROTTLING_TRACE_INTERVAL knob

This commit is contained in:
sfc-gh-tclinkenbeard 2022-06-13 16:09:21 -07:00
parent df71a49bf6
commit b7fd69ed7f
3 changed files with 3 additions and 2 deletions

View File

@ -665,6 +665,7 @@ void ServerKnobs::initialize(Randomize randomize, ClientKnobs* clientKnobs, IsSi
init( GLOBAL_TAG_THROTTLING, false );
init( GLOBAL_TAG_THROTTLING_MIN_RATE, 1.0 );
init( GLOBAL_TAG_THROTTLING_FOLDING_TIME, 60.0 );
init( GLOBAL_TAG_THROTTLING_TRACE_INTERVAL, 5.0 );
//Storage Metrics
init( STORAGE_METRICS_AVERAGE_INTERVAL, 120.0 );

View File

@ -586,6 +586,7 @@ public:
double GLOBAL_TAG_THROTTLING_MIN_RATE;
// Used by global tag throttling counters
double GLOBAL_TAG_THROTTLING_FOLDING_TIME;
double GLOBAL_TAG_THROTTLING_TRACE_INTERVAL;
double MAX_TRANSACTIONS_PER_BYTE;

View File

@ -113,8 +113,7 @@ class GlobalTagThrottlerImpl {
te.detail("Tag", tag);
quotaAndCounters.processTraceEvent(te);
}
// TODO: Make delay time a knob?
wait(delay(5.0));
wait(delay(SERVER_KNOBS->GLOBAL_TAG_THROTTLING_TRACE_INTERVAL));
}
}