Set up continuous replication
Enable near-real time data replication from a producer instance to one or more consumer instances in Instance Data Replication (IDR).
始める前に
Verify that the producer and consumer instances belong to the same customer.
Plan your data replication strategy by reviewing the important considerations described in Preparing for Instance Data Replication.
Role required: idr_admin or admin
手順
- On the producer instance, navigate to Instance Data Replication > Producer Replication Sets.
- Select New.
-
Enter a name and description for the producer replication set.
- The name can only contain alphanumeric characters and hyphens.
- Avoid using a name that applies only to the producer instance. You must provide the same name in the consumer replication set, so the name shouldn't be producer-specific.
- オプション:
Create the producer replication set from a list of outbound entries by selecting Entry set.
If you imported an update set from another instance or you created one earlier on your instance, you can choose an existing entry set.
-
Select Submit.
The producer replication set is created with an auto-generated producer ID that identifies the producer instance in the system.
-
Specify the tables and columns on the producer instance that you want to replicate.
- Select the Outbound Entries related list.
- Select New.
-
On the form, fill in the fields.
表 : 1. Replication entry form Field Description Source Table Name Name of one of the tables on the producer instance to replicate. For example, SAN Disk [cmdb_ci_san_disk]. Filter Filter criteria to control the records in the table that the system is replicating. - Use the filter to limit the number of records in your replication set. For example, if the table has an Active field, add a filter condition like [Active] [is] [True] to replicate only active records.
- If you want to replicate and preserve a parent and child table hierarchy, add a filter for the sys_class_name column to each outbound entry. This ensures that all of the child table
columns are replicated, and not just the parent the columns.
For example, to replicate both the Task [task] parent table and the Incident [incident] child table, you must add [Task type] [is] [Task] as a filter in the parent table entry and [Task type] [is] [Incident] as a filter in the child table entry. In this example, Task type is the label for the sys_class_name column on each table. For details, see Preserving table hierarchy in Instance Data Replication.
Include Attachments Option to replicate the files associated with the records that you are replicating. Included Fields Fields to include. Move table fields into the Selected column to replicate them or into the Available column to prevent replicating them. 注:The system must replicate some fields, such as sys_id (Mandatory). The system cannot replicate some fields, such as Edge Encrypted and Password1. They do not appear in either column.Enable Custom Coalesce Option to enable you to choose a field other than the default sys_id field to coalesce IDR. Coalesce Field Choose a field to use to coalesce IDR. Only unique fields are available. See Custom coalescing.
This field only displays if you select Enable Custom Coalesce.
-
Repeat these steps for each table that you want to include in the replication set.
注:If a table that you select has child tables, repeat these step and add outbound entries for each child table to maintain data integrity.
- Select Submit.
-
Make the producer data available for replication to consumers by selecting Activate.
The producer is ready to send the data that is specified in the replication set to one or more consumer instances.
- On a consumer instance, navigate to Instance Data Replication > Consumer Replication Sets.
- Select New.
-
On the form, fill in the fields.
表 : 2. Consumer Replication Set form Field Description Producer Instance URL URL of the producer instance. For example, https://<producer_instance>.servicenow.com. Producer Replication Set Name Name of the consumer replication set. The name on the consumer must match the name on the producer. Obtain the name from the producer administrator. Description Description of the purpose of the replication. -
Select Submit.
The list of all consumer replication sets on the consumer instance appears. The system sends a request to the producer replication set administrator to approve or deny the request.
-
Approve the consumer request.
- On the producer instance, navigate to Instance Data Replication > Producer Replication Sets.
- Select the producer replication set where you want to approve consumer access.
- Under Related Links, on the Consumer Subscriptions tab, select the option for the consumer replication set that you want to approve.
-
On the Actions on selected rows list, select Approve.
The approved consumer set starts receiving replicated data.
-
Activate the consumer replication set.
- On the consumer instance, navigate to Instance Data Replication > Consumer Replication Sets.
- Select the consumer replication set that you want to activate.
- Select Activate.
After some time, the status changes to Active Replication, and the Partial Seeding and Full Seeding buttons are displayed.
タスクの結果
Data in the producer tables is replicated into tables and table columns of the same name on the consumer instances.