Share via


ServicePlacementRequireDomainDistributionPolicy Class

Definition

Describes the policy to be used for placement of a Service Fabric service where two replicas from the same partition should never be placed in the same fault or upgrade domain.

While this is not common it can expose the service to an increased risk of concurrent failures due to unplanned outages or other cases of subsequent/concurrent failures. As an example, consider a case where replicas are deployed across different data center, with one replica per location. In the event that one of the datacenters goes offline, normally the replica that was placed in that datacenter will be packed into one of the remaining datacenters. If this is not desirable then this policy should be set.

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

Constructors

ServicePlacementRequireDomainDistributionPolicy(String)

Initializes a new instance of ServicePlacementRequireDomainDistributionPolicy.

Properties

DomainName

The name of the domain that should used for placement as per this policy.

Explicit Interface Implementations

IJsonModel<ManagedServicePlacementPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ManagedServicePlacementPolicy)
IJsonModel<ManagedServicePlacementPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ManagedServicePlacementPolicy)
IJsonModel<ServicePlacementRequireDomainDistributionPolicy>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ServicePlacementRequireDomainDistributionPolicy>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ManagedServicePlacementPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ManagedServicePlacementPolicy)
IPersistableModel<ManagedServicePlacementPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ManagedServicePlacementPolicy)
IPersistableModel<ManagedServicePlacementPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ManagedServicePlacementPolicy)
IPersistableModel<ServicePlacementRequireDomainDistributionPolicy>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ServicePlacementRequireDomainDistributionPolicy>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ServicePlacementRequireDomainDistributionPolicy>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to