You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want a rr load balance for gloo, but I found there is no way to customize it in gloo?
Have a look at wasm examples, all of them seem like do some filter/transform before request backend service. Is it possible to implement a customized load balance strategy with wasm?
just like
user request
jump into wasm, customize load balance and send dest name to header
jump back to vs, with header, it will be routed directly to backend (gloo support header direction)
The text was updated successfully, but these errors were encountered:
If you want to use logic from a wasm filter from routing, Gloo Edge supports routing to a cluster as a header value, so you could have a wasm filter add the header for the cluster you wanted, then clear the route cache, and I believe gloo should forward the request to your desired cluster.
Otherwise, right now I don't believe your use case of a custom load balancing strategy is supported by the wasm ABI or the Envoy API. Here's a relevant discussion about extending load balancing strategies in upstream envoy - envoyproxy/envoy#5598
Yeah, for some reason, existing lb_policy of envoy is not able to support. We need a better global least request to make load even , envoy only support least req locally. Thanks for advice and the related link. I'll take a shot
I don't want a rr load balance for gloo, but I found there is no way to customize it in gloo?
Have a look at wasm examples, all of them seem like do some filter/transform before request backend service. Is it possible to implement a customized load balance strategy with wasm?
just like
The text was updated successfully, but these errors were encountered: