Chapter 8. Tuning the Replication Performance
8.1. Improving the Multi-supplier Replication Efficiency
The replication latency in a multi-supplier replication environment, especially if the servers are connected using a wide area network (WAN), can be high in case of multiple suppliers are receiving updates at the same time. This happens when one suppliers 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
nsds5ReplicaReleaseTimeoutparameter on replication suppliers and hubs.
60seconds 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 the value is set too low, replication servers are constantly reacquiring one another, 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
120seconds slows down replication.
8.1.1. Setting the Replication Release Timeout Using the Command Line
To set the replication release timeout using the command line:
- Set the timeout value:
# dsconf -D "cn=Directory Manager" ldap://supplier.example.com replication set --suffix="dc=example,dc=com" --repl-release-timeout=70This command sets the replication release timeout value for the
- Restart the Directory Server instance:
# dsctl instance_name restart
8.1.2. Setting the Replication Release Timeout Using the Web Console
To set the replication release timeout using the Web Console:
- Open the Directory Server user interface in the web console. For details, see Logging Into Directory Server Using the Web Console section in the Red Hat Directory Server Administration Guide.
- Select the instance.
- Open the Replication menu, and select Configuration.
- Click Show Advanced Settings.
- Set the timeout value in the Replication Release Timeout field.
- Click Save.
- Click the Actions button, and select Restart Instance.