调优MYSQL有多种模式

发布于 2025-01-18 03:38:37 字数 399 浏览 4 评论 0原文

我有一个带有许多模式的DB mysql。大约5K -7K模式。

我的系统有时会遇到OOM杀手案。

那是不正常的吗?

我们有5个方案不同的结构。其余的是相同的,每个架构对应于1个用户。

有什么方法可以调整此DB吗? [我还没有找到一种方法]

如何降低OOM错误率? [就我而言,减少Inno缓冲区〜70%总RAM并解决所有缓慢查询]

*新的: 因为我们每个模式有许多 17个表的模式,所以1个表具有〜10个分区。因此,在 datadir 中,每个目录架构包含超过 25-30的文件。

哪种方法可以减少每个架构的文件数量?

我是否应该使用表空间存储所有表不使用分区来减少?

I have a DB MYSQL with many schema. Around 5k - 7k schemas.

My system sometime meet OOM Killer case.

Is that unnormal ?

we have 5 scheme different structure. The rest is the same and each schema corresponds to 1 user.

Is there any way to tunning up this db ?
[I haven't found a way yet]

How to reduce OOM error rate ?
[In my case, reduce inno buffer ~70% total RAM and resolve all slow query]

*NEW:
Because we have many schemas with 17 tables per schema, 1 table has ~10 partitions. So in datadir each directory schema contains more than 25-30 files.

Which is the way to reduce the number of files per schema?

Should I use tablespace to store all table not use partition to reduce?

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

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

发布评论

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