【问题标题】:GAE could not set min_instances for automatic scalingGAE 无法为自动缩放设置 min_instances
【发布时间】:2018-07-02 19:36:11
【问题描述】:

我正在尝试将我的 GAE 项目配置为在运行 自动缩放 选项时使用 min_instances=0

我按照docs 上的所有步骤操作,但在单击“执行”后,我收到了 BAD Request 错误:

错误提示“VM 版本不支持此字段”,但我仅使用 GAE。

另外,在第一次执行时,服务向我询问了一些授权,我同意了。

有没有办法解决这个问题?我找不到任何解释如何解决这个问题。

【问题讨论】:

  • 我只在 app.yaml 中直接设置过该设置,而不是在那个 UI 中,但请尝试删除 standard_scheduler_settings。我以前从未见过。 cloud.google.com/appengine/docs/standard/python/config/…
  • 您似乎在灵活环境中有一个应用程序,并且正在使用标准环境的掩码 [automaticScaling.standard_scheduler_settings.min_instances]。您应该改用 automaticScaling.min_total_instances。
  • @GonçaloAlbino 是正确的。我正在为 Python 使用 GAE Flex 环境。所以我可以使用automaticScaling.min_total_instances

标签: google-app-engine google-apps google-app-engine-python


【解决方案1】:

@GonçaloAlbino 观察到我使用 Flex 环境而不是 Standard。所以我可以使用automaticScaling.min_total_instances

【讨论】:

    猜你喜欢
    • 2014-11-16
    • 1970-01-01
    • 2019-08-16
    • 1970-01-01
    • 2021-11-06
    • 1970-01-01
    • 1970-01-01
    • 2021-12-22
    • 1970-01-01
    相关资源
    最近更新 更多