-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshardStatus.txt
53 lines (52 loc) · 3.62 KB
/
shardStatus.txt
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
mongos> sh.status({verbose:1})
--- Sharding Status ---
sharding version: {
"_id" : 1,
"minCompatibleVersion" : 5,
"currentVersion" : 6,
"clusterId" : ObjectId("5e49f4dd1b72285baad65c46")
}
shards:
{ "_id" : "shard1", "host" : "shard1/shard1_r1:27017,shard1_r2:27017,shard1_r3:27017", "state" : 1, "tags" : [ "NA" ] }
{ "_id" : "shard2", "host" : "shard2/shard2_r1:27017,shard2_r2:27017,shard2_r3:27017", "state" : 1, "tags" : [ "EU" ] }
active mongoses:
{ "_id" : "154a59a8b0b1:27017", "advisoryHostFQDNs" : [ ], "mongoVersion" : "4.2.3", "ping" : ISODate("2020-02-17T22:25:10.338Z"), "up" : NumberLong(80), "waiting" : true }
autosplit:
Currently enabled: yes
balancer:
Currently enabled: yes
Currently running: no
Failed balancer rounds in last 5 attempts: 0
Migration Results for the last 24 hours:
2 : Success
databases:
{ "_id" : "config", "primary" : "config", "partitioned" : true }
config.system.sessions
shard key: { "_id" : 1 }
unique: false
balancing: true
chunks:
shard1 1
{ "_id" : { "$minKey" : 1 } } -->> { "_id" : { "$maxKey" : 1 } } on : shard1 Timestamp(1, 0)
{ "_id" : "db", "primary" : "shard1", "partitioned" : true, "version" : { "uuid" : UUID("b6e162db-574e-431f-a671-76f430d0e9a3"), "lastMod" : 1 } }
db.profiles
shard key: { "country" : 1, "distributorId" : 1 }
unique: false
balancing: true
chunks:
shard1 7
shard2 2
{ "country" : { "$minKey" : 1 }, "distributorId" : { "$minKey" : 1 } } -->> { "country" : "CA", "distributorId" : 101 } on : shard1 Timestamp(4, 1)
{ "country" : "CA", "distributorId" : 101 } -->> { "country" : "CA", "distributorId" : 200 } on : shard1 Timestamp(2, 2)
{ "country" : "CA", "distributorId" : 200 } -->> { "country" : "EE", "distributorId" : 201 } on : shard1 Timestamp(2, 3)
{ "country" : "EE", "distributorId" : 201 } -->> { "country" : "EE", "distributorId" : 300 } on : shard2 Timestamp(3, 0)
{ "country" : "EE", "distributorId" : 300 } -->> { "country" : "FI", "distributorId" : 301 } on : shard1 Timestamp(2, 5)
{ "country" : "FI", "distributorId" : 301 } -->> { "country" : "FI", "distributorId" : 400 } on : shard2 Timestamp(4, 0)
{ "country" : "FI", "distributorId" : 400 } -->> { "country" : "US", "distributorId" : 1 } on : shard1 Timestamp(2, 7)
{ "country" : "US", "distributorId" : 1 } -->> { "country" : "US", "distributorId" : 100 } on : shard1 Timestamp(2, 8)
{ "country" : "US", "distributorId" : 100 } -->> { "country" : { "$maxKey" : 1 }, "distributorId" : { "$maxKey" : 1 } } on : shard1 Timestamp(2, 9)
tag: NA { "country" : "CA", "distributorId" : 101 } -->> { "country" : "CA", "distributorId" : 200 }
tag: EU { "country" : "EE", "distributorId" : 201 } -->> { "country" : "EE", "distributorId" : 300 }
tag: EU { "country" : "FI", "distributorId" : 301 } -->> { "country" : "FI", "distributorId" : 400 }
tag: NA { "country" : "US", "distributorId" : 1 } -->> { "country" : "US", "distributorId" : 100 }
mongos>