簡體   English   中英

如何將Google App Engine的“軟內存限制”增加到2GB以上

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

我使用此應用程序yaml文件超出了Google App Engine中的軟內存限制(4到6 GB,軟限制設置為2GB):

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

看來資源memory_gb與“軟限制”內存無關。 啟動我的應用程序時,我需要訓練一個大約需要4至6GB內存的ML模型。 在應用程序部署期間,還有其他方法可以增加內存嗎?

這是因為您嘗試在App Engine標准中配置資源設置。 資源部分只能在App Engine Flexible [1]中進行配置。 我建議在app.yaml中添加env: flex使其生效。

[1] https://cloud.google.com/appengine/docs/flexible/custom-runtimes/configuring-your-app-with-app-yaml#resource-settings

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM