Walkthrough: Configuring EXM in a scaled environment

Last updated Thursday, September 1, 2016 in Email Experience Manager for Administrator, Developer

If your Sitecore solution works in a scaled environment, you must configure the Email Experience Manager (EXM) module to work in this environment.

A scaled environment usually consists of one content management server, and one or more content delivery server(s). You can configure servers for a specific purpose (for example, content management, content delivery, or processing) by enabling or disabling the relevant configuration files on each Sitecore instance.

In the standard multiserver Sitecore environment, all the content management and content delivery instances share the Core and Web databases, and all the content management instances share the Master database. This means that you have to use the same connection strings to the databases for the configuration file of each server.

The following diagram illustrates the connections between the servers and the content databases in a standard multiserver Sitecore setup:

exm_Sitecore_Scaled_Environment.png

A multiserver environment also shares the collection database (MongoDB) and the reporting SQL Server database.

This walkthrough outlines how to:

Note

Make sure you also configure the List Manager for the scaled environment.

Configure a content management server

To configure a content management server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for content management servers.

    Note

    If you run Sitecore 8.1 update 3 or later updates, make sure to enable the interaction registry on your content management servers.

  2. Install the EXM module according to the EXM installation guide.

    Important

    The EXM installation package that you download from dev.sitecore.net includes five zip packages – the Email Experience Manager and four zip files that match specific server roles. Do not use the files intended for other servers on the content management server.

  3. In the \App_Config\Include\EmailExperience\ folder, enable the Sitecore.EmailExperience.ContentSearch.Solr.config file.

Configure a content delivery server

To configure a content delivery server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for content delivery servers.

    Important

    In the Sitecore.Analytics.Tracking.config file, ensure that the value of the Analytics.ClusterName setting is the hostname of the content delivery server. This is required for a scaled environment to avoid contacts being locked when running EXM. If there is more than one content delivery server in your environment, use the same value for each server.

    In addition, make sure that the content management server can reach the content delivery server through HTTP using the hostname that you have specified in the Analytics.ClusterName setting of the content delivery server.

  2. Add a connection string to the EmailCampaignClientService web service, for example:
    <add name="EmailCampaignClientService" connectionString="url=http://<CMServerHost>/sitecore%20modules/web/emailcampaign/ecmclientservice.asmx;timeout=60000" />
  3. In the \App_Config\ConnectionStrings.config file:
    • Add the exm.web connection string, for example:
    <add name="exm.web" connectionString="user id=user;password=password;Data Source=(server);Database=Sitecore_EXM_WEB" /> 
    • Add the two connection strings EXM.CryptographicKey and EXM.AuthenticationKey. The keys must be represented in hexadecimal format by 64 characters.
  4. Extract the relevant Email Experience Manager – Content Delivery package to your website root folder on the content delivery server.
  5. If you no longer want to use the primary CM server as a content delivery server, disable the Sitecore.EmailExperience.ContentDelivery.config configuration file and remove any Sitecore.EmailCampagin.Cd*.dll assemblies from the bin folder.

Configure a processing server

To configure a processing server for Analytics data processing and aggregation:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for processing servers.
  2. Extract the relevant Email Experience Manager - Analytics Processing package to your website root folder on the processing server.
  3. Disable the Sitecore.EmailExperience.AnalyticsProcessing.config configuration file on the primary CM server to stop processing Analytics data.

Configure a reporting server

To configure a reporting server:

  1. Install Sitecore Experience Platform and configure it according to the Sitecore scaling recommendations for reporting servers.
  2. Extract the relevant Email Experience Manager - Reporting package to your website root folder on the reporting server.
  3. Disable the Sitecore.EmailExperience.Reporting.config configuration file on the primary CM server to deactivate configuration that is only relevant for reporting servers.