Zoeken…


Opmerkingen

Sitecore out of the box ondersteunt load-balancing voor meerdere servers. Typische configuratie is Content Management (CM) en Content Delivery (CD) -server, maar meerdere CM- en CD-servers worden ook ondersteund.

Implementeer externe gebeurtenissen in load-balanced omgeving

Als Sitecore is ingesteld in een CM-CD-omgeving, kan het nodig zijn om gebeurtenissen op de CD-server te activeren wanneer CM-gebeurtenissen worden geactiveerd.

Het voorbeeld kan publiceren zijn: einde: extern op CD wanneer inhoudseditors hebben gepubliceerd op CM.

Om ervoor te zorgen dat evenementen worden geactiveerd, moeten de volgende stappen worden uitgevoerd:

  1. Controleer of gebeurteniswachtrijen zijn ingeschakeld in 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. Voeg ScalabilitySettings.config toe aan elke instantie. Stel InstanceName voor elke server en PublishingInstance in op de naam van de CM-serverinstance.

Het voorbeeld van ScalabilitySettings.config kan worden gevonden in de map 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
Licentie onder CC BY-SA 3.0
Niet aangesloten bij Stack Overflow