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

StatefulServiceProperties

有状态服务资源的属性。

属性

名称 类型 必需
serviceKind 字符串
placementConstraints string
correlationScheme ServiceCorrelationDescription 数组
serviceLoadMetrics ServiceLoadMetricDescription 数组
servicePlacementPolicies ServicePlacementPolicyDescription 数组
defaultMoveCost string (枚举)
provisioningState string
serviceTypeName string
partitionDescription PartitionSchemeDescription
hasPersistedState boolean
targetReplicaSetSize integer
minReplicaSetSize integer
replicaRestartWaitDuration 字符串(日期时间)
quorumLossWaitDuration 字符串(日期时间)
standByReplicaKeepDuration 字符串(日期时间)

serviceKind

类型:字符串
必需:是

鉴别器属性。 对于“StatefulServiceProperties”类型的对象,其值必须为“Stateful”。


placementConstraints

类型:字符串
必需:否

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


correlationScheme

类型ServiceCorrelationDescription 数组
必需:否

描述服务与其他服务的相关性的列表。


serviceLoadMetrics

类型ServiceLoadMetricDescription 的数组
必需:否

服务负载指标作为 ServiceLoadMetricDescription 对象的数组提供。


servicePlacementPolicies

类型ServicePlacementPolicyDescription 数组
必需:否

描述服务与其他服务的相关性的列表。


defaultMoveCost

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

指定服务的移动成本。

可能的值包括:

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

provisioningState

类型:字符串
必需:否

当前部署或预配状态,仅显示在响应中


serviceTypeName

类型:字符串
必需:否

服务类型的名称


partitionDescription

类型PartitionSchemeDescription
必需:否

描述服务的分区方式。


hasPersistedState

类型:布尔值
必需:否

一个标志,指示这是否是在本地磁盘上存储状态的持久性服务。 如果为 ,则此属性的值为 true,否则为 false。


targetReplicaSetSize

类型:整数
必需:否
InclusiveMinimum:1

数字形式的目标副本集大小。


minReplicaSetSize

类型:整数
必需:否
InclusiveMinimum:1

数字形式的最小副本集大小。


replicaRestartWaitDuration

类型:字符串 (日期时间)
必需:否

副本 (replica) 关闭到创建新副本 (replica) 之间的持续时间,以 ISO 8601 格式表示 (hh:mm:ss.s) 。


quorumLossWaitDuration

类型:字符串 (日期时间)
必需:否

允许分区处于仲裁丢失状态的最长持续时间,以 ISO 8601 格式表示 (hh:mm:ss.s) 。


standByReplicaKeepDuration

类型:字符串 (日期时间)
必需:否

有关删除 StandBy 副本之前应保留多长时间的定义,以 iso 8601 格式表示 (hh:mm:ss.s) 。