summaryrefslogtreecommitdiffstats
path: root/geo-replication/gsyncd.conf.in
blob: b93af282cb3d2f39b14052bad5a1b14088c02909 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
[__meta__]
version = 4.0

[master-bricks]
configurable=false

[slave-bricks]
configurable=false

[master-volume-id]
configurable=false

[slave-volume-id]
configurable=false

[master-replica-count]
configurable=false
type=int
value=1

[master-disperse-count]
configurable=false
type=int
value=1

[glusterd-workdir]
value = @GLUSTERD_WORKDIR@

[gluster-logdir]
value = /var/log/glusterfs

[gluster-rundir]
value = /var/run/gluster

[gsyncd-miscdir]
value = /var/lib/misc/gluster/gsyncd

[stime-xattr-prefix]
value=

[checkpoint]
value=0
help=Set Checkpoint
validation=unixtime
type=int

[gluster-cli-options]
value=
help=Gluster CLI Options

[pid-file]
value=${gluster_rundir}/gsyncd-${master}-${primary_slave_host}-${slavevol}.pid
configurable=false
template = true
help=PID file path

[state-file]
value=${glusterd_workdir}/geo-replication/${master}_${primary_slave_host}_${slavevol}/monitor.status
configurable=false
template=true
help=Status File path

[georep-session-working-dir]
value=${glusterd_workdir}/geo-replication/${master}_${primary_slave_host}_${slavevol}/
template=true
help=Session Working directory
configurable=false

[access-mount]
value=false
type=bool
validation=bool
help=Do not lazy unmount the master volume. This allows admin to access the mount for debugging.

[slave-access-mount]
value=false
type=bool
validation=bool
help=Do not lazy unmount the slave volume. This allows admin to access the mount for debugging.

[isolated-slaves]
value=
help=List of Slave nodes which are isolated

[changelog-batch-size]
# Max size of Changelogs to process per batch, Changelogs Processing is
# not limited by the number of changelogs but instead based on
# size of the changelog file, One sample changelog file size was 145408
# with ~1000 CREATE and ~1000 DATA. 5 such files in one batch is 727040
# If geo-rep worker crashes while processing a batch, it has to retry only
# that batch since stime will get updated after each batch.
value=727040
help=Max size of Changelogs to process per batch.
type=int

[slave-timeout]
value=120
type=int
help=Timeout in seconds for Slave Gsyncd. If no activity from master for this timeout, Slave gsyncd will be disconnected. Set Timeout to zero to skip this check.

[connection-timeout]
value=60
type=int
help=Timeout for mounts

[replica-failover-interval]
value=1
type=int
help=Minimum time interval in seconds for passive worker to become Active

[chnagelog-archive-format]
value=%Y%m
help=Processed changelogs will be archived in working directory. Pattern for archive file

[use-meta-volume]
value=false
type=bool
help=Use this to set Active Passive mode to meta-volume.

[meta-volume-mnt]
value=/var/run/gluster/shared_storage
help=Meta Volume or Shared Volume mount path

[allow-network]
value=

[change-interval]
value=5
type=int

[use-tarssh]
value=false
type=bool
help=Use sync-mode as tarssh

[remote-gsyncd]
value =
help=If SSH keys are not secured with gsyncd prefix then use this configuration to set the actual path of gsyncd(Usually /usr/libexec/glusterfs/gsyncd)

[gluster-command-dir]
value=@SBIN_DIR@
help=Directory where Gluster binaries exist on master

[slave-gluster-command-dir]
value=@SBIN_DIR@
help=Directory where Gluster binaries exist on slave

[gluster-params]
value = aux-gfid-mount acl
help=Parameters for Gluster Geo-rep mount in Master

[slave-gluster-params]
value = aux-gfid-mount acl
help=Parameters for Gluster Geo-rep mount in Slave

[ignore-deletes]
value = false
type=bool
help=Do not sync deletes in Slave

[special-sync-mode]
# tunables for failover/failback mechanism:
# None   - gsyncd behaves as normal
# blind  - gsyncd works with xtime pairs to identify
#          candidates for synchronization
# wrapup - same as normal mode but does not assign
#          xtimes to orphaned files
# see crawl() for usage of the above tunables
value =
help=

[gfid-conflict-resolution]
value = true
validation=bool
type=bool
help=Disables automatic gfid conflict resolution while syncing

[working-dir]
value = ${gsyncd_miscdir}/${master}_${primary_slave_host}_${slavevol}/
template=true
configurable=false
help=Working directory for storing Changelogs

[change-detector]
value=changelog
help=Change detector
validation=choice
allowed_values=changelog,xsync

[cli-log-file]
value=${gluster_logdir}/geo-replication/cli.log
template=true
configurable=false

[cli-log-level]
value=INFO
help=Set CLI Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[log-file]
value=${gluster_logdir}/geo-replication/${master}_${primary_slave_host}_${slavevol}/gsyncd.log
configurable=false
template=true

[changelog-log-file]
value=${gluster_logdir}/geo-replication/${master}_${primary_slave_host}_${slavevol}/changes-${local_id}.log
configurable=false
template=true

[gluster-log-file]
value=${gluster_logdir}/geo-replication/${master}_${primary_slave_host}_${slavevol}/mnt-${local_id}.log
template=true
configurable=false

[slave-log-file]
value=${gluster_logdir}/geo-replication-slaves/${master}_${primary_slave_host}_${slavevol}/gsyncd.log
template=true
configurable=false

[slave-gluster-log-file]
value=${gluster_logdir}/geo-replication-slaves/${master}_${primary_slave_host}_${slavevol}/mnt-${master_node}-${master_brick_id}.log
template=true
configurable=false

[slave-gluster-log-file-mbr]
value=${gluster_logdir}/geo-replication-slaves/${master}_${primary_slave_host}_${slavevol}/mnt-mbr-${master_node}-${master_brick_id}.log
template=true
configurable=false

[log-level]
value=INFO
help=Set Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[gluster-log-level]
value=INFO
help=Set Gluster mount Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[changelog-log-level]
value=INFO
help=Set Changelog Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[slave-log-level]
value=INFO
help=Set Slave Gsyncd Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[slave-gluster-log-level]
value=INFO
help=Set Slave Gluster mount Log Level
validation=choice
allowed_values=ERROR,INFO,WARNING,DEBUG

[ssh-port]
value=22
validation=int
help=Set SSH port
type=int

[ssh-command]
value=ssh
help=Set ssh binary path
validation=execpath

[tar-command]
value=tar
help=Set tar command path
validation=execpath

[ssh-options]
value = -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i ${glusterd_workdir}/geo-replication/secret.pem
template=true

[ssh-options-tar]
value = -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i ${glusterd_workdir}/geo-replication/tar_ssh.pem
template=true

[gluster-command]
value=gluster
help=Set gluster binary path
validation=execpath

[sync-jobs]
value=3
help=Number of Syncer jobs
validation=minmax
min=1
max=100
type=int

[rsync-command]
value=rsync
help=Set rsync command path
validation=execpath

[rsync-options]
value=

[rsync-ssh-options]
value=

[rsync-opt-ignore-missing-args]
value=true
type=bool

[rsync-opt-existing]
value=true
type=bool

[log-rsync-performance]
value=false
help=Log Rsync performance
validation=bool
type=bool

[use-rsync-xattrs]
value=false
type=bool

[sync-xattrs]
value=true
type=bool

[sync-acls]
value=true
type=bool

[max-rsync-retries]
value=10
type=int

[changelog-archive-format]
value=%Y%m

[state_socket_unencoded]
# Unused, For backward compatibility
value=