Java AppEngine标准&x2014;无法设置<;最小实例>;到appengine-web.xml中的0

Java AppEngine标准&x2014;无法设置<;最小实例>;到appengine-web.xml中的0,java,google-app-engine,Java,Google App Engine,使用AppEngine的autoscaler的新功能,为自动缩放配置添加了新选项,如min instances和max instances,表示可以将最小实例数设置为0,以降低成本: 可选。应用程序的最小实例数 要为此模块版本创建的引擎。这些例子很有用 请求到达时的流量,即使在 根据需要启动其他实例以处理流量 指定0到1000之间的值。您可以将参数设置为该值 0允许在没有请求时扩展到0实例以降低成本 正在接受服务。请注意,您是按实例数收费的 指定它们是否接收流量 但是,关于AppEngine

使用AppEngine的autoscaler的新功能,为自动缩放配置添加了新选项,如
min instances
max instances
,表示可以将最小实例数设置为0,以降低成本:

可选。应用程序的最小实例数 要为此模块版本创建的引擎。这些例子很有用 请求到达时的流量,即使在 根据需要启动其他实例以处理流量

指定0到1000之间的值。您可以将参数设置为该值 0允许在没有请求时扩展到0实例以降低成本 正在接受服务。请注意,您是按实例数收费的 指定它们是否接收流量

但是,关于AppEngine cloud SDK提供的
xsd
模式,只能在
min instances
max instances
标记中设置
正整数

<xs:complexType name="automatic-scaling-type">
    <xs:all>
      <xs:element type="xs:string" name="min-pending-latency" minOccurs="0"/>
      <xs:element type="xs:string" name="max-pending-latency" minOccurs="0"/>
      <xs:element type="xs:string" name="min-idle-instances" minOccurs="0"/>
      <xs:element type="xs:string" name="max-idle-instances" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="min-instances" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="max-instances" minOccurs="0"/>
      <xs:element type="xs:double" name="target-cpu-utilization" minOccurs="0"/>
      <xs:element type="xs:double" name="target-throughput-utilization" minOccurs="0"/>
      <xs:element type="xs:string" name="max-concurrent-requests" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="min-num-instances" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="max-num-instances" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="cool-down-period-sec" minOccurs="0"/>
      <xs:element type="ns:cpu-utilization-type" name="cpu-utilization" minOccurs="0" xmlns:ns="http://appengine.google.com/ns/1.0"/>
      <xs:element type="xs:positiveInteger" name="target-network-sent-bytes-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-network-sent-packets-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-network-received-bytes-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-network-received-packets-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-disk-write-bytes-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-disk-write-ops-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-disk-read-bytes-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-disk-read-ops-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-request-count-per-sec" minOccurs="0"/>
      <xs:element type="xs:positiveInteger" name="target-concurrent-requests" minOccurs="0"/>
      <xs:element type="ns:flex-custom-metrics-array" name="custom-metrics" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

我同意将其设置为正整数对于
max instances
是有意义的,但是
min instances
呢?这是文档中的错误还是打印错误?

这是Java AppEngine SDK中的错误,现在通过新的SDK版本得到解决: