My Application uses an HAProxy route to load balance incoming requests to one or more pods. Since sticky session is enabled by default, its only been sending multiple user request to a single pod. I want it to be able to send a User to the same pod if it has visited before (Sticky session), and new Users to the pods with the least connection using the "leastconn" load balancer algorithm. Is this possible in Red Hat Openshift?
My Route:
kind: RouteapiVersion: route.openshift.io/v1metadata: name: my-app namespace: my-project annotations: haproxy.router.openshift.io/balance: leastconnspec: host: myhost.com to: kind: Service name: my-app weight: 100 port: targetPort: http-8080 tls: termination: edge insecureEdgeTerminationPolicy: Redirect wildcardPolicy: None