如何减少/指定芹菜花中的连接数量?

发布于 2025-01-28 05:47:24 字数 278 浏览 4 评论 0原文

我正在有限的服务主机上运行一个应用程序,其中Redis服务器最多有50个连接。我已经配置了我的Web应用程序,以使用一致的20个REDIS连接。但是,如果我推出花朵以检查Redis,我的连接会跳到45个。如何减少启动的连接数量?

我以为我通过提出花开始命令找到了一种方法:

celery -A myapp flower --redis_max_connections=2 --concurrency=4 -l info

但是这似乎没有改变任何东西...我想念什么?

I am running an app on a limited service host, where my Redis server has a maximum of 50 connections. I have configured my web app to be using a consistent 20 Redis connections. However, if I launch Flower to inspect the Redis, my connections jump up to 45. How can I reduce how many connections Flower is launching?

I thought I found a way by making my flower start command:

celery -A myapp flower --redis_max_connections=2 --concurrency=4 -l info

But this didn't seem to change anything... What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文