你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StatelessServiceProperties 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
无状态服务资源的属性。
[Newtonsoft.Json.JsonObject("Stateless")]
public class StatelessServiceProperties : Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceResourceProperties
[<Newtonsoft.Json.JsonObject("Stateless")>]
type StatelessServiceProperties = class
inherit ServiceResourceProperties
Public Class StatelessServiceProperties
Inherits ServiceResourceProperties
- 继承
- 属性
-
Newtonsoft.Json.JsonObjectAttribute
构造函数
StatelessServiceProperties() |
初始化 StatelessServiceProperties 类的新实例。 |
StatelessServiceProperties(String, Partition, Int32, String, IList<ServiceCorrelation>, IList<ServiceLoadMetric>, IList<ServicePlacementPolicy>, String, IList<ScalingPolicy>, String, String, Nullable<Int32>, Nullable<Int32>) |
初始化 StatelessServiceProperties 类的新实例。 |
属性
CorrelationScheme |
无状态服务资源的属性。 (继承自 ServiceResourcePropertiesBase) |
DefaultMoveCost |
获取或设置可能的值,包括:“Zero”、“Low”、“Medium”、“High” (继承自 ServiceResourcePropertiesBase) |
InstanceCount |
获取或设置实例计数。 |
MinInstanceCount |
获取或设置 minInstanceCount 是升级或停用节点等操作期间必须满足 EnsureAvailability 安全检查的最小实例数。 使用的实际数字为 max ( MinInstanceCount, ceil ( MinInstancePercentage/100.0
|
MinInstancePercentage |
获取或设置 minInstancePercentage 是实例计数的最小百分比,该百分比必须在升级或停用节点等操作期间满足 EnsureAvailability 安全检查。 使用的实际数字为 max ( MinInstanceCount, ceil ( MinInstancePercentage/100.0 * InstanceCount) ) 。 请注意,如果在 MinInstancePercentage 计算期间将 InstanceCount 设置为 -1,则会根据服务上的放置约束,首先将 -1 转换为允许在其中放置实例的节点数。 |
PartitionDescription |
无状态服务资源的属性。 (继承自 ServiceResourceProperties) |
PlacementConstraints |
获取或设置字符串形式的放置约束。 放置约束是节点属性中的布尔表达式,用于根据服务要求将服务限制到特定的节点。 例如,若要在 NodeType 为蓝色的节点上放置服务,请指定以下内容:“NodeColor == blue) ”。 (继承自 ServiceResourcePropertiesBase) |
ProvisioningState |
获取当前部署或预配状态,该状态仅显示在响应中 (继承自 ServiceResourceProperties) |
ScalingPolicies |
无状态服务资源的属性。 (继承自 ServiceResourcePropertiesBase) |
ServiceLoadMetrics |
无状态服务资源的属性。 (继承自 ServiceResourcePropertiesBase) |
ServicePackageActivationMode |
获取或设置服务包的激活模式。 可能的值包括:“SharedProcess”、“ExclusiveProcess” (继承自 ServiceResourceProperties) |
ServicePlacementPolicies |
无状态服务资源的属性。 (继承自 ServiceResourcePropertiesBase) |
ServiceTypeName |
获取或设置服务类型的名称 (继承自 ServiceResourceProperties) |
方法
Validate() |
验证 对象。 |