Questions tagged [session-affinity]

Use session-affinity for questions related to establishing and persisting the relationship between a client request and a specific server for the duration of a session

References

40 questions
21
votes
1 answer

How to use Session Affinity on requests to Kubernetes service?

I could not find a documentation that specifies how Kubernetes service behaves when the affiliated deployment is scaled with multiple replicas. I'm assuming there's some sort of load balancing. Is it related to the service type? Also, I would want…
4
votes
1 answer

OpenShift service with sessionAffinity forwards traffic to two pods

OpenShift Container Platform 3.11 Assume a setup with one client pod and three equal server pods in the same namespace. The server pods are available via a service: apiVersion: v1 kind: Service metadata: name: server spec: ports: …
user3252254
  • 173
  • 1
  • 9
4
votes
1 answer

How to set session affinity between inner servicess inside a Kubernetes cluster

Here is my problem: I have 3 services defined in a kubernetes yaml file: one front-end (website) one back-end : stateful, for user sessions one back-end : stateless I need session affinity on the stateful service, but not on the stateless nor…
4
votes
1 answer

GCE HTTPS load balancer session affinity

I have a HTTPS load balancer configured with one backend service and 3 instance groups: Endpoint protocol: HTTPS Named port: https Timeout: 600 seconds Health check: ui-health2 Session affinity: Generated cookie Affinity cookie TTL: 0 seconds …
qtxo
  • 1,378
  • 12
  • 12
3
votes
0 answers

Difference between ingress and service's kubernetes session affinity

What are the differences between using an nginx ingress with the session affinity annotations (as below example) and a service with the service.spec.sessionAffinity set to ClientIP. From what I understand, both reach the same goal but I wonder if…
Will
  • 1,792
  • 2
  • 23
  • 44
3
votes
0 answers

Preserve Heroku session affinity when scaling up

According to the Heroku documentation when session affinity is turned on and number of Dynos (nodes) scales up the existing traffic is evenly distributed to the new Dynos. This has affect that client of 'old' Dynos are assigned to the Dynos they…
ps-aux
  • 11,627
  • 25
  • 81
  • 128
2
votes
0 answers

Migration of IP Multimedia Subsystem(IMS) for VoLTE in Kubernetes (Issue with Cross Port Services)

As per 3GPP specifications, the UE(Mobile) should send the first REGISTER request over unsecured port of P-CSCF which is 5060 and the subsequent REGISTER request should be sent on the different port(secured port of P-CSCF) which is received in the…
2
votes
1 answer

Is there a way to provide custom value other than ClientIP for sessionAffinity in kubernetes?

First of all request goes to proxy service that i've implemented, service forwards request to pods randomly without using sessionAffinity. I want to send requests to same pod based on custom value that i've set in request parameters using post…
2
votes
1 answer

Using Session Affinity (Cookies) with SSL Passthrough on NGINX-Ingress

TL;DR: I want to setup cookie-based session affinity in K8s over the nginx-ingress controller with SSL passthrough - can this be done? Hey all, I have a working Azure Kubernetes Service (AKS) running (1.11.3) and have configured the NGINX-Ingress…
Matt Woodward
  • 1,941
  • 20
  • 24
2
votes
2 answers

How can I configure an AWS Network Load Balancer to achieve end-to-end HTTPS encryption while maintaining session affinity?

I have a VPC with two EC2 instances in different availability zones. Clients connect to my application via HTTPS. I've been attempting to set up load balancing between the two application nodes, which require session affinity. Initially I used an…
Jack
  • 508
  • 1
  • 9
  • 18
2
votes
1 answer

AWS WebApp Blue / Green Deployment Without Breaking Sessions

My use case: I have a web application served by an Elastic Load Balancer which is in front of 1 EC2 instance. The architecture aims to simulate a Blue/Green deployment flow, meaning that I will turn on a second instance when I need to update code…
2
votes
0 answers

Azure App Service: Is it possible to enable ARR Affinity for specific requests?

I have stateless web applications deployed to Azure App Service and have ARR Affinity disabled in the Application Settings. Is it possible to leave this disabled, but enable it for specific requests? I came across a post by benjaminperkins from…
Steve B
  • 161
  • 2
  • 13
1
vote
1 answer

Can I modify the value of ARR Affinition cookies programmatically

My web application is deployed on Azure App Service with multiple instances (scale out). It has a an API to generate a report. I want that a request to this API only go to a specific instance. So I am thinking about writing a Javascript code to…
asinkxcoswt
  • 2,252
  • 5
  • 29
  • 57
1
vote
1 answer

Round-Robin for connection-based load-balancing

I am running 4 replicas of the bf-v instance. I am using ClientIP as a sessionAffinity. I want to distribute requests based on the client IP address, but also distribute client IPs evenly (round-robin based) across replicas. I want pods to have the…
1
vote
0 answers

Extending lifetime of affinity cookie per request

We´re using an haproxy ingress in our kuberntes cluster with cookie affinity for sticky session handling. The ingress configuration like this: ingress.kubernetes.io/affinity: cookie ingress.kubernetes.io/session-cookie-keywords: indirect nocache…
1
2 3