Debian Codegraph @

builds/install/misc/replication.conf

raw
1 #
2 # Replication configuration
3 #
4
5 database
6 {
7 ### PRIMARY SIDE SETTINGS
8
9 # Plugin used to perform replication.
10 # Leave it empty to use built-in replication.
11 #
12 # plugin =
13
14 # Pattern (regular expression) that defines what tables must be included into
15 # replication. By default, all tables are replicated.
16 #
17 # include_filter =
18
19 # Pattern (regular expression) that defines what tables must be excluded from
20 # replication. By default, all tables are replicated.
21 #
22 # exclude_filter =
23
24 # Boolean parameters describing how replication errors must be handled.
25 #
26 # log_errors = true # All errors (and warnings) are written to replication.log
27 # report_errors = false # Errors are returned to the client application
28 # disable_on_error = true # Replication is disabled after error
29
30 ### Parameters specific for built-in replication
31
32 # Size of the local buffer used to accumulate changes that can be
33 # deferred until the transaction commit/rollback. The bigger this value
34 # the less disk access concurrency (related to journal IOPS) happens.
35 #
36 # For synchronous replication, it also affects number of network round-trips
37 # between primary and replica hosts.
38 # However, a larger buffer costs a longer replication "checkpoints"
39 # (delay to synchronize the original database with its replica at commit).
40 #
41 # buffer_size = 1048576 # 1MB
42
43 # Directory to store replication journal files.
44 #
45 # journal_directory =
46
47 # Prefix for replication journal file names. It will be automatically suffixed
48 # with an ordinal sequential number. If not specified, database filename
49 # (without path) is used as a prefix.
50 #
51 # journal_file_prefix =
52
53 # Maximum allowed size for a single replication segment.
54 #
55 # journal_segment_size = 16777216 # 16MB
56
57 # Maximum allowed number of full replication segments. Once this limit is reached,
58 # the replication process is temporarily delayed to allow the archiving to catch up.
59 # If any of the full segments is not archived during one minute,
60 # the replication fails with an error.
61 #
62 # Zero means an unlimited number of segments pending archiving.
63 #
64 # journal_segment_count = 8
65
66 # Delay, in milliseconds, to wait before the changes are synchronously flushed
67 # to the journal (usually at commit time). This allows multiple concurrently committing
68 # transactions to amortise I/O costs by sharing a single flush operation.
69 #
70 # Zero means no delay, i.e. "group flushing" is disabled.
71 #
72 # journal_group_flush_delay = 0
73
74 # Directory for the archived journal files.
75 #
76 # Directory to store archived replication segments.
77 # It also defines the $(archpathname) substitution macro (see below).
78 #
79 # journal_archive_directory =
80
81 # Program (complete command line with arguments) that is executed when some
82 # replication segment gets full and needs archiving.
83 #
84 # This program MUST return zero ONLY if archiving has been performed successfully.
85 # In particular, it MUST return non-zero if the target archive already exists.
86 #
87 # Special predefined macros are available:
88 # $(filename) - file name (without path) of the journal segment being archived
89 # $(pathname) - full path name of the journal segment being archived
90 # same as journal_directory + $(filename)
91 # $(archivepathname) - suggested full path name for the archived segment
92 # same as journal_archive_directory + $(filename)
93 #
94 # Simplest configuration is to use standard OS commands for archiving, e.g.:
95 #
96 # Linux: "test ! -f $(archivepathname) && cp $(pathname) $(archivepathname)"
97 # or
98 # Windows: "copy $(pathname) $(archivepathname)"
99 #
100 # journal_archive_command =
101
102 # Timeout, in seconds, to wait until incomplete segment is scheduled for archiving.
103 # It allows to minimize the replication gap if the database is modified rarely.
104 #
105 # Zero means no intermediate archiving, i.e. segments are archived only after
106 # reaching their maximum size (defined by journal_segment_size).
107 #
108 # journal_archive_timeout = 60
109
110 # Connection string to the replica database (used for synchronous replication only).
111 # Expected format:
112 #
113 # [<login>:<password>@]<database connection string>
114 #
115 # Examples:
116 #
117 # server2:replica
118 # john:smith@server2:replica
119 # server2:/my/replica/database.fdb
120 # john:smith@server2:/my/replica/database.fdb
121 #
122 # Multiple entries are allowed (for different synchronous replicas).
123 #
124 # sync_replica =
125
126
127 ### REPLICA SIDE SETTINGS
128
129 # Directory to search for the journal files to be replicated.
130 #
131 # journal_source_directory =
132
133 # Filter to limit replication to the particular source database (based on its GUID).
134 # Expected format: "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
135 # Note that double quotes are mandatory, as well as curly braces.
136 #
137 # source_guid =
138
139 # If enabled, replication.log contains the detailed log of operations performed
140 # by the replication server. Otherwise (by default), only errors and warnings are logged.
141 #
142 # verbose_logging = false
143
144 # Timeout (in seconds) to wait before scanning for the new replication segments.
145 #
146 # It's used to pause the replication server when all existing segments are already applied
147 # to the replica database and there are no new segments in the specified directory.
148 #
149 # apply_idle_timeout = 10
150
151 # Timeout (in seconds) to wait before retrying to apply the queued segments after error.
152 #
153 # It's used to pause the replication server after some critical error happened during replication.
154 # In this case, the server disconnects from the replica database, sleeps for the specified timeout,
155 # then reconnects back and tries to re-apply the latest segments from the point of failure.
156 #
157 # apply_error_timeout = 60
158 }
159
160 #
161 # Database-specific settings belong here, e.g.
162 #
163 # (for the primary side)
164 #
165 # database = /your/db.fdb
166 # {
167 # (for synchronous replication)
168 #
169 # sync_replica = sysdba:masterkey@otherhost:/your/replica.fdb
170 #
171 # (for asynchronous replication)
172 #
173 # journal_directory = /your/db/journal
174 # journal_archive_directory = /your/db/archive
175 # journal_archive_timeout = 10
176 # }
177 #
178 # (for the replica side)
179 #
180 # database = /your/db.fdb
181 # {
182 # journal_source_directory = /your/db/source
183 # }