你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

StatelessServiceDescription.MinInstancePercentage 属性

定义

获取或设置最小实例百分比。

public int MinInstancePercentage { get; set; }
member this.MinInstancePercentage : int with get, set
Public Property MinInstancePercentage As Integer

属性值

最小实例百分比。 如果未提供,则默认为 0。 请注意,MinInstanceCount 参数必须始终大于 0,因此默认为 0 保证 MinInstancePercentage 不起作用,因为 MinInstanceCount 具有优先级。

注解

属性MinInstancePercentage是在升级或停用节点等操作期间必须达到 EnsureAvailability 安全检查的最低百分比InstanceCount。 使用的实际数字为 max ( MinInstanceCount,ceil ( MinInstancePercentage/100.0 * InstanceCount) ) 。

请注意,如果 InstanceCount 设置为 -1,在 MinInstancePercentage 计算期间,将首先将 -1 转换为根据服务上的放置约束允许放置实例的节点数。

适用于