【问题标题】:CloudSQL database crashes periodically (Out of memory)CloudSQL 数据库定期崩溃(内存不足)
【发布时间】:2018-03-08 18:04:21
【问题描述】:

我们的 cloudSQL 数据库会定期崩溃。

我们在日志中看到的错误是:

[ERROR] InnoDB: Write to file ./ib_logfile1failed at offset 237496832, 1024 bytes should have been written, only 0 were written. Operating system error number 12. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.

据我了解,错误号 12 的意思是“无法分配内存”。有没有办法我们可以配置 cloudsql 以留下更大的可用内存缓冲区?另一种方法是升级以获得更多内存,但据我了解,cloudSQL 会自动使用所有可用的内存......这可能会减少问题还是可能会以同样的方式继续存在? 我们还能做些什么来减少这个问题?

【问题讨论】:

    标签: mysql google-cloud-platform google-cloud-sql


    【解决方案1】:

    您的系统可能是磁盘空间不足而不是内存不足,尤其是在 HA 配置中运行时。

    (如果磁盘不是问题,您应该提交 GCP 支持票而不是在这里)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-22
      • 1970-01-01
      • 1970-01-01
      • 2012-07-01
      相关资源
      最近更新 更多