Create a producer replication set in Instance Data Replication

  • Release version: Xanadu
  • Updated August 1, 2024
  • 5 minutes to read
  • Specify the tables and columns on the producer instance that you want to replicate in Instance Data Replication (IDR).

    Before you begin

    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

    About this task

    Creating the producer replication set is the first step of setting up Instance Data Replication. Seeding is the initial download of all the records in the producer replication set to the tables in the consumer replication set. After seeding, Instance Data Replication (IDR) only replicates data updates. The seeding limitations are:
    • The maximum record size is 10 MB.
    • The maximum seeding size is 3 million records.
      Note:
      If your replication set contains more than 3 million records, seeding cannot start. To fix this situation, break the replication set into multiple replication sets with fewer records in each or use partial seeding.
    • The maximum seeding time is 7 days.
    Figure 1. Seeding replication sets

    Seeding from the producer replication set.

    Procedure

    1. On the producer instance, navigate to Instance Data Replication > Producer Replication Sets and click New.
    2. On the form, fill in the fields.
      Table 1. Producer Replication Set form
      Field Description
      Name Names can only contain alphanumeric characters and hyphens.
      Note:
      The consumer replication set must have the same name as the producer replication set, so the name should not be producer-specific.
      Bi-Directional Option to enable bi-directional replication on consumer instances. Bi-directional replication enables changes to records made on the consumer instance to propagate to the producer instance. If you want to set up a producer replication set with bi-direction for consumer instances, see Bidirectional replication.
      Discrete Option to enable discrete mapping from a producer replication set. This mapping distinguishes different consumer instances. For more information, see create discrete mappings for a producer replication set.
      Description Description of the replication set.
      Entry Set Set of outbound entries. If you imported an update set from another instance or you created one earlier on your instance, you can choose an existing entry set.
      After you submit the Producer Replication Set form, the system auto-generates the producer ID. The Producer ID field identifies the producer instance in the system.
      Producer replication set.
    3. To add outbound entries to your producer replication set, click the Outbound Entries tab and click New.
    4. On the form, fill in the fields.
      For each outbound entry, you must select a source table from the producer instance to replicate data records. You can also select associated table columns, include attachments to records, and set filter conditions for each source table.
      Table 2. 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.
      Note:
      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 Coalesce columns in Instance Data Replication.

      This field only displays if you select Enable Custom Coalesce.

    5. Select Submit.
      Note:
      If the table that you add to the replication set has child tables, add the child tables to the replication set to maintain data integrity.
    6. Repeat step 3 for each table that you want to include in the replication set.
      After you submit, the Activate button is added to the form.
    7. Select Activate.
      Replication can't happen until you link the producer replication set to one or more consumer replication sets. Activating the producer replication set makes the producer data available for replication to consumers.
    8. Select the Notification Configuration related link and choose a tab to configure notification details.
      OptionDescription
      When to send Specify the conditions for sending a notification.
      • Record inserted or updated— You can send notifications when records are updated or inserted.
      • Event is fired—Specify the event type that sends the notification.
      • Triggered—A notification is sent when triggered by a ServiceNow® Workflow Studio flow. For more information, see Workflow Studio.
      Who will receive Send notifications to users, groups, or user groups in the fields on the ServiceNow record that generates the notification.
      What it will contain You can choose an email template to populate the Subject and Message HTML. You can also override the template and customize the text as appropriate.
      What Digest will contain If you select Allow Digest, you can configure an email digest interval through the Digest Interval module in System Notification.
    9. Select Update.
    10. To see a preview of the notification, select Preview Notification.
    11. To discard the Producer Replication Set, select Delete.

    Result

    The producer is ready to send the data that is specified in the replication set to one or more consumer instances.

    What to do next