diff --git a/fdbclient/ServerKnobs.cpp b/fdbclient/ServerKnobs.cpp index a873c46d4d..869758dc5d 100644 --- a/fdbclient/ServerKnobs.cpp +++ b/fdbclient/ServerKnobs.cpp @@ -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 ); diff --git a/fdbclient/ServerKnobs.h b/fdbclient/ServerKnobs.h index 440dc3ab9e..bb8ec2bc3c 100644 --- a/fdbclient/ServerKnobs.h +++ b/fdbclient/ServerKnobs.h @@ -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; diff --git a/fdbserver/GlobalTagThrottler.actor.cpp b/fdbserver/GlobalTagThrottler.actor.cpp index 965f08e284..fc13ac6e97 100644 --- a/fdbserver/GlobalTagThrottler.actor.cpp +++ b/fdbserver/GlobalTagThrottler.actor.cpp @@ -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)); } }