运行时设置
Last updated
Was this helpful?
Last updated
Was this helpful?
上游集群支持以下运行时配置:
health_check.min_interval
健康检查间隔的最小值。默认值为0。运行状况将介于min_interval
和max_interval
之间。
health_check.max_interval
健康检查间隔的最大值。默认值是MAX_INT。健康检查间隔将在min_interval
和max_interval
之间。
health_check.verify_cluster 将远程服务集群的写入响应中针对预期的上游服务验证健康检查请求的百分比。
有关离群异常检测的更多信息,请参见异常值检测。异常值检测支持的运行时参数与静态配置参数相同,即:
outlier_detection.consecutive_5xx 用于异常值检测的设置
outlier_detection.consecutive_gateway_failure 用于异常值检测的设置
outlier_detection.interval_ms 在异常值检测中的设置
outlier_detection.base_ejection_time_ms 基于异常值检测的设置
outlier_detection.max_ejection_percent 异常值检测中的设置
outlier_detection.enforcing_consecutive_5xx 在异常值检测中执行设置
outlier_detection.enforcing_consecutive_gateway_failure 在异常值检测中执行设置
outlier_detection.enforcing_success_rate 在异常值检测中执行设置
outlier_detection.success_rate_minimum_hosts 异常值检测中的设置
outlier_detection.success_rate_request_volume 异常值检测中的设置
outlier_detection.success_rate_stdev_factor 异常值检测中的设置
upstream.weight_enabled 二进制开关,用于打开或关闭加权负载均衡。如果设置为非0,则启用加权负载均衡。默认为启用。
upstream.zone_routing.enabled 将被路由到相同的上游区域的请求的百分比。默认为100%的请求。
upstream.zone_routing.min_cluster_size
可以尝试区域感知路由的上游群集的最小大小。默认值为6。如果上游群集大小小于min_cluster_size
,则区域感知路由将不被执行。
upstream.healthy_panic_threshold 百分比设置。默认为50%。
upstream.use_http2 配置群集是否使用。设置为0即禁用HTTP/2。默认为启用。
circuit_breakers.\.\.max_connections
circuit_breakers.\.\.max_pending_requests
circuit_breakers.\.\.max_requests
circuit_breakers.\.\.max_retries