StatelessServiceProperties Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StatelessServiceProperties() |
Initializes a new instance of the StatelessServiceProperties class. |
StatelessServiceProperties(String, Partition, Int32, String, IList<ServiceCorrelation>, IList<ServiceLoadMetric>, IList<ServicePlacementPolicy>, String, IList<ScalingPolicy>, String, String, Nullable<Int32>, Nullable<Int32>) |
Initializes a new instance of the StatelessServiceProperties class. |
StatelessServiceProperties()
Initializes a new instance of the StatelessServiceProperties class.
public StatelessServiceProperties ();
Public Sub New ()
Applies to
StatelessServiceProperties(String, Partition, Int32, String, IList<ServiceCorrelation>, IList<ServiceLoadMetric>, IList<ServicePlacementPolicy>, String, IList<ScalingPolicy>, String, String, Nullable<Int32>, Nullable<Int32>)
Initializes a new instance of the StatelessServiceProperties class.
public StatelessServiceProperties (string serviceTypeName, Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.Partition partitionDescription, int instanceCount, string placementConstraints = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceCorrelation> correlationScheme = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceLoadMetric> serviceLoadMetrics = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServicePlacementPolicy> servicePlacementPolicies = default, string defaultMoveCost = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ScalingPolicy> scalingPolicies = default, string provisioningState = default, string servicePackageActivationMode = default, int? minInstanceCount = default, int? minInstancePercentage = default);
new Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.StatelessServiceProperties : string * Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.Partition * int * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceCorrelation> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServiceLoadMetric> * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ServicePlacementPolicy> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.ScalingPolicy> * string * string * Nullable<int> * Nullable<int> -> Microsoft.Azure.Management.ServiceFabricManagedClusters.Models.StatelessServiceProperties
Public Sub New (serviceTypeName As String, partitionDescription As Partition, instanceCount As Integer, Optional placementConstraints As String = Nothing, Optional correlationScheme As IList(Of ServiceCorrelation) = Nothing, Optional serviceLoadMetrics As IList(Of ServiceLoadMetric) = Nothing, Optional servicePlacementPolicies As IList(Of ServicePlacementPolicy) = Nothing, Optional defaultMoveCost As String = Nothing, Optional scalingPolicies As IList(Of ScalingPolicy) = Nothing, Optional provisioningState As String = Nothing, Optional servicePackageActivationMode As String = Nothing, Optional minInstanceCount As Nullable(Of Integer) = Nothing, Optional minInstancePercentage As Nullable(Of Integer) = Nothing)
Parameters
- serviceTypeName
- String
The name of the service type
- partitionDescription
- Partition
- instanceCount
- Int32
The instance count.
- placementConstraints
- String
The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
- correlationScheme
- IList<ServiceCorrelation>
- serviceLoadMetrics
- IList<ServiceLoadMetric>
- servicePlacementPolicies
- IList<ServicePlacementPolicy>
- defaultMoveCost
- String
Possible values include: 'Zero', 'Low', 'Medium', 'High'
- scalingPolicies
- IList<ScalingPolicy>
- provisioningState
- String
The current deployment or provisioning state, which only appears in the response
- servicePackageActivationMode
- String
The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'
MinInstanceCount is the minimum number of instances that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstanceCount computation -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.
MinInstancePercentage is the minimum percentage of InstanceCount that must be up to meet the EnsureAvailability safety check during operations like upgrade or deactivate node. The actual number that is used is max( MinInstanceCount, ceil( MinInstancePercentage/100.0 * InstanceCount) ). Note, if InstanceCount is set to -1, during MinInstancePercentage computation, -1 is first converted into the number of nodes on which the instances are allowed to be placed according to the placement constraints on the service.