Set up bidirectional replication

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:10分
  • Replicate updated data on a consumer instance to the producer instance using bidirectional replication in Instance Data Replication (IDR).

    始める前に

    Role required: admin

    このタスクについて

    Bidirectional replication enables you to replicate data on a consumer instance to the producer instance. For example, data, such as problem requests, can be copied to consumer instances for third parties to use. The third party can update the problem issue on the consumer instance. The data can then be updated on the producer instance.

    Note that seeding options are not available in bi-directional sets by design.

    手順

    1. Create a producer replication set.
      1. On the producer instance, navigate to Instance Data Replication > Producer Replication Sets.
      2. Select New.
      3. 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.
      4. Enable changes to records that are made on the consumer instance to propagate to the producer instance by selecting Bi-Directional.
        注:
        Bi-directional replication works for records that originate on the producer or consumer.
      5. オプション: Enable discrete mapping from a producer replication set by selecting Discrete.
        Discrete mapping distinguishes different consumer instances. For details, see Set up discrete replication.
      6. オプション: 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.
      7. Select Submit.
        The producer replication set is created with an auto-generated producer ID that identifies the producer instance in the system.
    2. Specify the tables and columns on the producer instance that you want to replicate.
      1. Select the Outbound Entries related list.
      2. Select New.
      3. 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.

      4. 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.
      5. Select Submit.
    3. 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.
    4. Create a consumer replication set.
      1. On a consumer instance, navigate to Instance Data Replication > Consumer Replication Sets.
      2. Select New.
      3. 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.
      4. Select Submit.
        The system sends a request to the producer replication set administrator to approve or deny the request.
    5. Approve the consumer request.
      1. On the producer instance, navigate to Instance Data Replication > Producer Replication Sets.
      2. Select the producer replication set where you want to approve consumer access.
      3. Under Related Links, on the Consumer Subscriptions tab, select the option for the consumer replication set that you want to approve.
      4. On the Actions on selected rows list, select Approve.
      The consumer set is approved and ready to receive replicated data.
    6. Activate the consumer replication set.
      1. On the consumer instance, navigate to Instance Data Replication > Consumer Replication Sets.
      2. Select the consumer replication set that you want to activate.
      3. Select Activate.
      After some time, the status changes to Active Replication.
    7. Update the Consumer Replication Entries configuration to match the configuration on the producer by selecting Synchronize Replication Entries.
      If you do not see this option, refresh the page.
    8. In the dialog box that appears, confirm the synchronization.

    タスクの結果

    Data that is updated on this consumer instance automatically replicates on the producer instance, which then replicates the updates to its other consumer instances.