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

StatefulServiceUpdateDescription

描述有状态服务的更新。

性能

名字 类型 必填
Flags 字符串
PlacementConstraints 字符串
CorrelationScheme serviceCorrelationDescription 的 数组
LoadMetrics ServiceLoadMetricDescription 数组
ServicePlacementPolicies ServicePlacementPolicyDescription 的数组
DefaultMoveCost string (枚举)
ScalingPolicies ScalingPolicyDescription 的数组
ServiceDnsName 字符串
TagsForPlacement NodeTagsDescription
TagsForRunning NodeTagsDescription
TargetReplicaSetSize 整数
MinReplicaSetSize 整数
ReplicaRestartWaitDurationSeconds 字符串
QuorumLossWaitDurationSeconds 字符串
StandByReplicaKeepDurationSeconds 字符串
ServicePlacementTimeLimitSeconds 字符串
DropSourceReplicaOnMove 布尔
ReplicaLifecycleDescription ReplicaLifecycleDescription
AuxiliaryReplicaCount 整数

Flags

类型: 字符串
必需: 否

指示是否设置其他属性的标志。 每个关联的属性对应于下面指定的标志,如果已设置,则指示指定属性。 此属性可以是使用按位“OR”运算符获取的这些标志的组合。 例如,如果提供的值为 (6 -> 110),则会设置 ReplicaRestartWaitDuration(2 -> 010)和 QuorumLossWaitDuration(4 -> 100)的标志。

价值
没有 0x0000
TargetReplicaSetSize 0x0001
ReplicaRestartWaitDuration 0x0002
QuorumLossWaitDuration 0x0004
StandByReplicaKeepDuration 0x0008
MinReplicaSetSize 0x0010
PlacementConstraints 0x0020
PlacementPolicyList 0x0040
相关 0x0080
指标 0x0100
DefaultMoveCost 0x0200
ScalingPolicy 0x0400
ServicePlacementTimeLimit 0x0800
DropSourceReplicaOnMove 0x1000
ServiceDnsName 0x2000
IsSingletonReplicaMoveAllowedDuringUpgrade 0x4000
RestoreReplicaLocationAfterUpgrade 0x8000
TagsForPlacement 0x10000
TagsForRunning 0x20000
AuxiliaryReplicaCount 0x40000
ServiceSensitivity 0x80000

PlacementConstraints

类型: 字符串
必需: 否

作为字符串的放置约束。 放置约束是节点属性上的布尔表达式,允许根据服务要求将服务限制为特定节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue”。。


CorrelationScheme

类型ServiceCorrelationDescription
必需: 否

相关方案。


LoadMetrics

类型ServiceLoadMetricDescription 的数组
必需: 否

服务加载指标。


ServicePlacementPolicies

类型ServicePlacementPolicyDescription 数组
必需: 否

服务放置策略。


DefaultMoveCost

类型:字符串(枚举)
必需: 否

服务的移动成本。

指定服务的移动成本。

可能的值包括:

  • Zero - 零移动成本。 此值为零。
  • Low - 将服务的移动成本指定为“低”。 值为 1。
  • Medium - 将服务的移动成本指定为中等。 值为 2。
  • High - 将服务的移动成本指定为“高”。 值为 3。
  • VeryHigh - 将服务的移动成本指定为 VeryHigh。 值为 4。

ScalingPolicies

类型ScalingPolicyDescription 的数组
必需: 否

此服务的缩放策略。


ServiceDnsName

类型: 字符串
必需: 否

服务的 DNS 名称。


TagsForPlacement

类型NodeTagsDescription
必需: 否

用于放置此服务的标记。


TagsForRunning

类型NodeTagsDescription
必需: 否

用于运行此服务的标记。


TargetReplicaSetSize

类型:整数
必需: 否
InclusiveMinimum1

目标副本集大小为数字。


MinReplicaSetSize

类型:整数
必需: 否
InclusiveMinimum1

最小副本集大小为数字。


ReplicaRestartWaitDurationSeconds

类型: 字符串
必需: 否

副本关闭和创建新副本之间的持续时间(以秒为单位)。


QuorumLossWaitDurationSeconds

类型: 字符串
必需: 否

允许分区处于仲裁丢失状态的最大持续时间(以秒为单位)。


StandByReplicaKeepDurationSeconds

类型: 字符串
必需: 否

有关在删除 StandBy 副本之前应保留多长时间的定义。


ServicePlacementTimeLimitSeconds

类型: 字符串
必需: 否

在报告生成停滞之前,副本可以保留 InBuild 的持续时间。


DropSourceReplicaOnMove

类型:布尔值
必需: 否

指示是否删除源辅助副本,即使目标副本尚未完成生成。 如果需要的行为是尽快将其删除,则此属性的值为 true(如果不是 false)。


ReplicaLifecycleDescription

类型ReplicaLifecycleDescription
必需: 否

定义此服务的副本在r 生命周期内的行为方式。


AuxiliaryReplicaCount

类型:整数
必需: 否
InclusiveMinimum0

辅助副本计数为数字。 若要使用辅助副本,必须为 true:AuxiliaryReplicaCount <(TargetReplicaSetSize+1)/2 和 TargetReplicaSetSize >=3。