diff options
author | gitnab <gitnab@yandex-team.com> | 2023-08-29 18:06:47 +0300 |
---|---|---|
committer | gitnab <gitnab@yandex-team.com> | 2023-08-29 23:57:27 +0300 |
commit | 68766cbb191fb70ae7eb497e3dbc7029f92ee11f (patch) | |
tree | 1adbd5d087012159441d0a1b6a77e07252a2f9d2 | |
parent | 9044559cb8d2e4e1c992c87631cb4ee9d2689643 (diff) | |
download | ydb-68766cbb191fb70ae7eb497e3dbc7029f92ee11f.tar.gz |
sample_by_rate filter: add volume limit on data stream in filter
-rw-r--r-- | library/cpp/unified_agent_client/throttling.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/cpp/unified_agent_client/throttling.h b/library/cpp/unified_agent_client/throttling.h index 1e5db1e8fa..a37319e9a8 100644 --- a/library/cpp/unified_agent_client/throttling.h +++ b/library/cpp/unified_agent_client/throttling.h @@ -5,6 +5,8 @@ #include <util/datetime/base.h> namespace NUnifiedAgent { + // Comment from a non-author: + // It is based on something similar to https://en.wikipedia.org/wiki/Token_bucket class TThrottler { public: explicit TThrottler(double rate, TDuration updatePeriod = TDuration::MilliSeconds(100)); |