Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
A mirroring job is normally done between two sites. This means that two sites probably have to be installed, one as a source site and one as a target site. Each site can be used as a source site or a target site regardless of the purpose from the beginning.
The installation package for EPiServer contains a setup file (setup.exe) that installs the Deployment Center and EPiServer CMS on the machine. This has to be done to be able to install Mirroring. Alternatively, EPiServerShared.msi and EPiServerCMS.msi can be run instead of the setup file.
Install mirroring on a new website as follows:
To be able to install Mirroring on an existing EPiServer CMS site, the site must be running on the same version as the mirroring DLL (EPiServer.MirroringService.dll).
Install mirroring on an existing website as follows:
Go to EPiServer CMS Edit mode on the target site and create a page that will act as the root page for the mirrored pages. It is also possible to use an existing page as the mirroring root page.
To create and edit channels for Mirroring, go to the Admin mode on the source site and select the Config tab > Mirroring (under Tool Settings).
Click the Create button to create a new channel, and enter the following information:
Setting | Description |
---|---|
Edit a channel | To edit a channel, click on the name of the channel, update the fields as appropriate and click the Save button. |
Delete a channel | To delete a channel, click on the name of the channel and click the Delete button. |
Reset state | It is possible to reset the state of a channel. This will make the Mirroring
application re-mirror everything from the root page of the Mirroring channel to the source site next time it is run. To reset the channel, select the name of the channel and click the Reset State button. |
Check System | Checks both the source and target site if all necessary parameters are correctly set up. Such as URI, Root page at destination, Mirroring Server binding, Access to DataBase and etc. See Synchronizing Mirroring. |
To start the Mirroring process manually, go to Admin mode > Admin tab > Mirroring Service > click Start manually.
To change the security credentials that are used when a Mirroring job is run, open the web.config file for the source mirroring application. Locate the episerverMirroring element in the configuration file and change the credentials in the MirroringTransferServer provider.
<episerverMirroring>
<mirroringTransfer defaultProvider="MirroringTransferServer">
<providers>
<add
defaultEndpointName="mirroringTargetEndPoint"
numberOfPagesInPackage="500"
numberOfFilesInPackage="100"
destinationPath="c:\temp\mirroring\"
chunkSize="4194304"
name="MirroringTransferServer"
type="EPiServer.MirroringService.MirroringTransferProtocol.WCF.MirroringTransferClient,EPiServer.Enterprise"
username="XXXX"
password=""
domain="ep" />
</providers>
</mirroringTransfer>
<mirroringMonitoring offlineLoggningEnabled="true" offlineLogPath="Path to offline log"/>
</episerverMirroring>
Configuration | Description |
---|---|
Changing chunk size | By default, the chunk size of the data sent between the machines is set to 4194304 bytes. This can be changed by changing this value in the provider attributes. |
Changing temporary folder | When data is sent between the machines, temporary files are stored in a location that can be modified in the configuration file. In the MirroringTransferServer provider, there is an attribute called “destination path” where you can set the temporary path. |
Changing numberOfPagesinPackage | By default the numberOfPagesInPackage is 500. Indicates the max number of pages in package. |
Changing numberOfFilesInpackage | By default the numberOfFilesInPackage is 100. Indicates the max number of files in package. |
Changing communication protocol | When the mirroring application is installed, basicHttpBinding will be used by default when communicating between the machines. To change this, change the bindings in the configuration files for both the source and the target application, see About WCF and Bindings on MSDN. |
Changing offlineLoggingEnabled and offlineLogPath | By default offline monitoring is disabled and can be enabled by setting the
offlineLoggningEnabled to true. By default the path to offline monitoring log is "C:\Windows\Temp\episerver\cms6\mirroring\monitoring\" and it can be changed to another path by setting the offlineLogPath attribute. |
Using another mirroring provider | It is possible to use other mirroring providers than the built-in provider. Add the provider in the episerverMirroring section and set the defaultProvider to the provider you want to run. |
<episerverMirroring>
<mirroringTransfer defaultProvider="myMirroringProvider">
<providers>
<add
defaultEndpointName="mirroringTargetEndPoint"
destinationPath="c:\temp\mirroring\"
chunkSize="4194304"
name="MirroringTransferServer"
type="EPiServer.MirroringService.MirroringTransferProtocol.WCF.MirroringTransferClient,EPiServer.Enterprise"
username="XXXX"
password=""
domain="ep" />
<add
name="myMirroringProvider"
type="jobe.MirroringProvider, XXXX.Providers" />
</providers>
</mirroringTransfer>
<mirroringMonitoring offlineLoggningEnabled="true" offlinelogPath="Path to offline log"/>
</episerverMirroring>
When the Mirroring application is installed by the Deployment Center, it is installed as an application under the EPiServer CMS site chosen. To change the mirroring application to a separate site, you need to do the following:
You need to synchronize the bin folders both under Site root folder and Mirroring Service bin folder. When assemblies in the site bin folder and mirroring service bin folder are not same, you will receive the following error when performing “Check System”:
It is important to have both bin folders synchronized with each other, since the Mirroring Service runs as a separate application and is having its own application pool. When you add any custom code/property/module under the source site, the affected assembly should be copied over to the Mirroring Service bin folder as well. If you have installed mirroring service on both source and destination sites, then Site and Mirroring Service must have the same assemblies under the bin folders.
Last updated: Mar 25, 2013