高负载下间歇性 MySQL 错误:“未知 MySQL 服务器主机‘XXXX’”

发布于 2024-09-19 15:52:19 字数 420 浏览 0 评论 0原文

我有一个负载很重的 MySQL 服务器(每秒约 960 个查询),有约 400 个客户端不断对其运行查询。它位于一台功能强大的机器上(8 核、Xeon、3.3 GHz),看起来它可以跟上负载,没有问题。

偶尔(每周一次),所有客户端进程都会同时出错,并显示消息“未知 MySQL 服务器 'XXX'”。然后,不用我做任何事,不久之后它们就全部复活了。

我将 max_connections 设置为 500,但我认为如果超过该数字,我应该会收到“连接过多”错误,而不是我看到的错误。

谁能帮我弄清楚为什么我会收到这些错误?

谢谢,
乔纳森

System specs:
8 cores, Xeon 3.2 GHz
Ubuntu 8.04
Kernel: Linux 2.6.24-27
MySQL 5.0.51a-3ubuntu5.7

I have a MySQL server under heavy load (~960 queries per second) with ~ 400 clients continuously running queries against it. It is on a powerful machine (8 cores, Xeon, 3.3 GHz) and it looks like it can keep up with the load, no problem.

Occasionally (once per week), all client processes will error at the same time with the message "Unknown MySQL server 'XXX'". Then, without me doing anything, they all come back to life a short time later.

I have max_connections set to 500, but I think that if I exceed that number then I should get a "Too many connections" error, and not the one I'm seeing.

Can anyone help me figure out why I'm getting these errors?

Thanks,
Jonathan

System specs:
8 cores, Xeon 3.2 GHz
Ubuntu 8.04
Kernel: Linux 2.6.24-27
MySQL 5.0.51a-3ubuntu5.7

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

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

发布评论

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