mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
f3b54fa535
* Adds 'limits' field to the upstream configuration of a connect proxy This allows a user to configure the envoy connect proxy with 'max_connections', 'max_queued_requests', and 'max_concurrent_requests'. These values are defined in the local proxy on a per-service instance basis and should thus NOT be thought of as a global-level or even service-level value.
24 lines
429 B
HCL
24 lines
429 B
HCL
services {
|
|
name = "s1"
|
|
port = 8080
|
|
connect {
|
|
sidecar_service {
|
|
proxy {
|
|
upstreams = [
|
|
{
|
|
destination_name = "s2"
|
|
local_bind_port = 5000
|
|
config {
|
|
limits {
|
|
max_connections = 3
|
|
max_pending_requests = 4
|
|
max_concurrent_requests = 5
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|