GAE Managed VM with automatic scaling and resources config fails with HttpError 409

三世轮回 提交于 2020-01-05 14:11:27

问题


I'm experiencing the following error intermittently while deploying a java application to appengine using managed VMs with explicit resource configuration:

Deployment failed: https://www.googleapis.com/autoscaler/v1beta2/projects/managedvm409example/zones/us-central1-f/autoscalers?alt=json returned "Autoscaler resource with this name already exists in this zone or there exists an Autoscaler controlling the given target."> Deployed Version: 1.385892435190233331

Here's the configuration I'm using:

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <application>managedvm409example</application>
    <version>1</version>

    <threadsafe>true</threadsafe>

    <precompilation-enabled>false</precompilation-enabled>

    <vm>true</vm>

    <automatic-scaling>
        <min-num-instances>2</min-num-instances>
        <max-num-instances>10</max-num-instances>
        <cool-down-period-sec>90</cool-down-period-sec>
    </automatic-scaling>

    <resources>
        <cpu>1</cpu>
        <memory-gb>4</memory-gb>
        <disk-size-gb>10</disk-size-gb>
    </resources>

    <system-properties>
        <property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />
    </system-properties>
</appengine-web-app>

The problem seems to go away if the automatic-scaling configuration element is removed, but there doesn't seem to be anything exotic in there. Anyone have any ideas on what might be going on?

EDIT: The situation doesn't really change with automatic-scaling removed, apparently, it's just intermittent.

来源:https://stackoverflow.com/questions/31564262/gae-managed-vm-with-automatic-scaling-and-resources-config-fails-with-httperror

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