執行期

上游叢集支援下列執行期設定

主動健康檢查

health_check.min_interval

健康檢查 間隔 的最小值。預設值為 1 毫秒。有效的健康檢查間隔將不小於 1 毫秒。健康檢查間隔將介於 *min_interval* 和 *max_interval* 之間。

health_check.max_interval

健康檢查 間隔 的最大值。預設值為 MAX_INT。有效的健康檢查間隔將不小於 1 毫秒。健康檢查間隔將介於 *min_interval* 和 *max_interval* 之間。

health_check.verify_cluster

有多少百分比的健康檢查請求將針對 預期的上游服務 進行驗證,因為 健康檢查篩選器 會將遠端服務叢集寫入回應中。

離群值偵測

請參閱離群值偵測架構概觀 以取得更多關於離群值偵測的資訊。離群值偵測支援的執行期參數與靜態組態參數相同,即

outlier_detection.consecutive_5xx

離群值偵測中的consecutive_5XX設定

outlier_detection.consecutive_gateway_failure

離群值偵測中的consecutive_gateway_failure設定

outlier_detection.consecutive_local_origin_failure

離群值偵測中的consecutive_local_origin_failure設定

outlier_detection.interval_ms

離群值偵測中的間隔設定

outlier_detection.base_ejection_time_ms

離群值偵測中的base_ejection_time設定

outlier_detection.max_ejection_percent

離群值偵測中的max_ejection_percent設定

outlier_detection.enforcing_consecutive_5xx

離群值偵測中的enforcing_consecutive_5xx設定

outlier_detection.enforcing_consecutive_gateway_failure

離群值偵測中的enforcing_consecutive_gateway_failure設定

outlier_detection.enforcing_consecutive_local_origin_failure

離群值偵測中的enforcing_consecutive_local_origin_failure設定

outlier_detection.enforcing_success_rate

離群值偵測中的enforcing_success_rate設定

outlier_detection.enforcing_local_origin_success_rate

離群值偵測中的enforcing_local_origin_success_rate設定

outlier_detection.success_rate_minimum_hosts

離群值偵測中的success_rate_minimum_hosts設定

outlier_detection.success_rate_request_volume

離群值偵測中的success_rate_request_volume設定

outlier_detection.success_rate_stdev_factor

離群值偵測中的success_rate_stdev_factor設定

outlier_detection.enforcing_failure_percentage

離群值偵測中的enforcing_failure_percentage設定

outlier_detection.enforcing_failure_percentage_local_origin

離群值偵測中的enforcing_failure_percentage_local_origin設定

outlier_detection.failure_percentage_request_volume

離群值偵測中的failure_percentage_request_volume設定

outlier_detection.failure_percentage_minimum_hosts

離群值偵測中的failure_percentage_minimum_hosts設定

outlier_detection.failure_percentage_threshold

離群值偵測中的failure_percentage_threshold設定

outlier_detection.max_ejection_time_ms

離群值偵測中的max_ejection_time設定

outlier_detection.max_ejection_time_jitter_ms

離群值偵測中的base_ejection_time設定

核心

upstream.healthy_panic_threshold

設定恐慌閾值百分比。預設值為 50%。

upstream.use_http2

如果已在HttpProtocolOptions中設定,則叢集是否使用 HTTP/2。設定為 0 以停用 HTTP/2,即使已設定此功能。預設為啟用。

upstream.use_http3

如果已在HttpProtocolOptions中設定,則叢集是否使用 HTTP/3。設定為 0 以停用 HTTP/3,即使已設定此功能。預設為啟用。

區域感知負載平衡

upstream.zone_routing.enabled

有多少百分比的請求將路由至相同的上游區域。預設值為 100% 的請求。

upstream.zone_routing.min_cluster_size

可以嘗試區域感知路由的上游叢集最小大小。預設值為 6。如果上游叢集大小小於 *min_cluster_size*,則不會執行區域感知路由。

熔斷

circuit_breakers.<cluster_name>.<priority>.max_connections

最大連線熔斷器設定

circuit_breakers.<cluster_name>.<priority>.max_pending_requests

最大擱置請求熔斷器設定

circuit_breakers.<cluster_name>.<priority>.max_requests

最大請求熔斷器設定

circuit_breakers.<cluster_name>.<priority>.max_retries

最大重試熔斷器設定

circuit_breakers.<cluster_name>.<priority>.retry_budget.budget_percent

最大重試熔斷器設定

circuit_breakers.<cluster_name>.<priority>.retry_budget.min_retry_concurrency

最大重試熔斷器設定