您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

有状态的服务分区信息StatefulServicePartitionInfo

有关有状态服务交换矩阵服务的分区的信息。Information about a partition of a stateful Service Fabric service..

属性Properties

名称Name 类型Type 必选Required
ServiceKind 字符串string Yes
HealthState 字符串(枚举)string (enum) No
PartitionStatus 字符串(枚举)string (enum) No
PartitionInformation 分区信息PartitionInformation No
TargetReplicaSetSize 整数 (int64)integer (int64) No
MinReplicaSetSize 整数 (int64)integer (int64) No
LastQuorumLossDuration 字符串(持续时间)string (duration) No
PrimaryEpoch 时代Epoch No

服务金德ServiceKind

类型: 字符串Type: string
必需: 是Required: Yes

歧视属性。A discriminator property. 对于类型为"状态服务分区信息"的对象,其值必须为"状态"。Its value must be 'Stateful' for objects of type 'StatefulServicePartitionInfo'.


HealthState

类型: 字符串 (枚举)Type: string (enum)
必需: 否Required: No

服务结构实体的运行状况状态,如群集、节点、应用程序、服务、分区、副本等。The health state of a Service Fabric entity such as Cluster, Node, Application, Service, Partition, Replica etc.

可能的值包括:Possible values are:

  • Invalid- 指示无效的运行状况状态。Invalid - Indicates an invalid health state. 所有服务结构枚举的类型都无效。All Service Fabric enumerations have the invalid type. 值为 0。The value is zero.
  • Ok- 表示运行状况正常。Ok - Indicates the health state is okay. 值为 1。The value is 1.
  • Warning- 指示运行状况处于警告级别。Warning - Indicates the health state is at a warning level. 值为 2。The value is 2.
  • Error- 指示运行状况处于错误级别。Error - Indicates the health state is at an error level. 应调查错误运行状况状态,因为它们可能会影响群集的正确功能。Error health state should be investigated, as they can impact the correct functionality of the cluster. 值为 3。The value is 3.
  • Unknown- 指示未知运行状况。Unknown - Indicates an unknown health status. 值为 65535。The value is 65535.

PartitionStatus

类型: 字符串 (枚举)Type: string (enum)
必需: 否Required: No

服务结构服务分区的状态。The status of the service fabric service partition.

可能的值包括:Possible values are:

  • Invalid- 指示分区状态无效。Invalid - Indicates the partition status is invalid. 所有服务结构枚举的类型都无效。All Service Fabric enumerations have the invalid type. 值为 0。The value is zero.
  • Ready- 指示分区已准备就绪。Ready - Indicates that the partition is ready. 这意味着,对于无状态服务分区,至少有一个实例是向上的,对于有状态的服务分区,就绪副本的数量大于或等于 MinReplicaSetSize。This means that for a stateless service partition there is at least one instance that is up and for a stateful service partition the number of ready replicas is greater than or equal to the MinReplicaSetSize. 值为 1。The value is 1.
  • NotReady- 指示分区未就绪。NotReady - Indicates that the partition is not ready. 当其他状态不应用时,将返回此状态。This status is returned when none of the other states apply. 值为 2。The value is 2.
  • InQuorumLoss- 指示分区处于仲裁丢失状态。InQuorumLoss - Indicates that the partition is in quorum loss. 这意味着,启动并参与副本集的副本数小于此分区的 MinReplicaSetSize。This means that number of replicas that are up and participating in a replica set is less than MinReplicaSetSize for this partition. 值为 3。The value is 3.
  • Reconfiguring- 指示分区正在进行对其副本集的重新配置。Reconfiguring - Indicates that the partition is undergoing reconfiguration of its replica sets. 这可能是由于故障转移、升级、负载平衡或从副本集中添加或删除副本。This can happen due to failover, upgrade, load balancing or addition or removal of replicas from the replica set. 值为 4。The value is 4.
  • Deleting- 指示正在删除分区。Deleting - Indicates that the partition is being deleted. 值为 5。The value is 5.

PartitionInformation

类型分区信息Type: PartitionInformation
必需: 否Required: No

有关分区标识、分区方案和它支持的键的信息。Information about the partition identity, partitioning scheme and keys supported by it.


TargetReplicaSetSize

类型: 整数 (int64)Type: integer (int64)
必需: 否Required: No

数字形式的目标副本集大小。The target replica set size as a number.


MinReplicaSetSize

类型: 整数 (int64)Type: integer (int64)
必需: 否Required: No

数字形式的最小副本集大小。The minimum replica set size as a number.


LastQuorumLossDuration

类型: 字符串(持续时间)Type: string (duration)
必需: 否Required: No

此分区在仲裁丢失时长。The duration for which this partition was in quorum loss. 如果分区当前处于仲裁丢失状态,它将返回自该分区处于该状态以来的持续时间。If the partition is currently in quorum loss, it returns the duration since it has been in that state. 此字段将 ISO8601 格式用于指定该持续时间。This field is using ISO8601 format for specifying the duration.


PrimaryEpoch

类型纪元Type: Epoch
必需: 否Required: No

Epoch 是整个分区的配置编号。An Epoch is a configuration number for the partition as a whole. 当副本集的配置发生更改时(例如,当主副本更改时,从新主副本复制的操作)将被认为是来自旧主副本发送的操作的新 Epoch。When the configuration of the replica set changes, for example when the Primary replica changes, the operations that are replicated from the new Primary replica are said to be a new Epoch from the ones which were sent by the old Primary replica.