[英]Memory usage in cloud sql is very high
We are using cloud sql mysql 8.0.18 in gcp, the total memory of the instance is 20gb, 18.5 gb is the limit and the current utilization is nearly 17.5 gb due to which our database instance keeps getting crash.我们在 gcp 中使用云 sql mysql 8.0.18,实例的总 memory 为 20gb,18.5gb 是限制,当前利用率接近 17.5gb,因此我们的数据库实例不断崩溃。
In one month it has crashed 3 times.在一个月内,它崩溃了 3 次。
Why my db instance RAM utilization is high, Is there any solution of this scenario.为什么我的数据库实例 RAM 利用率很高,这种情况有什么解决方案吗?
vCPUs:- 8, Memory:- 20gb, SSD storage - 410gb vCPU:- 8、Memory:- 20gb,SSD 存储 - 410gb
Rate Per Second = RPS每秒速率 = RPS
Suggestions to consider for your Google Cloud Database Flags (all dynamic today)为你的谷歌云数据库标志考虑的建议(今天都是动态的)
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
Please view profile for contact info.请查看个人资料以获取联系信息。 Many more Global Variables need ajustment.更多的全局变量需要调整。
Observations观察
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.