mirror of https://github.com/status-im/consul.git
Add clarification for route match behavior (#19363)
* Add clarification for route match behavior * Update website/content/docs/connect/config-entries/service-defaults.mdx Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com> --------- Co-authored-by: trujillo-adam <47586768+trujillo-adam@users.noreply.github.com>
This commit is contained in:
parent
a7803bd829
commit
6360c745b5
|
@ -418,6 +418,7 @@ type InstanceLevelRateLimits struct {
|
|||
RequestsMaxBurst int `alias:"requests_max_burst"`
|
||||
|
||||
// Routes is a list of rate limits applied to specific routes.
|
||||
// For a given request, the first matching route will be applied, if any.
|
||||
// Overrides any top-level configuration.
|
||||
Routes []InstanceLevelRouteRateLimits
|
||||
}
|
||||
|
|
|
@ -341,6 +341,7 @@ type InstanceLevelRateLimits struct {
|
|||
RequestsMaxBurst int `alias:"requests_max_burst"`
|
||||
|
||||
// Routes is a list of rate limits applied to specific routes.
|
||||
// For a given request, the first matching route will be applied, if any
|
||||
// Overrides any top-level configuration.
|
||||
Routes []InstanceLevelRouteRateLimits
|
||||
}
|
||||
|
|
|
@ -649,7 +649,7 @@ Specifies a list of rate limiting configurations to apply to specific routes to
|
|||
- `PathPrefix`
|
||||
- `PathRegex`
|
||||
|
||||
Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.
|
||||
Consul applies the rate limit configuration to the first matching route for each request. Refer to [Examples](#enable-request-rate-limit-on-a-prefixed-path) for example configurations.
|
||||
|
||||
#### Values
|
||||
|
||||
|
|
Loading…
Reference in New Issue