# 预期的 Redis 连接数

**URL:** <https://meta.discourse.org/t/expected-number-of-redis-connections/227000>\
**Category:** Self-hosting\
**Tags:** hosting\
**Created:** [2022 年5 月 14 日 02:02 UTC](https://meta.discourse.org/t/expected-number-of-redis-connections/227000 "2022-05-14T02:02:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![dotnetnate](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dotnetnate/32/198858_2.png) [@dotnetnate](https://meta.discourse.org/u/dotnetnate)\
发布日期： [2022 年5 月 14 日 02:02 UTC](https://meta.discourse.org/t/expected-number-of-redis-connections/227000/1 "2022-05-14T02:02:43Z")

</div>

我们在 Azure 上运行了多个 Discourse 实例，并为此使用共享的 Redis 服务。对于大约 20 个实例，我看到连接到 Redis 的峰值是 350 个连接，并且它在 330-340 之间波动，平均每个实例约 17 个连接。考虑到 Redis 在 CPU 和内存方面都未得到充分利用，这会严重影响 SKU 的连接限制。

这个比例是预期的吗？

---

_[View the full topic](https://meta.discourse.org/t/expected-number-of-redis-connections/227000)._
