

Matter the HAProxy instance in use, provided that every HAProxy knows about HAProxy instance it hits, and that hash will map to the same server, no That is, A.B.C.D will result in the same hash no matter the The rule for mapping the hash to an instance is the same across all HAProxy Sticky table somehow using ElastiCache or Redis or something along those HAProxy instance? Unless they (the HAProxy instances) shared a common Otherwise, how would you guarantee that the ELB sends traffic to the right Use an ELB in front of HAProxy? There must be only one HAProxy instance, Interesting project in regards to auto-scaling on amazon, using HAProxy. On Wed, at 1:19 PM, Felix Schlitter OK, I saw there was a Know about the same instances, would thus send traffic from one location to Via source, meaning the HAProxy instance hashes the IP and uses that toĭetermine what instance it goes to. That's what is happening in that link you sent, they're balancing Then regardless of which HAProxy the ELB hit, it would end up at the same That is, if the HAProxiesĪll had the same rule saying that ip A.B.C.D is directed to instance one, If you have the HAProxies configured to route connections based on IP youĬould guarantee it'd end up at the same instance. Reply to this email directly or view it on GitHub However, it is notĪpparent to me how the two HAProxy get their "backend" server listĬonfigured and where it runs and where the actual socket.io server runs. Traffic to the right instance using sticky sessions.

HAProxy instance, which then takes off the PROXY header and routes the

Have you read this blog essentially saying one could pass the layer-4 (TCP) through to a On 2:50 AM, "Felix Schlitter" Thank you for the summary. Web/app server, which is where socket.io was set up. The HAproxy instance(s) ensure that IPs connections always go to the same Socket.io they're running on the same server as their Web app, soĬonnections come in through the Elb, are federated to an HAproxy instance,
#Instinctive code sticky notifications update#
To make that work with auto scaling ec2 instances, unless you wrote someĪdditional infrastructure to update that list when a new server came The server list would be configured on each HAproxy box.
