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.servicefabric.models._models_py3.ServiceResourcePropertiesStatefulServiceProperties
Constructor
StatefulServiceProperties(*, placement_constraints: Optional[str] = None, correlation_scheme: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServiceCorrelationDescription]] = None, service_load_metrics: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServiceLoadMetricDescription]] = None, service_placement_policies: Optional[List[azure.mgmt.servicefabric.models._models_py3.ServicePlacementPolicyDescription]] = None, default_move_cost: Optional[Union[str, azure.mgmt.servicefabric.models._service_fabric_management_client_enums.MoveCost]] = None, service_type_name: Optional[str] = None, partition_description: Optional[azure.mgmt.servicefabric.models._models_py3.PartitionSchemeDescription] = None, service_package_activation_mode: Optional[Union[str, azure.mgmt.servicefabric.models._service_fabric_management_client_enums.ArmServicePackageActivationMode]] = None, service_dns_name: Optional[str] = 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[datetime.datetime] = None, quorum_loss_wait_duration: Optional[datetime.datetime] = None, stand_by_replica_keep_duration: Optional[datetime.datetime] = 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[ServiceCorrelationDescription]
A list that describes the correlation of the service with other services.
- service_load_metrics
- list[ServiceLoadMetricDescription]
The service load metrics is given as an array of ServiceLoadMetricDescription objects.
- service_placement_policies
- list[ServicePlacementPolicyDescription]
A list that describes the correlation of the service with other services.
Specifies the move cost for the service. Possible values include: "Zero", "Low", "Medium", "High".
- service_kind
- str or ServiceKind
Required. The kind of service (Stateless or Stateful).Constant filled by server. Possible values include: "Invalid", "Stateless", "Stateful".
- service_package_activation_mode
- str or ArmServicePackageActivationMode
The activation Mode of the service package. Possible values include: "SharedProcess", "ExclusiveProcess".
- service_dns_name
- str
Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name.
- has_persisted_state
- bool
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.
- replica_restart_wait_duration
- datetime
The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s).
- quorum_loss_wait_duration
- datetime
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.s).
- stand_by_replica_keep_duration
- datetime
The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s).
Variables
- provisioning_state
- str
The current deployment or provisioning state, which only appears in the response.
Feedback
Submit and view feedback for