最小连接池大小

发布于 2024-09-05 00:16:29 字数 86 浏览 2 评论 0原文

我有一个流量很高的网站。

也许我会将最小连接池增加到 100。

这太高了?网站每天浏览量为 10000,

谢谢

I have a website with high traffic.

Maybe I will increase minimum connections pool, to 100.

This is too high? Website have 10000 pageviews/day

Thanks

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝咒 2024-09-12 00:16:29

仅当您的服务器可以处理所有打开的连接时,增加连接池才有用。如果您想实现更快的响应时间,您应该考虑尽可能缓存数据并减少服务器请求/响应总数

Increasing the connection pool is only helpful if your server can handle all the open connections. If you are trying to accomplish faster response times you should look into caching data where you can and reducing total server request/responses

牵你手 2024-09-12 00:16:29

这看起来非常高。每天 10,000 次综合浏览量意味着平均每 10 秒的综合浏览量少于 1 次。

这取决于您的数据库服务器,但我怀疑它能否有效地同时执行 100 个查询。即使可以,也不太可能发生,因此将最小池大小设置为 100 是没有意义的。

如果池中的连接用完,您应该检查是否正确处理连接。

That seems awfully high. 10,000 pageviews per day means you get less than 1 pageview per 10 seconds on average.

It would depend on your database server, but I doubt it can effectively perform 100 queries at the same time. Even if it can, it's not likely to ever occur, so setting the minimum pool size to 100 makes no sense.

If you're running out of connections in your pool, you should check if you're disposing your connections properly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文