サーチ…


備考

すぐに使えるSitecoreは、複数のサーバーの負荷分散をサポートしています。一般的な構成はコンテンツ管理(CM)とコンテンツ配信(CD)サーバーですが、複数のCMとCDサーバーもサポートされています。

ロードバランシング環境でリモートイベントを実装する

CitecoreがCM-CD環境でセットアップされている場合、CMイベントが発生したときにCDサーバー上でイベントを発生させる必要があります。

この例では、コンテンツ編集者がCMで公開したときにpublish:end:remote on CDを発行することができます。

イベントが発生していることを確認するには、次の手順を実行する必要があります。

  1. web.configでイベントキューが有効になっていることを確認する
    <!--  ENABLE EVENT QUEUES
            If enabled, Sitecore sends local events to the event queue available to remote instances,
            and handles events in the queue from remote instances.
            Default value: true
      -->
      <setting name="EnableEventQueues" value="true" />
  1. 各インスタンスにScalabilitySettings.configを追加します。各サーバーのInstanceNameとPublishingInstanceをCMサーバーのインスタンス名に設定します。

ScalabilitySettings.configの例は、App_Config / Includeフォルダにあります。

<!--  INSTANCE NAME
            Unique name for Sitecore instance.
            Default value: (machine name and IIS site name)
      -->
      <setting name="InstanceName">
        <patch:attribute name="value">BAYERUATCD</patch:attribute>
      </setting>
      <!--  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">BAYERUATCM</patch:attribute>
      </setting>
      <!--  COUNTERS INSTANCE NAME
            Instance name for performance counters.
            Default value: (value of InstanceName setting)
      -->
      <setting name="Counters.InstanceName">
        <patch:attribute name="value">BAYERUATCD</patch:attribute>
      </setting>
      <!--  SECURITY CACHE EXPIRATION
            Sets the absolute expiration on the cached security data.
            A value of 00:00:00 disables automatic expiration of security caches.

      -->


Modified text is an extract of the original Stack Overflow Documentation
ライセンスを受けた CC BY-SA 3.0
所属していない Stack Overflow