Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

TRAFFIC SPLITTING WITH SESSION AFFINITY IN GLOBAL APPLICATION LOAD BALANCER NOT WORKING

HI TEAM,

I'M USING CLOUD DEPLOY FOR MY CANARY DEPLOYMENT WITH TRAFFIC SPLITTING, AND ALSO USING GLOBAL APPLICATION LOAD BALANCER WITH IT FOR ROUTING, NOW I NEED TO USE SESSION AFFINITY BASED ON COOKIE WHICH I HAVE CONFIGURED FOR LOAD BALANCER, HOW CAN I ACHIEVE BOTH BECAUSE IT'S TAKING PRECEDENCE FOR TRAFFIC SPLITTING.

ANY ALTERNATIVE TO ACHIEVE BOTH (WEIGHTED TRAFFIC SPLITTING & SESSION AFFINITY) ?

 

0 2 139
2 REPLIES 2

Can you describe your exact setup?  Are you configuring this using the Gateway API or are you directly configuring the load balancer?

Hi Gari,

I'm configuring this using the Gateway API with Cloud Deploy for canary deployments. The Global Application Load Balancer is handling routing, and I have configured session affinity based on cookies using a GCPBackendPolicy. However, when traffic splitting is applied during a canary rollout, it seems to take precedence, and session affinity is not consistently maintained.

I want to achieve both weighted traffic splitting and session affinity together. Do you have any recommendations or alternatives to make this work?

Top Labels in this Space