2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2019-12-03 20:13:33 +00:00
|
|
|
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
|
|
|
|
}
|
2020-05-05 20:17:24 +00:00
|
|
|
passive_health_check {
|
|
|
|
interval = "22s"
|
|
|
|
max_failures = 4
|
2023-04-26 22:59:48 +00:00
|
|
|
enforcing_consecutive_5xx = 99
|
|
|
|
max_ejection_percent = 50
|
|
|
|
base_ejection_time = "60s"
|
2020-05-05 20:17:24 +00:00
|
|
|
}
|
2019-12-03 20:13:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|