forked from shawnfeng/dbrouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouter.json
28 lines (23 loc) · 957 Bytes
/
router.json
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
{
"cluster": {
"ACCOUNT": [
{"instance": "account", "match": "regex", "express": "user[0-10]|member[0-9]+"},
{"instance": "account", "match": "regex", "express": "fuck[0-9]|fuck[0-9][0-9]|fuck[0-9][0-9]+"},
{"instance": "account", "match": "full", "express": "fuck10000"}
],
"UGC": [
{"instance": "account", "match": "regex", "express": "lucky[0-9]+"}
]
},
"instances": {
"account": {
"dbtype": "mongo", "dbname":"taccount", "dbcfg": {"addrs": ["127.0.0.1:27017"]}
},
"test_account": {
"dbtype": "mongo", "dbname":"test_account", "dbcfg": {"user":"hello", "passwd":"world", "timeout": 10, "addrs": ["127.0.0.1:27017"]}
},
"beauty": {
"dbtype": "mongo", "dbname":"women", "dbcfg": {"user":"hello", "passwd":"world", "addrs": ["w:127.0.0.1:323", "r:127.0.0.1:32334"]}
}
}
}