build rate limiting: use a rate
This commit is contained in:
parent
7877c6ab94
commit
57770493fa
3 changed files with 18 additions and 9 deletions
|
@ -400,6 +400,8 @@ class DefaultConfig(object):
|
|||
# Location of the static marketing site.
|
||||
STATIC_SITE_BUCKET = None
|
||||
|
||||
# Maximum number of builds allowed to be queued per repository before rejecting requests.
|
||||
# Values less than zero allow queues of infinite size.
|
||||
MAX_BUILD_QUEUE_SIZE = -1
|
||||
# Count and duration used to produce a rate of builds allowed to be queued per repository before
|
||||
# rejecting requests. Values less than zero disable rate limiting.
|
||||
# Example: 10 builds per minute is accomplished by setting ITEMS = 10, SECS = 60
|
||||
MAX_BUILD_QUEUE_RATE_ITEMS = -1
|
||||
MAX_BUILD_QUEUE_RATE_SECS = -1
|
||||
|
|
Reference in a new issue