@PitaJ I think I have a very edge-case scenario, I've found a solution for guests and logged in users.
Thanks for your help and point in the right direction!
After spending a few days debugging a problem on our forum/nginx, I've finally found a solution to a massive amount of http 400 errors we've seen when loading the nodebb forum. These problems normally only manifest itself on high load.. In our case >500 connected clients.
In the browser console you will see responses like this (for the failed connections):
{"code":1,"message":"Session ID unknown"}
Set the max_fails on the upstream to something higher than default (1).
Example:
upstream io_nodes {
ip_hash;
server 127.0.0.1:4567 max_fails=50;
server 127.0.0.1:4568 max_fails=50;
server 127.0.0.1:4569 max_fails=50;
}
I suggest someone to update the NodeBB documentation, including this in the nginx examples.
@hek do you mind reposting this on the issue tracker? I'm going to make a new issue tag for documentation-related problems so I can more easily track them. Thanks.