我们在gcp中使用的是CloudSQLMySQL8.0.18,实例的总内存是20 gb,18.5GB是限制,当前的利用率接近17.5GB,因此我们的数据库实例不断崩溃。
在一个月内,它已经坠毁了3次。
为什么我的db实例RAM利用率很高,这个场景有什么解决方案吗?
vCPUs :- 8,内存:- 20 SSD,SSD存储器-410 SSD

发布于 2022-10-10 17:55:03
每秒速率= RPS
为Google云数据库旗帜考虑的建议(今天都是动态的)
innodb_lru_scan_depth=100 # from 2048 to conserve 90% of CPU cycles used for function
read_rnd_buffer_size=32768 # from 256K to reduce handler_read_rnd_next RPS of 195,877
thread_cache_size=1024 # from 48 to reduce threads_created RPS > 3
read_buffer_size-262144 # from 131072 to reduce handler_read_next RPS of 8,487请查看个人资料以获取联系信息。更多的全球变量需要调整。
观察
需要防止
https://stackoverflow.com/questions/73986706
复制相似问题