Hot answers tagged

2

Yes, CookieBasedAffinity is the setting that enables sticky sessions, and it should be set to true, with round robin used for new connections, as per the table in that document:


1

Well, I guess, because you're using two upstream groups, the state isn't shared between the two groups. Right now I can't test this further, but here are some ideas of mine: Use one upstream group, inspect the $scheme, leverage map with a variable to assign the correct ports to the $scheme (either http or https), and use this variable in your server ...


1

It seems that: iptables -A PREROUTING -t mangle -i eth0 -m cluster --cluster-total-nodes 2 --cluster-local-node 1 --cluster-hash-seed 0xdeadbeef -j MARK --set-mark 0xffff iptables -A PREROUTING -t mangle -i enp1s0 -m cluster --cluster-total-nodes 2 --cluster-local-node 1 --cluster-hash-seed 0xdeadbeef -j MARK --set-mark 0xffff helped to get it running.


1

Caching on the web server is usually far more effective than caching using a Wordpress plugin. I have a Wordpress/Nginx caching tutorial for Nginx, but it's possible using Apache as well. This article goes into microcaching, which is helpful if your content changes rapidly. Most Wordpress blogs are fine cached, you just exclude logged in users from the ...


1

With the assistance of a few friends helping me research this, I was FINALLY able to get it working. Had to run this script in order to properly forward TCP/IP traffic: #!/bin/sh PATH=/usr/sbin:/sbin:/bin:/usr/bin # Primary Connection - 2085426230 IF1=eth0 IP1=172.16.0.2 P1=172.16.0.1 P1_NET=172.16.0.0 # Secondary Connection - 2085420213 ...


1

If it works locally - eg, going around the LB then I would guess that the LB is not configured to pass requests to the backend servers on that port. Your LB will need some new rules to route traffic to you backed hosts based on the destination port your service is listening on, see AWS for more help with this ...


1

Couldn't you implement Spring Session backed by a replicated redis cluster on both Node A and B? If you then configure both nginx instances to load balance over all 4 tomcat instances then you can shutdown or crash any tomcat server at any time and nginx will just use the next server to serve your request? This is assuming Node A and B can connect to all 4 ...



Only top voted, non community-wiki answers of a minimum length are eligible