如何增加“软存储器限制"?适用于2GB以上的Google App Engine [英] how to increase the "soft memory limit" for google app engine beyond 2gb

查看:112
本文介绍了如何增加“软存储器限制"?适用于2GB以上的Google App Engine的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过使用此应用程序yaml文件,我超出了Google App Engine中的软内存限制(4到6 GB,软限制设置为2GB):

I am exceeding the soft memory limit in google app engine (4 to 6 gb, soft limit is set at 2gb) by using this app yaml file:

runtime: python37
service: snow
instance_class: F4_1G
resources:
  cpu: 1
  memory_gb: 16
  disk_size_gb: 20

似乎资源memory_gb与软限制"内存无关.在启动我的应用程序时,我需要训练一个大约需要4至6GB内存的ML模型.在应用程序部署期间还有其他方法可以增加内存吗?

It appears the resources memory_gb is not related to the "soft limit" memory. When booting up my app, I need to train an ML model that takes around 4 to 6gb memory. Is there any other way to increase the memory during app deployment?

推荐答案

这是因为您正在尝试在App Engine标准中配置资源设置.资源部分只能在App Engine Flexible [1]中进行配置.我建议在app.yaml中添加env: flex使其生效.

This is because you are trying to configure resource settings in App Engine Standard. The resources section is only configurable in App Engine Flexible [1]. I suggest adding env: flex in the app.yaml for it to take into effect.

[1] 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆