# '768 worker\_connections are not enough' Error

**URL:** <https://meta.discourse.org/t/768-worker-connections-are-not-enough-error/192376>\
**Category:** Self-hosting\
**Created:** [June 2, 2021, 9:13am UTC](https://meta.discourse.org/t/768-worker-connections-are-not-enough-error/192376 "2021-06-02T09:13:19Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [June 2, 2021, 3:48pm UTC](https://meta.discourse.org/t/768-worker-connections-are-not-enough-error/192376/7 "2021-06-02T15:48:33Z")

</div>

> [@bartv](#):
>
> I have no idea - we might? Any ideas how I can check that?

Haha, usually people use Google Analytics or something like that to know such info. Discourse dashboard has daily pageviews and user visits that can be used to approach that too.

> [@bartv](#):
>
> I have disabled any acceleration

Not true, your whole site is served via Cloudflare:

```plaintext
curl -I https://blenderartists.org/                                                                                                                                         
HTTP/2 200 
cf-cache-status: DYNAMIC
cf-request-id: 0a6ef945b3000002fe272b2000000001
server: cloudflare
cf-ray: 6591c4b5ec5902fe-MIA
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

```

But that may be completely unrelated as your nginx is complaining about **upstream** connections instead of downstream ones, which means it’s running out of connection between nginx ⟷ unicorn.

Since we keep an open connection for each visitor due to message\_bus (live updates service), this is kinda expected if your site is somewhat popular.

Bumping the `worker_processes` and `worker_connections` is safe and sounds like it makes sense in your case. We default `worker_processes` to your number of CPU cores. How many CPU cores do you have?

---

_[View the full topic](https://meta.discourse.org/t/768-worker-connections-are-not-enough-error/192376)._
