mariaDB 中的最大连接数和最大用户连接数如何工作

发布于 2025-01-20 13:42:36 字数 336 浏览 2 评论 0原文

我有一个运行10个数据库/用户的Mariadb服务器,用于10个不同的WordPress站点。

我想限制资源,因此1个网站并不能全部消耗。我认为最大连接和最大用户连接是我应该播放的变量。

因此,我的主要问题是max Connections(默认151)限制了到每个数据库的连接,还是与服务器上的所有数据库共享的连接?

max_user_connections变量工作如何,每个IP地址的连接是请求数据吗?

我的目标是将每个WordPress站点限制为使用大量资源,我想将数据库连接限制为每个站点的最小值。

任何帮助都非常感谢!

I have a MariaDB server running 10 databases/users used for 10 different Wordpress sites.

I want to limit the resources so 1 site doesn't consumes it all. I think the max connections and max user connections is the variable I should play with.

So my main question is does max connections (default 151) limit the connections to each database or is it shared with all databases on the server?

And how do the max_user_connections variable work, is it connections per IP address that request data?

My goal is to limit the each Wordpress site from using to much resources and I want to limit the database connections to a minimum for each site.

Any help is much appreciated!

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

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

发布评论

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

评论(1

留蓝 2025-01-27 13:42:36

max_connections 是服务器的总数。

max_user_connections 是每个用户的数字。

由于每个WordPress站点的用户不同,设置max_user_connections = 15在全球范围内将阻止在单个WordPress网站上使用过度连接。

max_connections is the total number for the server.

max_user_connections is the number per user.

As you have a different user per Wordpress site, setting max_user_connections = 15 globally will prevent the use of excessive connections on a single Wordpress site.

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