ServicePlacementPreferPrimaryDomainPolicyDescription クラス

定義

サービスの ServicePlacementPolicyDescription プライマリ レプリカを特定のドメインに最適に配置する必要があることを示す を表します。

public sealed class ServicePlacementPreferPrimaryDomainPolicyDescription : System.Fabric.Description.ServicePlacementPolicyDescription
type ServicePlacementPreferPrimaryDomainPolicyDescription = class
    inherit ServicePlacementPolicyDescription
Public NotInheritable Class ServicePlacementPreferPrimaryDomainPolicyDescription
Inherits ServicePlacementPolicyDescription
継承
ServicePlacementPreferPrimaryDomainPolicyDescription

//create the service placement policy
ServicePlacementPreferPrimaryDomainPolicyDescription placementPolicy = new ServicePlacementPreferPrimaryDomainPolicyDescription();
placementPolicy.DomainName = @"fd:\Datacenter1";

//add it to the Stateful Service Description
StatefulServiceDescription ssd = new StatefulServiceDescription();
ssd.PlacementPolicies.Add(placementPolicy);

注釈

この制約は、通常、Service Fabric クラスターが地理的に分散されているシナリオでは、サービスのプライマリ レプリカを特定の障害ドメインに配置する必要があることを示すために、障害ドメインと共に使用されます。これは、地理的分散シナリオでは通常、リージョンまたはデータセンターの境界に合わせて配置されます。 これは最適化であるため、障害、容量制限、またはその他の制約により、プライマリ レプリカがこのドメインに配置されない可能性があることに注意してください。

コンストラクター

ServicePlacementPreferPrimaryDomainPolicyDescription()

クラスの新しいインスタンスの ServicePlacementPreferPrimaryDomainPolicyDescription 初期化。

プロパティ

DomainName

プライマリ レプリカを優先的に配置する必要があるドメインの文字列名を取得または設定します。

Type

サービス配置ポリシーの種類を取得します。

(継承元 ServicePlacementPolicyDescription)

メソッド

ToString()

PreferPrimaryDomain サービス配置ポリシーの文字列表現を 'PreferPrimaryDomain, DomainName' の形式で返します。

適用対象