Nginx worker_connections setting / concurrent users count

Hi there,

We are trying to set nginx worker_connections value correctly. The default is 768 and we are hitting the limit constantly. I was wondering how we can know how many users are using our Discourse instance at any given time. Can we query message bus to give us this info? Something else? Once we know this we can set worker_connections correctly.

I think that if you are hitting that limit then there is no way to guess how many users are not getting to your forum.

I’d increase it to 1000 or maybe twice the current number.

1 Like

Would it be reasonable to say, if in doubt, double the limit, but watch your CPU and memory use? (Surely the reason for the limit is not to overload the machine.)

A previous topic notes a couple of related settings:
‘768 worker_connections are not enough’ Error

2 Likes