Questions tagged [sticky-session]

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

119 questions
1
vote
3 answers

how to user position: sticky in css

I have a div in my website and have another div inside it, I gave the inner div position sticky and top:0 but it doesn't work! This is my code example: Above : container is a normal div and inner div has a sticky position and top: 0 But it doesn't…
1
vote
1 answer

AWS ALB - how to route existing sessions to Server A, and new sessions to Server B?

I am having difficulty understanding the nomenclature for this scenario: Say I have one web server, Server A, in an ALB target group, and users hitting that server. I would like to take that server offline, and replace it with Server B, without too…
1
vote
1 answer

How to set sticky session for multiple services in kubernetes?

I have 2 services: Restful/websocket API service with Nginx (2 replicas) Daemon service (1 replica) The daemon service will emit a websocket event to the frontend at some point. However, the event doesn't seem to be emitted successfully to the…
bbnn
  • 3,505
  • 10
  • 50
  • 68
1
vote
0 answers

AWSALB, AWSALBCORS cookies and FIrefox

I’m interested in whether the browser version can affect ALB routing (AWSALB, AWSALBCORS cookies) ? For example, there is an application that is managed by two instances (A and B) and in the case of the browser version of Firefox 74.1 and older,…
Rower33
  • 11
  • 1
  • 3
1
vote
0 answers

Deploying new react apps built with webpack

I have small edge case where my apps are failing in production. let me try to explain the scenerio. i am building many react applications with webpack. the static assets get copied to a single nodejs app, with different routes rendering different…
hannad rehman
  • 4,133
  • 3
  • 33
  • 55
1
vote
0 answers

Sometimes server connect failed via loadbalance

My server is load balanced to the backend server via gcp https lb and the backend server uses pm2 start -i options different ports and distribute them to those nodes using haproxy. connection log Log taken from server using code. io.on('connection',…
하지수
  • 11
  • 2
1
vote
1 answer

auth0+passport.js too many redirects with more than 1 instance

Infrastructure: cloud: aws beanstalk turn on nginx for container proxy server application load balancer - https only, default process (https) 2+ instance in private subnet enabled end to end encryption following…
1
vote
0 answers

Path-based sticky session with Kubernetes

I have a system on Kubernetes and I need path-based sticky session but couldn't find anything about it on the Internet. Scenario My system exposes 2 endpoints /start //dosomething When client hits to /start, a session id is returned.…
Tran Triet
  • 1,257
  • 2
  • 16
  • 34
1
vote
1 answer

Android and sticky session

I have an Android application that sends requests to servers behind an elb. Unfortunately, sticky session doesn't seem to be take in account (automatically) by Android unlike iOS. What is the solution/best practice to do this with Android ?
gduh
  • 1,079
  • 12
  • 30
1
vote
1 answer

Openshift roundrobin request across all pods

We want to have roundrobin of request across all pods deployed in openshift. I have configured below annotations in Route config but the sequence of calls to all pods is random: haproxy.router.openshift.io/balance :…
user3811946
  • 123
  • 2
  • 11
1
vote
0 answers

heroku session-affinity for apps with no cookie support

Heroku session affinity mentions that sticky session is achieved by passing down a cookie. But we use heroku for TV apps where there is no cookie support. Sticky session is very important to us. Does anyone know if sticky session on heroku can be…
1
vote
2 answers

Sticky Session on Heroku

We have have a NodeJS application running with SocketIO and clustering on heroku. To get SocketIO working we use the redis-adapter like discussed here: https://socket.io/docs/using-multiple-nodes/. Then we've implemented sticky sessions like shown…
Jolle
  • 1,336
  • 5
  • 24
  • 36
1
vote
1 answer

HTML5 canvas with Node.js, clustering and Socket.IO

I am creating a Node.js application for collaborative drawing on an HTML5 canvas. I am using Socket.IO to communicate and I have implemented clustering so I am able to scale my application. My lecturer told me that using clustering is a good idea,…
user10770888
1
vote
1 answer

Jboss EAP 7 JSESSIONID instance-id not appended

It seems the instance-id in JSESSIONID is added when using standalone-ha.xml and not with standalone.xml, at least in my case: # Standalone (instance-id not appended) [mad@max bin]$ ./standalone.sh -Djboss.instance.id=node1…
Max Nicholson
  • 101
  • 1
  • 3
  • 8
1
vote
1 answer

How to avoid sticky sessions?

I am trying to understand and figure out how can sticky sessions be avoided in general. I researched to come across a lot about, Sticky and NON-Sticky sessions and Pros and Cons of Sticky Session / Session Affinity load blancing strategy? And how…
synergy
  • 11
  • 4