添加峰值指数型移动平均负载均衡器 (Peak EWMA)
作者: frittentheke创建于 2026年2月16日更新于 2026年9月17日
标签kind/enhancementarea/perf and scalabilitylifecycle/stale
Unfortunately, there is no support in Istio to configure the use of peak_ewma yet. But it is possible to configure an EnvoyFilter with the required http filter and load_balancing_policies section:
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: peak-ewma-lb
namespace: istio-ingress
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
subFilter:
name: envoy.filters.http.router
patch:
operation: INSERT_BEFORE
value:
name: envoy.filters.http.peak_ewma
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.peak_ewma.v3alpha.PeakEwmaConfig
- applyTo: CLUSTER
match:
context: GATEWAY
patch:
operation: MERGE
value:
load_balancing_policy:
policies:
- typed_extension_config:
name: envoy.clusters.lb.peak_ewma
typed_config:
'@type': type.googleapis.com/envoy.extensions.load_balancing_policies.peak_ewma.v3alpha.PeakEwma
workloadSelector:
labels:
istio: ingressgateway-externalwhile this works, not all installations will want to run custom EnvoyFilters. And there are some interactions and issues with the existing LB configuration that Istio applies to clusters.
内容来源: istio/istio