public class SpotMixedAllocationPolicy extends AbstractModel
构造器和说明 |
---|
SpotMixedAllocationPolicy() |
SpotMixedAllocationPolicy(SpotMixedAllocationPolicy source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
限定符和类型 | 方法和说明 |
---|---|
Long |
getBaseCapacity()
Get 混合模式下,基础容量的大小,基础容量部分固定为按量计费实例。
|
Boolean |
getCompensateWithBaseInstance()
Get 按量实例替补功能。
|
Long |
getOnDemandPercentageAboveBaseCapacity()
Get 超出基础容量部分,按量计费实例所占的比例。
|
String |
getSpotAllocationStrategy()
Get 混合模式下,竞价实例的分配策略。
|
void |
setBaseCapacity(Long BaseCapacity)
Set 混合模式下,基础容量的大小,基础容量部分固定为按量计费实例。
|
void |
setCompensateWithBaseInstance(Boolean CompensateWithBaseInstance)
Set 按量实例替补功能。
|
void |
setOnDemandPercentageAboveBaseCapacity(Long OnDemandPercentageAboveBaseCapacity)
Set 超出基础容量部分,按量计费实例所占的比例。
|
void |
setSpotAllocationStrategy(String SpotAllocationStrategy)
Set 混合模式下,竞价实例的分配策略。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SpotMixedAllocationPolicy()
public SpotMixedAllocationPolicy(SpotMixedAllocationPolicy source)
public Long getBaseCapacity()
public void setBaseCapacity(Long BaseCapacity)
BaseCapacity
- 混合模式下,基础容量的大小,基础容量部分固定为按量计费实例。默认值 0,最大不可超过伸缩组的最大实例数。
注意:此字段可能返回 null,表示取不到有效值。public Long getOnDemandPercentageAboveBaseCapacity()
public void setOnDemandPercentageAboveBaseCapacity(Long OnDemandPercentageAboveBaseCapacity)
OnDemandPercentageAboveBaseCapacity
- 超出基础容量部分,按量计费实例所占的比例。取值范围 [0, 100],0 代表超出基础容量的部分仅生产竞价实例,100 代表仅生产按量实例,默认值为 70。按百分比计算按量实例数时,向上取整。
比如,总期望实例数取 3,基础容量取 1,超基础部分按量百分比取 1,则最终按量 2 台(1 台来自基础容量,1 台按百分比向上取整得到),竞价 1台。
注意:此字段可能返回 null,表示取不到有效值。public String getSpotAllocationStrategy()
public void setSpotAllocationStrategy(String SpotAllocationStrategy)
SpotAllocationStrategy
- 混合模式下,竞价实例的分配策略。取值包括 COST_OPTIMIZED 和 CAPACITY_OPTIMIZED,默认取 COST_OPTIMIZED。
public Boolean getCompensateWithBaseInstance()
public void setCompensateWithBaseInstance(Boolean CompensateWithBaseInstance)
CompensateWithBaseInstance
- 按量实例替补功能。取值范围:
Copyright © 2022. All rights reserved.