Questions about the setup for community.nodebb.org
-
IIRC nginx also handles the 503 page
-
Thanks for the info. It looks like I need 2 CPUs for the nodebb server and to setup a redis instance (somewhere).
Last thing, do 503s caused by load get logged? If not, how can I change it so that they are logged. I want to measure current 503 occurrences vs. any after I make these changes. Basically, I want to make sure throwing more money at the problem (more/better instances) fixes it.
-
do you know the correct way to add clustering on node bb ?
-
@faizanzahid Yes, it's in the docs: https://docs.nodebb.org/configuring/scaling/
Do not create more processes than CPUs. It's not advised as the results of doing such a thing are unpredictable.
-
Ugh, I turned on clustering and now Socket.IO is broken ...
POST https://www.axisandallies.org/forums/socket.io/?EIO=3&transport=polling&t=MUiNOWE&sid=q1ikZjbjopxQbJZxAAYo 400 (Bad Request)
-
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.