how to increase the “soft memory limit” for google app engine beyond 2gb

谁说胖子不能爱 提交于 2020-08-11 03:59:11

问题


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

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?


回答1:


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] https://cloud.google.com/appengine/docs/flexible/custom-runtimes/configuring-your-app-with-app-yaml#resource-settings



来源:https://stackoverflow.com/questions/57469842/how-to-increase-the-soft-memory-limit-for-google-app-engine-beyond-2gb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!