In the Intershop Commerce Platform, after the shop goes live, customers and implementation partners (DEV) have limited access to System Management (SMC) and Organization Management on the production environment, see Concept - Intershop Commerce Platform DevOps - Access and Permissions.
It is not recommended to manually trigger replication tasks in the Organization Management or run jobs in System Management. Instead, these tasks should be scheduled.
This guide describes scheduling based on one of the most important tasks for daily business, as an example, replication.
Abbreviation | Description |
---|---|
OPS | Intershop Operations |
DEV | Developer, implementation partner |
Software part | |
ICM | Intershop Commerce Management |
SMC | Intershop System Management |
Data replication is a method of transferring large amounts of data from a source cluster to a target cluster. In the Intershop Commerce Platform context, it refers to the transfer of data from an edit cluster to a live cluster in the same environment. Replication between separate clusters is not possible because they have different databases.
The following figure shows a simplified basic architecture, see Concept - Mass Data Replication for details.
To perform the replication, the blueprint of the database (tables) should be the same on edit and live clusters. In other words, the same migration must have been performed on both sides, see Overview - DBMigrate and DBInit.
Links to Intershop Commerce Management, Organization Management, and System Management can be found in the Links section of your Customer System confluence page.
Once the replication tasks have been defined in Intershop Commerce Management (Mass Data Tasks | Data Replication Tasks), the replication process can be executed manually from Organization Management (Data Replication | Data Replication Tasks).
This requires access to Organization Management, which is always available for INT and UAT environments, but limited for the PRD environment after the go-live. The best practice is described in the next section.
See also the Video Tutorial - Data Replication (valid to 7.10).
There are several ways to create a scheduled, i.e., automatic, replication process. The simplest of these is described in more detail below. However, there are other possibilities as well.
The process can be summarized as follows:
Define a replication job.
(optional) Add this replication job to a process chain.
Define a recurring interval for the replication job or the process chain,
OR
Start the replication or the process chain manually through a REST API call.
Create a replication.xml file which defines the replication processes and tasks.
You may use the following template for replication at channel and organization level:
replication.xml (template)
In this XML file, a process ID can be freely defined:
<process id="ReplicationProcessID">
Afterwards, the replication tasks are listed in this file.
For specific case and customization of the replication.xml file, refer to Cookbook - Mass Data Replication - Administration and Cookbook - Mass Data Replication - Customization and Adaption .
Deploy this file.
Ideally, the file should be part of the deployment. If you have access to the file system, which is the case with INT, you can also import it directly.
Open Intershop System Management and go to Schedule | Scheduling:
Select SLDSystem in the Advance Domain Selection:
Select Regular Replication Process, see Job - Regular Replication Process for details:
Switch to the Attributes tab and enter the ID defined in the XML file:
Switch back to the General tab. To define a recurring interval, scroll down to the section with that name and set the desired periodicity.
You can start this job directly from the System Management or via REST API call (see next section).
Click Apply.
This step might be sufficient to fulfill your needs.
The job defined in the last section can be started independently or be included in a process chain. In this case, do not define a recurring interval.
To add the replication job to a process chain, perform the following steps:
Define a processchain.xml file which executes the System Management job Regular Replication Process for the provided replication process ID.
You may use the following template: my-processchain.xml.
Deploy this file.
Ideally, the file should be part of the deployment. If you have access to the file system, which is the case with INT, you can also import it directly.
Create a job configuration which uses the pipeline ExecuteProcessChain-Start
to be able to execute the chain.
Open the Intershop System Managementr and go to Schedule | Scheduling.
Select SLDSystem in the Advance Domain Selection.
Create a new job by clicking New.
Set Pipeline to 'ExecuteProcessChain' and Startnode to 'Start'.
Switch to the Attributes tab, add a new one with Name 'XmlFileName', Data Type 'String', and enter the path to my-processchain.xml as Value.
Switch back to the General tab.
To define a recurring interval, scroll down to the section with this name and define the wished periodicity. You could also start this job directly from the Intershop System Management or via REST API (see next section).
See also Overview - Process Chains, Support Article - Process Chains Playground
The job Regular Replication Process defined previously, or ExecuteProcessChain in the case of a process chain, can be triggered via a manual REST API call. This requires REST privileges in Intershop System Management.
The syntax is described in Reference - Jobs REST API 1.0.0 | PUT Update a job using the transmitted fields. However, only the REST resources are included, for instance:
/domains/{DomainResourceKey}/jobs/{JobResourceKey}
The full syntax in our case is:
https://{hostname}:{port}/INTERSHOP/rest/WFS/SMC/-/domains/{DomainResourceKey}/jobs/{JobResourceKey}
As illustration:
https://www.example.com/INTERSHOP/rest/WFS/SMC/-/domains/SLDSystem/jobs/Regular%20%Replication%20Process
It returns the following JSON:
See also: Support Article - How to Start U Up ICM Schedule Jobs Using REST Calls (Startup Predefined Replication Processes) and Reference - Jobs REST API 1.0.0.