通过


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

StatelessServiceDescription.InstanceCount Property

Definition

Gets or sets the instance count of this service partition.

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

Property Value

The instance count of this service partition.

Remarks

The InstanceCount property indicates the number of instances to be created for this service. The specified number of instances will be maintained by Service Fabric. For a partitioned stateless service, InstanceCount indicates the number of instances to be kept per partition.

Note, -1 is a special value for InstanceCount. If InstanceCount is set to -1, the number of instances to be kept per partition is equal to the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.

Applies to