Questions about the setup for community.nodebb.org
-
I had to set the load balancing algorithm in HAProxy to
source
which is the same or similar toip_hash
in nginx. -
@djensen47 What did you set it to?
-
balance source hash-type consistent
I've updated my haproxy config here: https://community.nodebb.org/topic/13315/haproxy-config
It probably needs a little more explanation that is there but it's an example to get you started.
-
@baris How do I know if the pub/sub is working for sessions?
Some uses are reporting the logout problem after I turned on clustering and setup redis for pub/sub. But I haven't experienced it yet today but I haven't been on much.
Until I turned on IP sticky sessions, the site was erroring out on websockets (which might be unrelated).
-
@djensen47 said in Questions about the setup for community.nodebb.org:
Until I turned on IP sticky sessions, the site was erroring out on websockets (which might be unrelated).
Not unrelated -- socket.io's handshake requires two requests that need to land on the same server, so the sticky sessions is a must
-
@djensen47 See https://github.com/NodeBB/NodeBB/issues/7115
I applied these changes on this forum as well, and spiders are no longer getting a session on every page hit.