-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Expand rate limiting capabilities
Previously, our rate limits were static in the sense that we could just turn them on or off and set specific namespaces where rate limiting is essentially turned off. With this PR we expand the rate limiting capability so that the user can define its own rates per defined bucket. The schema in Quay's `config.yaml` should look as follows: ~~~ RATE_LIMITS: http1: v2: number registry: number api_resources: number http2: v2: number registry: number api_resources: number namespaced: http1_v2: number http2_v2: number http1_registry: number http2_registry: number http1_api_resources: number http2_api_resources: number ~~~ We define three separate buckets for access: * `http1`: handles HTTP/1 connections * `http2`: handles HTTP/2 connections * `namespaced`: handles access to particular namespaces when rate limiting is turned on The values represent different endpoints that Quay exposes: * `v2`: denotes the Docker v2 endpoint exposed on `/v2/` * `registry`: deals with registry operations on manifests and blobs * `api_resources`: deals with connections to Quay's `v1` API as well as Docker v2 `tags` and `_catalog` endpoint
- Loading branch information
Showing
4 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters