Chapter 8. Improving the latency in a multi-supplier replication environment
In certain multi-supplier replication environments, for example if the servers are connected over a wide area network (WAN), the replication latency can be high if multiple suppliers receive updates at the same time. This happens when one supplier exclusively accesses a replica without releasing it for a long time. In such situations, other suppliers cannot send updates to this consumer, which increases the replication latency.
To release a replica after a fixed amount of time, set the nsds5ReplicaReleaseTimeout
parameter on suppliers and hubs.
The 60
seconds default value is ideal for most environments. A value set too high or too low can have a negative impact on the replication performance. If you set the value too low, replication servers are constantly reacquiring each other, and servers are not able to send many updates. In a high-traffic replication environment, a longer timeout can improve situations where one supplier exclusively accesses a replica. However, in most cases, a value higher than 120
seconds slows down replication.
8.1. Setting the replication release timeout using the command line
To improve the replication efficiency in a multi-supplier replication environment, update the replication release timeout value on all hubs and suppliers.
Prerequisites
- You configured replication between multiple suppliers and hubs.
Procedure
Set the timeout value for the suffix:
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com replication set --suffix="dc=example,dc=com" --repl-release-timeout=70
This command changes the replication timeout of the
example,dc=com
suffix to70
seconds.Restart the instance:
# dsctl instance_name restart
8.2. Setting the replication release timeout using the web console
To improve the replication efficiency in a multi-supplier replication environment, update the replication release timeout value on all hubs and suppliers.
Prerequisites
- You configured replication between multiple suppliers and hubs.
Procedure
- On the tab, select the suffix entry.
-
Click
Show Advanced Settings
. -
Update the value in the
Replication Release Timeout
field. - Click .