-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env
23 lines (17 loc) · 977 Bytes
/
.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MONGO_DB_NAME=db
MONGO_PASSWORD=admin
MONGO_USER=admin
CONFIG_REPSET_NAME=cfg
SHARD1_REPSET_NAME=shard1
SHARD2_REPSET_NAME=shard2
SHARDED_COLLECTION_NAME=profiles
SHARDED_COLLECTION_NAMESPACE=db.profiles
SHARD_KEY={country: 1, distributorId: 1}
SHARD_TAGS=[['shard1', 'NA'], ['shard2', 'EU']]
# ZONE NA
# country: "US", distributorId: from 1 to 100
# country: "CA", distributorId: from 101 to 200
# ZONE EU
# country: "EE", distributorId: from 201 to 300
# country: "FI", distributorId: from 301 to 400
SHARD_ZONES= [["db.profiles", { "country" : "US", "distributorId" : 1 }, { "country" : "US", "distributorId" : 100 }, "NA"], ["db.profiles", { "country" : "CA", "distributorId" : 101 }, { "country" : "CA", "distributorId" : 200 }, "NA"], ["db.profiles", { "country" : "EE", "distributorId" : 201 }, { "country" : "EE", "distributorId" : 300 }, "EU"], ["db.profiles", { "country" : "FI", "distributorId" : 301 }, { "country" : "FI", "distributorId" : 400 }, "EU"]]