# 您的 Redis 网络连接性能极差

**URL:** <https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166>\
**Category:** Self-hosting\
**Created:** [2024年十二月12日 22:26 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:** 2

<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:** [2024年十二月19日 14:38 UTC](https://meta.discourse.org/t/your-redis-network-connection-is-performing-extremely-poorly/342166/2 "2024-12-19T14:38:34Z")

</div>

为了跟进这个问题，我遇到了与 `Jobs::PostAlert` 相同的问：

> [@PostAlerter job hangs/OOMs as of late](https://meta.discourse.org/t/postalerter-job-hangs-ooms-as-of-late/270183?u=markersocial):
>
> Ever since [FEATURE: new watched\_precedence\_over\_muted setting (#22252) · discourse/discourse@9cf981f · GitHub](https://github.com/discourse/discourse/commit/9cf981f1f15d3a22929003f0ca59ac2fdd28d7d4) (presumably!) we’re having Sidekiq queues fill up/OOM with stuck PostAlert jobs: Given this commit has already had a similar regression ([FIX: error when CategoryList tried to find relevant topics by lis2 · Pull Request #22339 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/22339)) it’s fairly suspect - we’ll try downgrading to a commit before the aforementioned one now though and will repor…

在使用 4 个 Sidekiq 和 5 个（默认）线程进行当前测试时，这些作业通常需要 15 分钟。看来 Sidekiq 的每秒作业速度主要取决于同时运行的作业数量以及有多少线程可用于其他作业。

将 Sidekiq 增加到 6 个或更多（5 个线程）将提高队列清除速度，但 PostgreSQL 会经常崩溃（我猜测是由于同时运行了过多的 `Jobs::PostAlert` 作业）。

这是 Stable 3.3.2 版本。如果我没记错的话，来自链接线程的[更改和修复](https://meta.discourse.org/t/postalerter-job-hangs-ooms-as-of-late/270183/9?u=markersocial)似乎已在 3.3.2 版本中实现。

---

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