Questions tagged [sticky-sessions]

Sticky Sessions are a load-balancing method where individual user-sessions are kept to a single back-end server for the life of the session, and sessions are load-balanced across the whole pool. When one back-end server dies, only those user-sessions are interrupted.

Sticky Sessions are a load-balancing method where individual user-sessions are kept to a single back-end server for the life of the session, and sessions are load-balanced across the whole pool. When one back-end server dies, only those user-sessions are interrupted.

This method of load-balancing is best for web-applications where multiple servers can't safely serve the same user-session.

72 questions
0
votes
1 answer

How to include sticky session in AWS Elastic Beanstalk using Cloud Formation template

As I searched for the stickiness in Elastic Beanstalk I didn't find the way how to include it using AWS Cloud Formation. Can anyone help me to do that thing. Thanks in advance.
0
votes
0 answers

HAProxy balancing on header while hiding it from the backend

I'm trying to set up HAProxy such that it picks a backend based on a header value. But I also want to hide that header from backends. My config: defaults mode http timeout connect 5s timeout client 5s timeout server 5s listen lb bind…
dnt
  • 3
  • 1
0
votes
0 answers

How to preserve cookie in HAProxy?

We currently have a the following setup: [Client] -> [haproxy] -> [Nginx] -> [App Servers] Nginx currently sets the cookie affinity to the app servers by setting a cookie i.e: public-client. However with the introduction of HAProxy the cookie is not…
kaizenCoder
  • 343
  • 2
  • 8
  • 22
0
votes
0 answers

Apache mod_proxy sticky session not working occasionally

We are having four Tomcats load balanced with Apache mod_proxy (mod_ajp). mod_proxy is configured as follow, lbmethod=byrequests and sticky_session enabled. But occasionally we have noticed that apache is not honoring sticky session. i.e. Apache is…
0
votes
0 answers

HAProxy appsession sends 5% of sessions to wrong backend server

Please consider this HAProxy configuration with sticky sessions using JSESSIONID defaults timeout server 5m frontend http-in bind *:80 default_backend servers backend servers option httpchk OPTIONS / option forwardfor …
Stefaan Neyts
  • 179
  • 1
  • 6
0
votes
1 answer

Does any varnish using directors.hash() and hash.backend() always choose the same backend?

I have 2 varnish, each of them having 2 backends (same varnish versions -v4.x- and configuration file). Incoming client connections are randomly distributed to any available varnish. I need clients to always use the same varnish backend, based on…
Totor
  • 2,916
  • 3
  • 23
  • 31
0
votes
1 answer

Query on Apache load balancer balancer-manager and also on JSESSIONID/Stickysessions

I am setting up Apache with mod_proxy and balancer-manager, and just have two questions on this. 1 Is there any way to color code the status in the balancer-manager? EG green for OK, blue for draining, red for disabled, or something like it? A…
bomahony
  • 31
  • 1
  • 3
0
votes
1 answer

Adding a server in another location

Background: I have built a typical website which let's users upload photos and videos (nothing too large, mind). Currently, I host this website on a single DigitalOcean droplet (Nginx, PHP, MySQL, Memcached for sessions/cache) located in London, UK.…
Chris
  • 101
  • 1
  • 3
0
votes
1 answer

How to config nginx as sticky loadbalancer for both http and https

I have the config below. However, when user switch from http to https, the session doesn't stick no more. Eg. homepage http but payment page is https. How do I solve this? upstream backend { ip_hash; server ; server…
Tuan Anh Tran
  • 165
  • 1
  • 13
0
votes
0 answers

Adding CSRF token in to Cookies of Post request in Haproxy

My post request to UAA is missing CSRF value i.e. X-Uaa-Csrf=2QytIy. This is required for login in to cloud foundry UAA. This is problem is because of internet domain name /private domain name mapping done in haproxy. Get /login request response has…
0
votes
0 answers

Load balancer F5 and sticky session

I have installed a web application on a clustered environment where the load is balanced by an F5 device. Unfortunately I do not know exactly its model, but hopefully this information is not necessary to answer my question. We were trying to…
Marco Altieri
  • 101
  • 1
  • 3
0
votes
0 answers

JBoss EAP 6.3 - SSO and Sticky Sessions not working

We have a cluster with 2 nodes (JBoss EAP 6.3 with Single Sign On enabled), node 1 and node 2 in different servers. On top of that we have an Apache2 and are using mod_cluster for load balancing and sticky sessions. We also have our web apps with…
Mateo
  • 11
  • 4
0
votes
1 answer

Losing session data when switching web servers on Azure web farm with 2 web servers. How can I share the keys with each server?

Losing session data when switching web servers on Azure web farm with 2 web servers. How can I share the keys with each server? Our websites were working flawlessly to be exaggerative when they were running on Rackspace. We have since moved to Azure…
jaxcoder
  • 31
  • 1
  • 8
0
votes
2 answers

HAproxy current session is zero

I have some problems on sticky sessions with HAproxy. Haproxy counts every request as a new session. I have a Java servlet that creates the cookie JSESSIONID. If I refresh that page 5 times. The servlet count it as 1 session and 5 request from that…
ofbje
  • 1
  • 1
0
votes
1 answer

Session clustering with Jetty-runner 8.1.14.v20131031

I'm using Jetty-runner 8.1.14.v20131031 and I would like to know what's the easiest way to achieve session clustering between multiples running instances.
mnml
  • 337
  • 1
  • 7
  • 21