---
title: "複数のContent Deliveryインスタンスを設定"
slug: "configure-multiple-content-delivery-instances"
abstract: "複数のSitecore Content Deliveryインスタンスの設定方法。"
---
# 複数のContent Deliveryインスタンスを設定

複数のContent Delivery(CD)インスタンスを設定するには、インストールした各インスタンスごとに以下の手順を行ってください:

1.  各サーバーは一意のインスタンス名を持つ必要があります。デフォルトでは、Sitecoreはマシン名とIISサーバー名からなるインスタンス名を割り当てます。
    
    別のインスタンス名を割り当てたい場合は、パッチファイルを使って手動で設定してください。以下の例は名前をtestCD1に設定しています:
    
    <setting name="InstanceName">
     <patch:attribute name="value">testCD1</patch:attribute>
    </setting>
    
    > !注これはデフォルトのインスタンス名を変更する必要がある場合のみ必要です。
    
2.  \\App\_Config\\Sitecore.configファイルのPublishing.PublishingInstance設定が空であることを確認し、そうでなければ空の値をパッチで補修してください:
    
    <!-- PUBLISHING INSTANCE
     Assigns the instance name of dedicated Sitecore installation
     for publishing operations.
     When empty, all publishing operations are performed on
     the local installation of Sitecore.
     Default vaue: (empty)
    -->
    <setting name="Publishing.PublishingInstance">
     <patch:attribute name="value"></patch:attribute>
    </setting>
    
3.  [Sitecore IP Geolocation](https://doc.sitecore.com/xp/en/developers/91/sitecore-experience-manager/en/set-up-sitecore-ip-geolocation.html)を有効にしている場合、各CDインスタンスをGeoIPの検索を行うように設定する必要があります。パッチファイルを使って\\App\_Config\\Sitecore\\Marketing.Tracking\\Sitecore.Analytics.Tracking.configファイルのAnalytics.PerformLookupプロパティをtrueに設定してください。この設定はすべてのCDインスタンスで*true*に設定しなければなりません。
    
    <!-- ANALYTICS PERFORM LOOKUP
     Determines if this server performs the lookups (DNS and URLs).
     Should be set to true on every server where Tracking is enabled.
     Default: true
     -->
     <setting name="Analytics.PerformLookup" value="true" />
    
4.  CDインスタンスのために [セッションステート](https://doc.sitecore.com/xp/ja/developers/93/platform-administration-and-architecture/scaling-and-configuring-session-state.html "Scaling and configuring session state") サーバーを設定します。各サーバークラスターごとに、プライベートおよび共有セッションステート、そしてセッションステートデータベースの両方を設定します。
    
5.  Sitecore.Analytics.Tracking.configファイルでは、Analytics.HostName値が空であることを確認しましょう。空でなければ、空の値をパッチで挿入します:
    
    <setting name="Analytics.Hostname"
     <patch:attribute name="value"></patch:attribute>
    </setting>
    
6.  ASP.NET web.configファイルで、/configuration/system.web/machineKey(https://msdn.microsoft.com/library/ms998288.aspx)要素のvalidationKeyとdecryptionKey属性を自動生成でない値に設定します。環境内のすべてのSitecoreインスタンスで値が同じであり、IsolateApps修飾子がどちらの値にも存在しないことを確認してください。
    

> !注Sitecore 9以降では、Sitecore.Analytics.Tracking.ConfigファイルのパラメータAnalytics.ClusterNameは使われなくなり、デフォルトのままにします。

## CDサーバーのロードバランシングの設定

2台以上のCDサーバーがある場合は、サーバーごとにロードバランシングと [セッション状態管理](https://doc.sitecore.com/xp/ja/developers/93/platform-administration-and-architecture/scaling-and-configuring-session-state.html "Scaling and configuring session state") を設定する必要があります。プロセス外セッション状態管理を使うことが義務付けられており、永続的なロードバランシング方式を使う必要はありません。