-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathmongosync.conf
More file actions
65 lines (56 loc) · 1.67 KB
/
mongosync.conf
File metadata and controls
65 lines (56 loc) · 1.67 KB
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
# PS: bool type can only be "on" or "off"
# if some items needn't specified, comment it
#source db ip port string
src_srv = 127.0.0.1:17221
#source db user
src_user = mongo
#source db passwd
src_passwd = password
#source authtification db
src_auth_db = admin
#whether source db uses MONGO_MCR password machenism, otherwise according to the db version
# src_use_mcr = on
#if src type is mongos, need shard's authorization.
is_mongos = off
shard_user = mongo
shard_passwd = passwd
#destination db ip port string
dst_srv = 127.0.0.1:17222
#destination db user
dst_user = mongo
#destination db password
dst_passwd = passwd
#destination db authentification
dst_auth_db = admin
#whether destination db use MONGO_MCR , otherwise according to the db version
# dst_use_mcr = on
# the name of source db to be used
#db = test
# the name of source collection to be used
#coll = collection
#colls = col1, col2, col3
# the name of destination db to be used
# dst_db = test2
# the name of destination collection to be used
# dst_coll = collection2
#whether sync oplog
# oplog = off
#whether just clone oplog
# raw_oplog = off
#the destination namespace for raw oplog mode
# dst_op_ns = sync.oplog
#startt timestamp of oplog
# op_start = 1479800345,1
#end timestamp of oplog
# op_end = 1479800348,2
#whether cloning index
# no_index = off
# a json format string to filter the data to be transfered
# filter = {"name":"jack"}
# background thread only for cloning data(not for oplog processing), default to 10
# bg_num = 16
# batch size criterion in data cloning(0-16M is valid), unit is Byte, default to 16M
# batch_size = 16777216
#
# log level, only support INFO, WARN, FATAL three levels
# log_level = INFO