mariaDB 中的最大连接数和最大用户连接数如何工作
我有一个运行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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.