Skip to content
Snippets Groups Projects
Unverified Commit 6e516cf6 authored by Travis Ralston's avatar Travis Ralston Committed by GitHub
Browse files

Raise default leaky bucket capacity (#597)

parent 8ad2c21c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
},
},
},
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment