StatefulServiceProperties Class

The properties of a stateful 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.ServiceResourceProperties
StatefulServiceProperties

Constructor

StatefulServiceProperties(*, service_type_name: str, partition_description: azure.mgmt.servicefabricmanagedclusters.models._models_py3.Partition, 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, has_persisted_state: Optional[bool] = None, target_replica_set_size: Optional[int] = None, min_replica_set_size: Optional[int] = None, replica_restart_wait_duration: Optional[str] = None, quorum_loss_wait_duration: Optional[str] = None, stand_by_replica_keep_duration: Optional[str] = None, service_placement_time_limit: Optional[str] = None, **kwargs)

Parameters

placement_constraints
str
Required

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>]
Required

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>]
Required

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>]
Required

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>
Required

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>]
Required

Scaling policies for this service.

service_kind
str or <xref:service_fabric_managed_clusters_management_client.models.ServiceKind>
Required

Required. The kind of service (Stateless or Stateful).Constant filled by server. Possible values include: "Stateless", "Stateful".

service_type_name
str
Required

Required. The name of the service type.

partition_description
<xref:service_fabric_managed_clusters_management_client.models.Partition>
Required

Required. Describes how the service is partitioned.

service_package_activation_mode
str or <xref:service_fabric_managed_clusters_management_client.models.ServicePackageActivationMode>
Required

The activation Mode of the service package. Possible values include: "SharedProcess", "ExclusiveProcess".

has_persisted_state
bool
Required

A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.

target_replica_set_size
int
Required

The target replica set size as a number.

min_replica_set_size
int
Required

The minimum replica set size as a number.

replica_restart_wait_duration
str
Required

The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format "hh:mm:ss".

quorum_loss_wait_duration
str
Required

The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format "hh:mm:ss".

stand_by_replica_keep_duration
str
Required

The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format "hh:mm:ss".

service_placement_time_limit
str
Required

The duration for which replicas can stay InBuild before reporting that build is stuck, represented in ISO 8601 format "hh:mm:ss".

Variables

provisioning_state
str

The current deployment or provisioning state, which only appears in the response.