2.3.2 cn=changelog5,cn=config

Replication changelog configuration is stored in the cn=changelog5,cn=config entry. The changelog behaves much like a database, and it has many of attributes also used by the ldbm databases. The changelog entry supports the following attributes with the same meaning as for databases:

The default values for the cache-related memory parameters (tuned for a single backend replicated to a single consumer) are as follows:

nsslapd-cachesize: 3000 (3000 entries)

nsslapd-cachememsize: 10000000 (10 Mbyte)

When more backends are replicated or when one backend is replicated to more than one consumer, tune the parameters as below:

nsslapd-cachesize = 2000*#repl_agreements_initiated_from_this_server nsslapd-cachememsize = 5000000*#repl_agreements_initiated_from_this_server

Also, the relationship between the values assigned to the nsslapd-dbcachesizeand nsslapd-cachememsizeparameters should be the same as the relationship that is described in the database-tuning section.

The cn=changelog5,cn=config entry is an instance of the extensibleObject object class.

NOTE:

Two different types of changelogs are maintained by Directory Server. The first type, which is stored here and referred to as the changelog, is used by multi-master replication; the second changelog, which is actually a plug-in and referred to as the retro changelog, is for compatibility with some legacy applications. See “Retro Changelog plug-in”for further information about the Retro Changelog Plug-in.

2.3.2.1 nsslapd-changelogdir

This required attribute specifies the name of the directory in which the changelog database is created. Whenever a changelog configuration entry is created, it must contain a valid directory; otherwise, the operation is rejected. The GUI proposes by default that this database be stored in /var/opt/dirsrv/slapd-instance_name/changelogdb.

NOTE:

If the cn=changelog5,cn=config entry is removed, any changelog database files that reside in the directory specified in the nsslapd-changelogdirparameter are automatically removed. If removal of these database files leaves the directory empty, the directory itself is also removed.

NOTE:

For performance reasons, store this database on a different physical disk.

The server has to be restarted for changes to this attribute to go into effect.

Parameter

Description

Entry DN

cn=changelog5,cn=config

 

 

Valid Values

Any valid path to the directory storing the changelog

 

 

Default Value

None

 

 

Syntax

DirectoryString

 

 

Example

nsslapd-changelogdir: /var/opt/dirsrv/slapd-example/changelogdb

 

 

72 Core server configuration reference