diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cd92098..99c966f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] -*Nothing yet.* +### Changed + +* The default leaky bucket capacity has changed from 300mb to 500mb, allowing for more downloads to go through. The drain rate and overflow limit are unchanged (5mb/minute and 100mb respectively). ## [1.3.6] - July 10, 2024 diff --git a/common/config/conf_main.go b/common/config/conf_main.go index e7d9a965..ab5e2473 100644 --- a/common/config/conf_main.go +++ b/common/config/conf_main.go @@ -115,9 +115,9 @@ func NewDefaultMainConfig() MainRepoConfig { BurstCount: 10, Buckets: RateLimitBucketsConfig{ Downloads: RateLimitDownloadBucketConfig{ - CapacityBytes: 314572800, // 300mb + CapacityBytes: 524288000, // 500mb DrainBytesPerMinute: 5242880, // 5mb - OverflowLimitBytes: 104857600, // 10mb + OverflowLimitBytes: 104857600, // 100mb }, }, }, diff --git a/config.sample.yaml b/config.sample.yaml index 3cf6152a..a657d0a2 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -502,14 +502,14 @@ rateLimit: # will use the authenticated entity as the subject - either a user or remote server. downloads: # The maximum size of each bucket. - capacityBytes: 314572800 # 300mb default + capacityBytes: 524288000 # 500mb default # The number of bytes to "drain" from the bucket every minute. drainBytesPerMinute: 5242880 # 5mb default # The number of bytes a requester can go over the capacity, once. This is used to give some # buffer to allow a single file to be downloaded when the caller is near the limit. This # should be set to either your max remote download size or 30% of the capacityBytes, whichever # is smaller. - overflowLimitBytes: 104857600 # 100mb default + overflowLimitBytes: 104857600 # 100mb default (the same as the default remote download maxBytes) # Identicons are generated avatars for a given username. Some clients use these to give users a