Restrict the rate of requests KrakenD makes to your backends. See: https://www.krakend.io/docs/backends/rate-limit/
Get JSON SchemaBundleIdentifier | https://schemas.sourcemeta.com/krakend/v2.2/qos/ratelimit/proxy.json |
---|---|
Base Dialect | Draft7 |
Dialect | http://json-schema.org/draft-07/schema# |
Size | 0.001251 MB |
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://schemas.sourcemeta.com/krakend/v2.2/qos/ratelimit/proxy.json",
"title": "Proxy ratelimit",
"description": "Restrict the rate of requests KrakenD makes to your backends.\n\nSee: https://www.krakend.io/docs/backends/rate-limit/",
"type": "object",
"required": [ "max_rate", "capacity" ],
"properties": {
"capacity": {
"$id": "#qos/ratelimit/proxy/capacity",
"title": "Capacity",
"description": "The capacity according to the [token bucket algorithm](https://www.krakend.io/docs/throttling/token-bucket/) with a `bucket capacity == tokens added per second` so KrakenD is able to allow some bursting on the request rates. Recommended value is `capacity == max_rate`.\n\nSee: https://www.krakend.io/docs/backends/rate-limit/",
"default": 1,
"type": "integer"
},
"max_rate": {
"$id": "#qos/ratelimit/proxy/max_rate",
"title": "Max rate",
"description": "Maximum requests per second you want to accept in this backend. Use decimals for per-hour and per-minute strategies.\n\nSee: https://www.krakend.io/docs/backends/rate-limit/",
"examples": [ 0.5 ],
...
See the full schema