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
{{ message }}
Repository navigation
Support stateful session affinity for weighted clusters to support use-cases like canary deployment #24741
Title: Support stateful session affinity for weighted clusters to support use-cases like canary deployment
Description:
Currently cookie based stateful session affinity is implemented (see #18207) but it only works within a cluster. When multiple clusters are used for a service and the user would like to maintain session affinity across clusters then it doesn't work.
e.g. client sends a request R1 and Envoy routes it to cluster C1 host C1H1. Envoy inserts a cookie in the response to maintain session affinity to H1. Client copies the cookie value in the next request R2 and because weighted-clusters (canary deployment) is in use, Envoy picks cluster C2 for R2 but the cookie is meaningless for C2 so Envoy picks a new host C2H2 and session affinity is broken. What we want is that Envoy should pick cluster C1 for R2 (because the cookie also has the cluster name encoded in it) and within C1 it should route R2 to C1H1.
Activity
wbpcode commentedon Jan 4, 2023
sound reasonable requirement.
sanjaypujare commentedon Jan 4, 2023
Any plans to address it? I am asking based on your comments in istio/api#2469
We have users who are requesting this feature in Envoy.
wbpcode commentedon Jan 4, 2023
Sorry, I have no bandwidth for this temporarily. I can add this to my TODO list.
Or are you willing or have time to do some contributions?
sanjaypujare commentedon Jan 4, 2023
No, I cannot do this either. Let's see if we can find some volunteer
adisuissa commentedon Dec 6, 2023
Here's the design proposal for supporting this feature.
wbpcode commentedon Dec 9, 2023
ooh, thanks very much for you taking over this @adisuissa. I added two comments to the way to mutate the cluster, and the format.
Tratcher commentedon Aug 21, 2024
I also need this in my service. @adisuissa, any progress, or should I try to do it?
markdroth commentedon Mar 12, 2026
Note that gRPC has already implemented this feature; see gRFC A60 for the design.
As discussed in #30678, we should keep the Envoy impl compatible with gRPC.