]> git.sur5r.net Git - openldap/blob - doc/man/man5/slapo-syncprov.5
884ceeff530da2f665c79fc6b1c4f9c2668aa0d1
[openldap] / doc / man / man5 / slapo-syncprov.5
1 .TH SLAPO-SYNCPROV 5 "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 2004-2005 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply.  See COPYRIGHT/LICENSE.
4 .\" $OpenLDAP$
5 .SH NAME
6 slapo-syncprov \- Syncrepl Provider overlay
7 .SH SYNOPSIS
8 ETCDIR/slapd.conf
9 .SH DESCRIPTION
10 The Syncrepl Provider overlay implements the provider-side support for
11 syncrepl replication, including persistent search functionality. The overlay
12 can be used with any backend that maintains entryCSN and entryUUID
13 attributes for its entries. It also creates a contextCSN attribute in
14 the root entry of the database.
15
16 The contextCSN is updated for every write operation performed against the
17 database. To reduce database contention, the contextCSN is only updated in
18 memory. The value is written to the database on server shutdown and read into
19 memory on startup, and maintained in memory thereafter. Checkpoints may be
20 configured to write the contextCSN into the underlying database to minimize
21 recovery time after an unclean shutdown.
22
23 Note that due to deadlock constraints in the LDBM database, this overlay
24 will only work in RefreshOnly mode, and cannot perform checkpoints, on LDBM.
25
26 On databases that support inequality indexing, it is helpful to set an
27 eq index on the entryCSN attribute when using this overlay.
28 .SH CONFIGURATION
29 These
30 .B slapd.conf
31 options apply to the Syncrepl Provider overlay.
32 They should appear after the
33 .B overlay
34 directive and before any subsequent
35 .B database
36 directive.
37 .TP
38 .B syncprov-checkpoint <ops> <minutes>
39 After a write operation has succeeded, write the contextCSN to the underlying
40 database if
41 .B <ops>
42 write operations or more than
43 .B <minutes>
44 time have passed
45 since the last checkpoint. Checkpointing is disabled by default.
46 .TP
47 .B syncprov-sessionlog <ops>
48 Specify a session log for recording information about write operations made
49 on the database.  The
50 .B <ops>
51 specifies the number of operations that are recorded in the log. All write
52 operations (except Adds) are recorded in the log.
53 When using the session log, it is helpful to set an eq index on the
54 entryUUID attribute in the underlying database.
55 .TP
56 .B syncprov-nopresent TRUE | FALSE
57 Specify that the Present phase of refreshing should be skipped. This value
58 should only be set TRUE for a syncprov instance on top of a log database
59 (such as one managed by the accesslog overlay).
60 The default is FALSE.
61 .TP
62 .B syncprov-reloadhint TRUE | FALSE
63 Specify that the overlay should honor the reloadHint flag in the Syncrepl
64 Control. In OpenLDAP releases 2.3.11 and earlier the Syncrepl consumer did
65 not properly set this flag, so the overlay must ignore it. This option
66 should be set TRUE when working with newer releases that properly support
67 this flag. It must be set TRUE when using the accesslog overlay for
68 delta-based Syncrepl support.  The default is FALSE.
69 .SH FILES
70 .TP
71 ETCDIR/slapd.conf
72 default slapd configuration file
73 .SH SEE ALSO
74 .BR slapd.conf (5),
75 .BR slapo-accesslog (5).
76 OpenLDAP Administrator's Guide.