简体   繁体   English

Memory 在云中的使用率 sql 非常高

[英]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观察

  1. handler_rollback avg about 30 per day need to be prevented to conserve resources. handler_rollback 平均每天需要阻止 30 次以节省资源。
  2. innodb_buffer_pool_dump_pct of 90 (percent) would shorten 'warm up' delays. 90(百分比)的 innodb_buffer_pool_dump_pct 将缩短“预热”延迟。
  3. select_scan RPS of 122 can be avoided with appropriate indexes and expedite query completion.使用适当的索引可以避免 122 的 select_scan RPS 并加快查询完成。 Thanks for sharing your data.感谢您分享您的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS SDK 的 ESBuild 缩小导致 memory 在 Lambda 上的高使用率 - ESBuild minification of AWS SDK causes high memory usage on Lambda Amazon Keyspaces“DefaultTokenFactoryRegistry 和 DefaultTopologyMonitor”导致高 CPU 和 memory 使用率 - Amazon Keyspaces "DefaultTokenFactoryRegistry and DefaultTopologyMonitor" causes High CPU and memory usage Google Cloud Platform:如何监控 memory VM 实例的使用情况 - Google Cloud Platform: how to monitor memory usage of VM instances 有时 RDS CPU 利用率会非常高 - Sometimes RDS CPU utilization is going to very high Firebase:云存储高带宽 - Firebase: cloud storage high bandwith Firebase 云函数很慢 - Firebase cloud functions is very slow Firebase 实时数据库下载使用率高 - Firebase realtime database high download usage 在 gcloud 应用引擎上运行 Python Flask 应用程序的延迟非常高 - Very high latency running Python Flask app on gcloud app engine 谷歌云计算是否存在数据使用限制 - Are there data usage limitations with Google Cloud Compute 简单 Mongo 的 RU 使用率高 API $group 在 Azure CosmosDB 中的操作 - RU Usage High for simple Mongo API $group Operation in Azure CosmosDB
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM