# "Your Redis network connection is performing extremely poorly"

**URL:** <https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166>\
**Category:** Self-hosting\
**Created:** [December 12, 2024, 10:26pm UTC](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166 "2024-12-12T22:26:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [December 19, 2024, 5:21pm UTC](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166/5 "2024-12-19T17:21:45Z")

</div>

> [@markersocial](#):
>
> From the app.yml:
> 
> ```plaintext
> UNICORN_SIDEKIQS: 9
> DISCOURSE_SIDEKIQ_WORKERS: 5
> 
> ```

![](https://media.tenor.com/Eec5MzUNqbQAAAAC/cruftbox-but-why.gif)

You should never bump `UNICORN_SIDEKIQS` that high, only increasing workers but

> [@markersocial](#):
>
> postgres will crash fairly regularly

This should never happen.

The possibilities are:

1. You are constrained on resources because either  
a) Your site has over grown the server resources  
b) You are misallocating resources
2. There is a bug somewhere in the stack

I’d start making

```plaintext
UNICORN_SIDEKIQS: 1
DISCOURSE_SIDEKIQ_WORKERS: 20

```

which should release some RAM from your server.

For further information you will need to run the offending jobs in a PostgreSQL console and report what is the bottleneck.

---

_[View the full topic](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166)._
