# "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:** 6

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [February 16, 2026, 7:10am UTC](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166/6 "2026-02-16T07:10:20Z")

</div>

Apologies for disappearing and thank you for the responses. 🙂

I believe that the main issue for Redis being slow, was that THP was still enabled (when I had thought otherwise):

> [@MKJ's Opinionated Discourse Deployment Configuration](https://meta.discourse.org/t/mkjs-opinionated-discourse-deployment-configuration/193355/34):
>
> I think there may be an issue with the THP configuration in the wiki. I was having issues with Redis on Ubuntu: Your Redis network connection is performing extremely poorly. Last RTT readings were [96585, 101554, 97189, 99769, 94618], ideally these should be \< 1000. Ensure Redis is running in the same AZ or dat I believed that THP was already disabled (from following the wiki) - but turned out it was still enabled sweat_smile. Disabling THP ended up resolving the above for me iirc (late la…

For PG crashing, the main solution for me was adding this to the app.yml:

```plaintext
docker_args:
  - "--shm-size=34g"

```

With the value set to db\_shared\_buffers + 2GB, with db\_shared\_buffers being 25% of the total host machine ram.

Overriding the default 512m:

> <https://github.com/discourse/discourse_docker/blob/4ae1f691437c8a057cbbc19a5c60298ed3e8b244/launcher#L681>

> <https://github.com/discourse/discourse_docker/blob/4ae1f691437c8a057cbbc19a5c60298ed3e8b244/launcher#L697>

> <https://github.com/discourse/discourse_docker/blob/4ae1f691437c8a057cbbc19a5c60298ed3e8b244/launcher#L741>

---

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