Merge pull request #30193 from ClickHouse/try-to-fix-01288_shard_max_network_bandwidth

Smaller smoothing window in throttler.
This commit is contained in:
Nikolai Kochetov 2021-10-14 22:10:37 +03:00 committed by GitHub
commit 6b251ddd97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ static constexpr auto NS = 1000000000UL;
/// Tracking window. Actually the size is not really important. We just want to avoid
/// throttles when there are no actions for a long period time.
static const double window_ns = 7UL * NS;
static const double window_ns = 1UL * NS;
void Throttler::add(size_t amount)
{