add docs for primary stickiness for session affinity

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>

dfk
This commit is contained in:
Sanskar Jaiswal
2025-03-24 13:08:29 +05:30
parent 1dc270c2e6
commit 1fc7ac5847
2 changed files with 48 additions and 1 deletions
@@ -509,6 +509,9 @@ You can load `www.example.com` in your browser and refresh it until you see the
All subsequent requests after that will be served by `podinfo:6.0.1` and not `podinfo:6.0.0` because of the session affinity
configured by Flagger in the HTTPRoute object.
To configure stickiness for the Primary deployment to ensure fair weighted traffic routing, please
checkout the [deployment strategies docs](../usage/deployment-strategies.md#canary-release-with-session-affinity).
# A/B Testing
Besides weighted routing, Flagger can be configured to route traffic to the canary based on HTTP match conditions. In an A/B testing scenario, you'll be using HTTP headers or cookies to target a certain segment of your users. This is particularly useful for frontend applications that require session affinity.