mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
69f40df548
* feat(ingress gateway: support configuring limits in ingress-gateway config entry - a new Defaults field with max_connections, max_pending_connections, max_requests is added to ingress gateway config entry - new field max_connections, max_pending_connections, max_requests in individual services to overwrite the value in Default - added unit test and integration test - updated doc Co-authored-by: Chris S. Kim <ckim@hashicorp.com> Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> Co-authored-by: Dan Stough <dan.stough@hashicorp.com>
46 lines
862 B
HCL
46 lines
862 B
HCL
config_entries {
|
|
bootstrap = [
|
|
{
|
|
kind = "proxy-defaults"
|
|
name = "global"
|
|
config {
|
|
protocol = "http"
|
|
}
|
|
},
|
|
{
|
|
kind = "ingress-gateway"
|
|
name = "ingress-gateway"
|
|
|
|
Defaults {
|
|
MaxConnections = 10
|
|
MaxPendingRequests = 20
|
|
MaxConcurrentRequests = 30
|
|
}
|
|
listeners = [
|
|
{
|
|
port = 9999
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "*"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
port = 9998
|
|
protocol = "http"
|
|
services = [
|
|
{
|
|
name = "s1"
|
|
hosts = ["test.example.com"]
|
|
MaxConnections = 100
|
|
MaxPendingRequests = 200
|
|
MaxConcurrentRequests = 300
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|