mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Merge pull request #30193 from ClickHouse/try-to-fix-01288_shard_max_network_bandwidth
Smaller smoothing window in throttler.
This commit is contained in:
commit
6b251ddd97
@ -23,7 +23,7 @@ static constexpr auto NS = 1000000000UL;
|
|||||||
|
|
||||||
/// Tracking window. Actually the size is not really important. We just want to avoid
|
/// 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.
|
/// 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)
|
void Throttler::add(size_t amount)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user