Quantcast
Viewing all articles
Browse latest Browse all 1561

Can you setup your Route to use sticky session and load balance at the same time in openshift?

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

Viewing all articles
Browse latest Browse all 1561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>