# '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:** 9

<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, 4:10pm UTC](https://meta.discourse.org/t/768-worker-connections-are-not-enough-error/192376/9 "2021-06-02T16:10:33Z")

</div>

> [@bartv](#):
>
> We have 12 cores, 64GB. Typical load is about 2, and we use 50% of our RAM.

Damn that is so weird!

The formula for connections is `worker_processes * worker_connections` which should be `12 * 768`, which would be (click clack) 9216. But your logs say 1768…

Try this on your app.yml:

```plaintext
## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"

  - replace:
      filename: "/etc/nginx/nginx.conf"
      from: "worker_connections 768" 
      to: "worker_connections 2000"
  - replace:
      filename: "/etc/nginx/nginx.conf"
      from: "worker_processes auto" 
      to: "worker_processes 10"

```

Be aware that your block on post 2 is acting on the wrong file!

---

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