StatelessServiceProperties Class
The properties of a stateless service resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
azure.mgmt.servicefabricmanagedclusters.models._models_py3.ServiceResourcePropertiesStatelessServiceProperties
Constructor
StatelessServiceProperties(*, service_type_name: str, partition_description: azure.mgmt.servicefabricmanagedclusters.models._models_py3.Partition, instance_count: int, placement_constraints: Optional[str] = None, correlation_scheme: Optional[List[azure.mgmt.servicefabricmanagedclusters.models._models_py3.ServiceCorrelation]] = None, service_load_metrics: Optional[List[azure.mgmt.servicefabricmanagedclusters.models._models_py3.ServiceLoadMetric]] = None, service_placement_policies: Optional[List[azure.mgmt.servicefabricmanagedclusters.models._models_py3.ServicePlacementPolicy]] = None, default_move_cost: Optional[Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.MoveCost]] = None, scaling_policies: Optional[List[azure.mgmt.servicefabricmanagedclusters.models._models_py3.ScalingPolicy]] = None, service_package_activation_mode: Optional[Union[str, azure.mgmt.servicefabricmanagedclusters.models._service_fabric_managed_clusters_management_client_enums.ServicePackageActivationMode]] = None, min_instance_count: Optional[int] = None, min_instance_percentage: Optional[int] = None, **kwargs)
Parameters
- placement_constraints
- str
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)".
- correlation_scheme
- list[<xref:service_fabric_managed_clusters_management_client.models.ServiceCorrelation>]
A list that describes the correlation of the service with other services.
- service_load_metrics
- list[<xref:service_fabric_managed_clusters_management_client.models.ServiceLoadMetric>]
The service load metrics is given as an array of ServiceLoadMetric objects.
- service_placement_policies
- list[<xref:service_fabric_managed_clusters_management_client.models.ServicePlacementPolicy>]
A list that describes the correlation of the service with other services.
- default_move_cost
- str or <xref:service_fabric_managed_clusters_management_client.models.MoveCost>
Specifies the move cost for the service. Possible values include: "Zero", "Low", "Medium", "High".
- scaling_policies
- list[<xref:service_fabric_managed_clusters_management_client.models.ScalingPolicy>]
Scaling policies for this service.
- service_kind
- str or <xref:service_fabric_managed_clusters_management_client.models.ServiceKind>
Required. The kind of service (Stateless or Stateful).Constant filled by server. Possible values include: "Stateless", "Stateful".
- partition_description
- <xref:service_fabric_managed_clusters_management_client.models.Partition>
Required. Describes how the service is partitioned.
- service_package_activation_mode
- str or <xref:service_fabric_managed_clusters_management_client.models.ServicePackageActivationMode>
The activation Mode of the service package. Possible values include: "SharedProcess", "ExclusiveProcess".
- min_instance_count
- int
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.
- min_instance_percentage
- int
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.
Variables
- provisioning_state
- str
The current deployment or provisioning state, which only appears in the response.
Feedback
Submit and view feedback for