5.4. Modifying the Update Interval

By default, the server performs Referential Integrity updates immediately after a delete or a modrdn operation. Depending on the amount of operations, this can cause a performance impact. To reduce the performance impact, you can increase the amount of time between updates.
Set the interval in seconds. Alternatively, you can set the following values:
  • 0: The check for referential integrity is performed immediately.
  • -1: No check for referential integrity is performed.

Important

If you set the update interval to 0, you can only enable the plug-in on all masters in a multi-master replication environment if you also set their Referential Integrity Postoperation plug-in's update interval to 0. However, if you configure a positive value on one master, you must not enable the plug-in on any other master to prevent replication loops and directory inconsistencies.
If you want to enable the plug-in in a multi-master replication environment, Red Hat recommends setting the update interval to 0 and to enable the plug-in on all masters.

5.4.1. Modifying the Update Interval Using the Command Line

To set the update interval using the command line to, for example, to update immediately:
  1. Set the interval in seconds in the referint-update-delay parameter:
    # ldapmodify -D "cn=Directory Manager" -W -x
    dn: cn=referential integrity postoperation,cn=plugins,cn=config
    changetype: modify
    replace: referint-update-delay
    referint-update-delay: 0
  2. Restart the Directory Server instance:
    # systemctl restart dirsrv@instance_name
Referential Integrity can only be enabled on one master. If you set the interval to 0, Directory Server cleans up references replicates these changes to all consumers immediately. If you set the interval to a value greater than 0, and the master who has Referential Integrity enabled is offline, the references are not cleaned up before this master is up again.

5.4.2. Modifying the Update Interval using the Console

To set the update interval using the Console:
  1. Open the Property Editor in the Referential Integrity Postoperation plug-in's configuration. For details, see Section 1.9.3.2, “Configuring Plug-ins using the Console”.
  2. Set the interval in seconds in the referint-update-delay parameter.