App Engine 实例 CPU 会在一段时间后受到限制吗?

Are app engine instances CPUs throttled after a while?

我正在使用 App Engine 任务处理程序来处理工作负载(将文件导入数据库)。 查看我的 Cloud SQL 监控,我发现几分钟后,写入速率下降(见图),我的任务运行得更慢。 Google 会限制实例的 CPU 还是可能有其他原因?

根据文档https://cloud.google.com/compute/docs/cpu-platforms

所有核心都有睿频,但不能保证。

All-core turbo frequency: The frequency at which each CPU typically runs when all cores in the socket are not idle at the same time.

此 post 解释了如何监控 CPU 速度 https://askubuntu.com/questions/218567/any-way-to-check-the-clock-speed-of-my-processor

您可以通过 ssh 进入机器并对其进行监控 real-time。

包括云在内的大多数服务 SQL 都提供基于磁盘大小和其他因素的 IOPS 配额。

您的屏幕截图表明您已经超过了 Cloud SQL 的 READ 配额。结果是磁盘节流 I/O.

创建 Cloud SQL 实例时,您选择了一个非常小的存储磁盘。我建议将该磁盘的大小调整得更大,以便正常操作不会超过读取和写入的磁盘 IOPS 配额。