StatelessServiceProperties Class

Definition

The properties of a stateless service resource.

public class StatelessServiceProperties : Azure.ResourceManager.ServiceFabric.Models.ServiceResourceProperties, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ServiceFabric.Models.StatelessServiceProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ServiceFabric.Models.StatelessServiceProperties>
type StatelessServiceProperties = class
    inherit ServiceResourceProperties
    interface IJsonModel<StatelessServiceProperties>
    interface IPersistableModel<StatelessServiceProperties>
Public Class StatelessServiceProperties
Inherits ServiceResourceProperties
Implements IJsonModel(Of StatelessServiceProperties), IPersistableModel(Of StatelessServiceProperties)
Inheritance
Implements

Constructors

Name Description
StatelessServiceProperties()

Initializes a new instance of StatelessServiceProperties.

Properties

Name Description
CorrelationScheme

A list that describes the correlation of the service with other services.

(Inherited from ServiceResourcePropertiesBase)
DefaultMoveCost

Specifies the move cost for the service.

(Inherited from ServiceResourcePropertiesBase)
InstanceCloseDelayDuration

Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is represented in ISO 8601 format (hh:mm:ss.s).

InstanceCount

The instance count.

MinInstanceCount

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

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.

To assign a byte[] to this property use FromBytes(Byte[]). The byte[] will be serialized to a Base64 encoded string.

Examples:

  • BinaryData.FromBytes(new byte[] { 1, 2, 3 }). : Creates a payload of "AQID".

PartitionDescription

Describes how the service is partitioned.

(Inherited from ServiceResourceProperties)
PlacementConstraints

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)".

(Inherited from ServiceResourcePropertiesBase)
ProvisioningState

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

(Inherited from ServiceResourceProperties)
ServiceDnsName

Dns name used for the service. If this is specified, then the DNS name can be used to return the IP addresses of service endpoints for application layer protocols (e.g., HTTP). When updating serviceDnsName, old name may be temporarily resolvable. However, rely on new name. When removing serviceDnsName, removed name may temporarily be resolvable. Do not rely on the name being unresolvable.

(Inherited from ServiceResourceProperties)
ServiceLoadMetrics

The service load metrics is given as an array of ServiceLoadMetricDescription objects.

(Inherited from ServiceResourcePropertiesBase)
ServicePackageActivationMode

The activation Mode of the service package.

(Inherited from ServiceResourceProperties)
ServicePlacementPolicies

A list that describes the correlation of the service with other services.

(Inherited from ServiceResourcePropertiesBase)
ServiceTypeName

The name of the service type.

(Inherited from ServiceResourceProperties)

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ServiceResourceProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from ServiceResourceProperties)
IJsonModel<ServiceResourceProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ServiceResourceProperties)
IJsonModel<ServiceResourcePropertiesBase>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from ServiceResourcePropertiesBase)
IJsonModel<ServiceResourcePropertiesBase>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ServiceResourcePropertiesBase)
IJsonModel<StatelessServiceProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<StatelessServiceProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ServiceResourceProperties>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from ServiceResourceProperties)
IPersistableModel<ServiceResourceProperties>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from ServiceResourceProperties)
IPersistableModel<ServiceResourceProperties>.Write(ModelReaderWriterOptions) (Inherited from ServiceResourceProperties)
IPersistableModel<ServiceResourcePropertiesBase>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from ServiceResourcePropertiesBase)
IPersistableModel<ServiceResourcePropertiesBase>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from ServiceResourcePropertiesBase)
IPersistableModel<ServiceResourcePropertiesBase>.Write(ModelReaderWriterOptions) (Inherited from ServiceResourcePropertiesBase)
IPersistableModel<StatelessServiceProperties>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<StatelessServiceProperties>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<StatelessServiceProperties>.Write(ModelReaderWriterOptions)

Applies to