Questions tagged [sticky-session]

A simple performant way to use socket.io with a cluster. https://github.com/indutny/sticky-session

119 questions
2
votes
0 answers

Spring Session Redis with Sticky session on server side for log

Hi i have a Redis configured on my Spring project to use Spring Session, i'm using Jedis 2.9.0 and it works well. The problem I have is with the Sticky session on the Websphere Server, we have 2 main servers and 10 clones of each, with normal…
2
votes
0 answers

how to test Load Balancer with Sticky Session

I'm new to load balancer and Sticky Session. My understanding of Sticky session is that all request of one instance will be served via only one service( please correct me if I'm wrong). I have a requirement to test the working of sticky session with…
Mani
  • 135
  • 3
  • 15
2
votes
2 answers

Nginx Load Balancer(ip_hash) sending all traffic to Single Server

We have a Online Test application which is used by students. we have 4 different servers and an Nginx above all of them to load balance traffic among all 4 servers. As our application need sticky session (for one user , all request to one server) so…
2
votes
1 answer

How to use Traefik for WebSocket backend

I am trying to configure Traefik for a WebSocket app, I just try with a simple WS app on docker: https://hub.docker.com/r/jmalloc/echo-server/ To test it I use Chrome SimpleWebSocketClient, so if I use the IP:Port of the app it works fine. If I add…
Asier Gomez
  • 6,034
  • 18
  • 52
  • 105
2
votes
0 answers

Node.js sticky-session, what if mobile IP has been changed?

We know sticky-session uses hash of IP address to make each client connect to same cluster(or process). And instead, I use sticky-cluster which has same principle, but much better. Then... what if IP changes in mobile? We also know every mobile…
user6623434
2
votes
1 answer

Nuxeo Cluster - Load Balancer - Session replication failed

I have configured apache2.4 http load balancer as : ProxyPass /nuxeo balancer://sticky-balancer stickysession=JSESSIONID|jsessionid nofailover=On BalancerMember xxxxxxx.40:8080/nuxeo…
Saimir
  • 210
  • 2
  • 12
2
votes
2 answers

How to test that AWS ELB sticky sessions work as intended?

I have a solution where an ELB is configured to use sticky sessions. How can I actually verify that requests for a client is actually routed to one and the same instance in the auto-scaling group behind the ELB?
Christian
  • 7,433
  • 4
  • 36
  • 61
2
votes
1 answer

How to create soket.io server which will keep WS and WSS connection?

I have a socket.io server with code like that: var sticky = require('sticky-session'); sticky(function() { var app = require('http').createServer(handler); function handler (req, res) { res.writeHead(200, { …
Dmitro
  • 1,489
  • 4
  • 22
  • 40
2
votes
0 answers

Socket.io events working only in the same process

I'm trying to use socket.io & sticky-session to pass messages to my clients. The problem is that client which connect to one of the processes won't get messages from other processes, only from the process he is connected to. How can I make web…
Dor Cohen
  • 16,769
  • 23
  • 93
  • 161
1
vote
1 answer

When the value of the AWSALBAPP cookie is set as _remove_

Can anybody describe when the value of the AWSALBAPP (Application-based cookie) cookie is set as _remove_ and why there's more than one cookie (AWSALBAPP-0, AWSALBAPP-1, AWSALBAPP-2, AWSALBAPP-3) present in the request if the application-based…
1
vote
1 answer

Traefik enable sticky-sessions on existing cookie

I'm used to using Traefik, Docker, and K8S in a stateless environment. Recently I was assigned the mission to Dockerize an old Java app running on Tomcat. This app is stateful and doesn't share sessions, for now. I have to put multiple instances of…
mrik974
  • 465
  • 2
  • 7
  • 17
1
vote
1 answer

WebSocket connection fails to establish when behind AWS ALB and nginx reverse proxy load balancer

Setup Introduction: I have a node js app with 3 different services namely admin, client and server. All these 3 services are running as individual docker containers. My setup consists of 2 EC2 instances behind an AWS Application Load Balancer, with…
1
vote
0 answers

Does Consistent Hashing always equal sticky sessions?

I am learning about consistent hashing and I understand that provided the number of servers do not change, a load balancer using consistent hashing will always send the same request to the same backend server. I can see how this could be troublesome…
1
vote
0 answers

Sticky Session on Redis of Magento2

I have 2 EC2 instance of my Magento 2 store.Both is using ELB & Sticky Session.But now, i want sticky session from Redis or memcached by using another EC2 instance? How can i achieve this & can we execute cron of my website from another…
1
vote
1 answer

Ingress affinity session max age

I am using ingress affinity session in order to keep communication between a client and a pod. Because sticky session could cause some overloading to a pod (the clients keep same pod). I'm looking for best practices about the parameter…
julus
  • 431
  • 1
  • 5
  • 14