|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
服务健康配置 |
||
| protocol |
string |
检查项 TCP|HTTP|GRPC |
TCP |
| timeout |
integer |
健康检查响应超时时间 |
5 |
| interval |
integer |
健康检查间隔时间 |
10 |
| healthyThreshold |
integer |
健康检查健康阈值 |
2 |
| unhealthyThreshold |
integer |
健康检查不健康阈值 |
3 |
| httpPath |
string |
健康检查路径(健康检查协议为 HTTP 时必填) |
/health |
| httpHost |
string |
健康检查域名(健康检查协议为 HTTP 时选填) |
example.com |
| enable |
boolean |
是否开启 |
true |