Skip to content

Commit

Permalink
Fix #1063 - Update comments to detail user limits in single test
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Jun 18, 2024
1 parent d37d589 commit 5648f3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internetnl/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,11 @@
if DJANGO_IS_PROXIED:
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")

# Limit the number of tests a client can perform in a while. The exact implementation is to be documented.
# raise the roof of this number to remove this cap. 30 was a limit inherited that comes across as sane.
# Limit the number of tests a client can perform in single test.
# This is the maximum number of tasks that can be run simultaneously per client IP.
# The counter is increased when a task starts, decreased when a task completes,
# and the Redis entry has a 2-hour expiry. Task is an individual category, e.g. RPKI web,
# which means one domain test is 5 tasks.
CLIENT_RATE_LIMIT = int(getenv("CLIENT_RATE_LIMIT", 30))

# --- Routinator settings
Expand Down

0 comments on commit 5648f3e

Please sign in to comment.