mongo 2.4.0.rc1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/mongo/auth/cr/conversation.rb +1 -1
- data/lib/mongo/auth/ldap/conversation.rb +1 -1
- data/lib/mongo/auth/scram/conversation.rb +1 -1
- data/lib/mongo/auth/x509/conversation.rb +4 -2
- data/lib/mongo/client.rb +7 -4
- data/lib/mongo/cluster.rb +55 -5
- data/lib/mongo/cluster/app_metadata.rb +7 -1
- data/lib/mongo/cluster/topology.rb +7 -6
- data/lib/mongo/cluster/topology/replica_set.rb +48 -2
- data/lib/mongo/cluster/topology/sharded.rb +47 -1
- data/lib/mongo/cluster/topology/single.rb +55 -4
- data/lib/mongo/cluster/topology/unknown.rb +65 -9
- data/lib/mongo/error/invalid_server_preference.rb +3 -1
- data/lib/mongo/event.rb +8 -0
- data/lib/mongo/event/description_changed.rb +20 -2
- data/lib/mongo/event/member_discovered.rb +65 -0
- data/lib/mongo/event/primary_elected.rb +3 -1
- data/lib/mongo/event/standalone_discovered.rb +1 -1
- data/lib/mongo/monitoring.rb +41 -0
- data/lib/mongo/monitoring/event.rb +6 -0
- data/lib/mongo/monitoring/event/server_closed.rb +46 -0
- data/lib/mongo/monitoring/event/server_description_changed.rb +58 -0
- data/lib/mongo/monitoring/event/server_opening.rb +46 -0
- data/lib/mongo/monitoring/event/topology_changed.rb +46 -0
- data/lib/mongo/monitoring/event/topology_closed.rb +41 -0
- data/lib/mongo/monitoring/event/topology_opening.rb +41 -0
- data/lib/mongo/monitoring/publishable.rb +12 -0
- data/lib/mongo/monitoring/sdam_log_subscriber.rb +54 -0
- data/lib/mongo/monitoring/server_closed_log_subscriber.rb +30 -0
- data/lib/mongo/monitoring/server_description_changed_log_subscriber.rb +33 -0
- data/lib/mongo/monitoring/server_opening_log_subscriber.rb +30 -0
- data/lib/mongo/monitoring/topology_changed_log_subscriber.rb +40 -0
- data/lib/mongo/monitoring/topology_opening_log_subscriber.rb +30 -0
- data/lib/mongo/server.rb +6 -0
- data/lib/mongo/server/connection.rb +1 -1
- data/lib/mongo/server/description.rb +23 -3
- data/lib/mongo/server/description/inspector.rb +4 -2
- data/lib/mongo/server/description/inspector/description_changed.rb +2 -2
- data/lib/mongo/server/description/inspector/member_discovered.rb +59 -0
- data/lib/mongo/server/description/inspector/primary_elected.rb +2 -0
- data/lib/mongo/server_selector.rb +10 -5
- data/lib/mongo/server_selector/nearest.rb +1 -1
- data/lib/mongo/server_selector/primary_preferred.rb +1 -1
- data/lib/mongo/server_selector/secondary.rb +1 -1
- data/lib/mongo/server_selector/secondary_preferred.rb +1 -1
- data/lib/mongo/server_selector/selectable.rb +24 -12
- data/lib/mongo/uri.rb +1 -1
- data/lib/mongo/version.rb +1 -1
- data/mongo.gemspec +1 -1
- data/spec/mongo/auth/cr_spec.rb +6 -1
- data/spec/mongo/auth/ldap_spec.rb +6 -1
- data/spec/mongo/auth/scram_spec.rb +6 -1
- data/spec/mongo/auth/x509/conversation_spec.rb +69 -0
- data/spec/mongo/auth/x509_spec.rb +9 -4
- data/spec/mongo/client_spec.rb +40 -2
- data/spec/mongo/cluster/topology/replica_set_spec.rb +218 -9
- data/spec/mongo/cluster/topology/sharded_spec.rb +17 -2
- data/spec/mongo/cluster/topology/single_spec.rb +19 -4
- data/spec/mongo/cluster/topology/unknown_spec.rb +19 -1
- data/spec/mongo/cluster/topology_spec.rb +11 -7
- data/spec/mongo/cluster_spec.rb +25 -7
- data/spec/mongo/max_staleness_spec.rb +40 -22
- data/spec/mongo/monitoring_spec.rb +2 -2
- data/spec/mongo/sdam_monitoring_spec.rb +60 -0
- data/spec/mongo/sdam_spec.rb +77 -0
- data/spec/mongo/server/connection_pool_spec.rb +6 -1
- data/spec/mongo/server/connection_spec.rb +6 -1
- data/spec/mongo/server/description_spec.rb +90 -1
- data/spec/mongo/server_selection_spec.rb +7 -6
- data/spec/mongo/server_selector/nearest_spec.rb +7 -7
- data/spec/mongo/server_selector/primary_preferred_spec.rb +7 -7
- data/spec/mongo/server_selector/primary_spec.rb +4 -4
- data/spec/mongo/server_selector/secondary_preferred_spec.rb +6 -6
- data/spec/mongo/server_selector/secondary_spec.rb +6 -6
- data/spec/mongo/server_selector_spec.rb +8 -0
- data/spec/mongo/server_spec.rb +6 -1
- data/spec/mongo/uri_spec.rb +4 -4
- data/spec/spec_helper.rb +2 -0
- data/spec/support/max_staleness/ReplicaSetNoPrimary/Incompatible.yml +4 -4
- data/spec/support/max_staleness/ReplicaSetNoPrimary/LastUpdateTime.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/Nearest.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/Nearest2.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/NoKnownServers.yml +15 -0
- data/spec/support/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred.yml +1 -1
- data/spec/support/max_staleness/ReplicaSetNoPrimary/PrimaryPreferred_tags.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/Secondary.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred.yml +1 -1
- data/spec/support/max_staleness/ReplicaSetNoPrimary/SecondaryPreferred_tags.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetNoPrimary/ZeroMaxStaleness.yml +23 -0
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Incompatible.yml +4 -4
- data/spec/support/max_staleness/ReplicaSetWithPrimary/LastUpdateTime.yml +5 -5
- data/spec/support/max_staleness/ReplicaSetWithPrimary/{ShortHeartbeartShortMaxStaleness2.yml → LongHeartbeat.yml} +4 -4
- data/spec/support/max_staleness/ReplicaSetWithPrimary/{ShortHeartbeartShortMaxStaleness.yml → LongHeartbeat2.yml} +6 -10
- data/spec/support/max_staleness/ReplicaSetWithPrimary/MaxStalenessTooSmall.yml +3 -2
- data/spec/support/max_staleness/ReplicaSetWithPrimary/MaxStalenessWithModePrimary.yml +2 -2
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Nearest.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Nearest2.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Nearest_tags.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/PrimaryPreferred.yml +2 -2
- data/spec/support/max_staleness/ReplicaSetWithPrimary/PrimaryPreferred_incompatible.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred.yml +1 -1
- data/spec/support/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/SecondaryPreferred_tags2.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Secondary_tags.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/Secondary_tags2.yml +3 -3
- data/spec/support/max_staleness/ReplicaSetWithPrimary/ZeroMaxStaleness.yml +7 -11
- data/spec/support/max_staleness/Sharded/Incompatible.yml +4 -4
- data/spec/support/max_staleness/Sharded/SmallMaxStaleness.yml +10 -2
- data/spec/support/max_staleness/Single/Incompatible.yml +4 -4
- data/spec/support/max_staleness/Single/SmallMaxStaleness.yml +2 -2
- data/spec/support/max_staleness/Unknown/SmallMaxStaleness.yml +14 -0
- data/spec/support/sdam/rs/primary_mismatched_me.yml +2 -2
- data/spec/support/sdam/rs/secondary_mismatched_me.yml +2 -2
- data/spec/support/sdam_monitoring.rb +144 -0
- data/spec/support/sdam_monitoring/replica_set_with_no_primary.yml +112 -0
- data/spec/support/sdam_monitoring/replica_set_with_primary.yml +111 -0
- data/spec/support/sdam_monitoring/replica_set_with_removal.yml +106 -0
- data/spec/support/sdam_monitoring/required_replica_set.yml +84 -0
- data/spec/support/sdam_monitoring/standalone.yml +70 -0
- data/spec/support/server_discovery_and_monitoring.rb +34 -1
- data/spec/support/server_selection.rb +14 -11
- data/spec/support/shared/server_selector.rb +6 -0
- metadata +49 -13
- metadata.gz.sig +0 -0
- data/spec/mongo/server_discovery_and_monitoring_spec.rb +0 -115
@@ -0,0 +1,112 @@
|
|
1
|
+
description: "Monitoring a topology that is a replica set with no primary connected"
|
2
|
+
uri: "mongodb://a,b"
|
3
|
+
phases:
|
4
|
+
-
|
5
|
+
responses:
|
6
|
+
-
|
7
|
+
- "a:27017"
|
8
|
+
-
|
9
|
+
ok: 1
|
10
|
+
ismaster: false
|
11
|
+
secondary: true
|
12
|
+
setName: "rs"
|
13
|
+
setVersion: 1
|
14
|
+
primary: "b:27017"
|
15
|
+
hosts:
|
16
|
+
- "a:27017"
|
17
|
+
- "b:27017"
|
18
|
+
minWireVersion: 0
|
19
|
+
maxWireVersion: 4
|
20
|
+
outcome:
|
21
|
+
events:
|
22
|
+
-
|
23
|
+
topology_opening_event:
|
24
|
+
topologyId: "42"
|
25
|
+
-
|
26
|
+
topology_description_changed_event:
|
27
|
+
topologyId: "42"
|
28
|
+
previousDescription:
|
29
|
+
topologyType: "Unknown"
|
30
|
+
servers: []
|
31
|
+
newDescription:
|
32
|
+
topologyType: "Unknown"
|
33
|
+
servers:
|
34
|
+
-
|
35
|
+
address: "a:27017"
|
36
|
+
arbiters: []
|
37
|
+
hosts: []
|
38
|
+
passives: []
|
39
|
+
type: "Unknown"
|
40
|
+
-
|
41
|
+
address: "b:27017"
|
42
|
+
arbiters: []
|
43
|
+
hosts: []
|
44
|
+
passives: []
|
45
|
+
type: "Unknown"
|
46
|
+
-
|
47
|
+
server_opening_event:
|
48
|
+
topologyId: "42"
|
49
|
+
address: "a:27017"
|
50
|
+
-
|
51
|
+
server_opening_event:
|
52
|
+
topologyId: "42"
|
53
|
+
address: "b:27017"
|
54
|
+
-
|
55
|
+
server_description_changed_event:
|
56
|
+
topologyId: "42"
|
57
|
+
address: "a:27017"
|
58
|
+
previousDescription:
|
59
|
+
address: "a:27017"
|
60
|
+
arbiters: []
|
61
|
+
hosts: []
|
62
|
+
passives: []
|
63
|
+
type: "Unknown"
|
64
|
+
newDescription:
|
65
|
+
address: "a:27017"
|
66
|
+
arbiters: []
|
67
|
+
hosts:
|
68
|
+
- "a:27017"
|
69
|
+
- "b:27017"
|
70
|
+
passives: []
|
71
|
+
primary: "b:27017"
|
72
|
+
setName: "rs"
|
73
|
+
type: "RSSecondary"
|
74
|
+
-
|
75
|
+
topology_description_changed_event:
|
76
|
+
topologyId: "42"
|
77
|
+
previousDescription:
|
78
|
+
topologyType: "Unknown"
|
79
|
+
servers:
|
80
|
+
-
|
81
|
+
address: "a:27017"
|
82
|
+
arbiters: []
|
83
|
+
hosts: []
|
84
|
+
passives: []
|
85
|
+
type: "Unknown"
|
86
|
+
-
|
87
|
+
address: "b:27017"
|
88
|
+
arbiters: []
|
89
|
+
hosts: []
|
90
|
+
passives: []
|
91
|
+
type: "Unknown"
|
92
|
+
newDescription:
|
93
|
+
topologyType: "ReplicaSetNoPrimary"
|
94
|
+
setName: "rs"
|
95
|
+
servers:
|
96
|
+
-
|
97
|
+
address: "a:27017"
|
98
|
+
arbiters: []
|
99
|
+
hosts:
|
100
|
+
- "a:27017"
|
101
|
+
- "b:27017"
|
102
|
+
passives: []
|
103
|
+
primary: "b:27017"
|
104
|
+
setName: "rs"
|
105
|
+
type: "RSSecondary"
|
106
|
+
-
|
107
|
+
address: "b:27017"
|
108
|
+
arbiters: []
|
109
|
+
hosts: []
|
110
|
+
passives: []
|
111
|
+
type: "PossiblePrimary"
|
112
|
+
|
@@ -0,0 +1,111 @@
|
|
1
|
+
description: "Monitoring a topology that is a replica set with a primary connected"
|
2
|
+
uri: "mongodb://a,b"
|
3
|
+
phases:
|
4
|
+
-
|
5
|
+
responses:
|
6
|
+
-
|
7
|
+
- "a:27017"
|
8
|
+
-
|
9
|
+
ok: 1
|
10
|
+
ismaster: true
|
11
|
+
setName: "rs"
|
12
|
+
setVersion: 1
|
13
|
+
primary: "a:27017"
|
14
|
+
hosts:
|
15
|
+
- "a:27017"
|
16
|
+
- "b:27017"
|
17
|
+
minWireVersion: 0
|
18
|
+
maxWireVersion: 4
|
19
|
+
outcome:
|
20
|
+
events:
|
21
|
+
-
|
22
|
+
topology_opening_event:
|
23
|
+
topologyId: "42"
|
24
|
+
-
|
25
|
+
topology_description_changed_event:
|
26
|
+
topologyId: "42"
|
27
|
+
previousDescription:
|
28
|
+
topologyType: "Unknown"
|
29
|
+
servers: []
|
30
|
+
newDescription:
|
31
|
+
topologyType: "Unknown"
|
32
|
+
servers:
|
33
|
+
-
|
34
|
+
address: "a:27017"
|
35
|
+
arbiters: []
|
36
|
+
hosts: []
|
37
|
+
passives: []
|
38
|
+
type: "Unknown"
|
39
|
+
-
|
40
|
+
address: "b:27017"
|
41
|
+
arbiters: []
|
42
|
+
hosts: []
|
43
|
+
passives: []
|
44
|
+
type: "Unknown"
|
45
|
+
-
|
46
|
+
server_opening_event:
|
47
|
+
topologyId: "42"
|
48
|
+
address: "a:27017"
|
49
|
+
-
|
50
|
+
server_opening_event:
|
51
|
+
topologyId: "42"
|
52
|
+
address: "b:27017"
|
53
|
+
-
|
54
|
+
server_description_changed_event:
|
55
|
+
topologyId: "42"
|
56
|
+
address: "a:27017"
|
57
|
+
previousDescription:
|
58
|
+
address: "a:27017"
|
59
|
+
arbiters: []
|
60
|
+
hosts: []
|
61
|
+
passives: []
|
62
|
+
type: "Unknown"
|
63
|
+
newDescription:
|
64
|
+
address: "a:27017"
|
65
|
+
arbiters: []
|
66
|
+
hosts:
|
67
|
+
- "a:27017"
|
68
|
+
- "b:27017"
|
69
|
+
passives: []
|
70
|
+
primary: "a:27017"
|
71
|
+
setName: "rs"
|
72
|
+
type: "RSPrimary"
|
73
|
+
-
|
74
|
+
topology_description_changed_event:
|
75
|
+
topologyId: "42"
|
76
|
+
previousDescription:
|
77
|
+
topologyType: "Unknown"
|
78
|
+
servers:
|
79
|
+
-
|
80
|
+
address: "a:27017"
|
81
|
+
arbiters: []
|
82
|
+
hosts: []
|
83
|
+
passives: []
|
84
|
+
type: "Unknown"
|
85
|
+
-
|
86
|
+
address: "b:27017"
|
87
|
+
arbiters: []
|
88
|
+
hosts: []
|
89
|
+
passives: []
|
90
|
+
type: "Unknown"
|
91
|
+
newDescription:
|
92
|
+
topologyType: "ReplicaSetWithPrimary"
|
93
|
+
setName: "rs"
|
94
|
+
servers:
|
95
|
+
-
|
96
|
+
address: "a:27017"
|
97
|
+
arbiters: []
|
98
|
+
hosts:
|
99
|
+
- "a:27017"
|
100
|
+
- "b:27017"
|
101
|
+
passives: []
|
102
|
+
primary: "a:27017"
|
103
|
+
setName: "rs"
|
104
|
+
type: "RSPrimary"
|
105
|
+
-
|
106
|
+
address: "b:27017"
|
107
|
+
arbiters: []
|
108
|
+
hosts: []
|
109
|
+
passives: []
|
110
|
+
type: "Unknown"
|
111
|
+
|
@@ -0,0 +1,106 @@
|
|
1
|
+
description: "Monitoring a replica set with non member"
|
2
|
+
uri: "mongodb://a,b/"
|
3
|
+
phases:
|
4
|
+
-
|
5
|
+
responses:
|
6
|
+
-
|
7
|
+
- "a:27017"
|
8
|
+
- {
|
9
|
+
ok: 1,
|
10
|
+
ismaster: true,
|
11
|
+
setName: "rs",
|
12
|
+
setVersion: 1.0,
|
13
|
+
primary: "a:27017",
|
14
|
+
hosts: [ "a:27017" ],
|
15
|
+
minWireVersion: 0,
|
16
|
+
maxWireVersion: 4
|
17
|
+
}
|
18
|
+
-
|
19
|
+
- "b:27017"
|
20
|
+
- { ok: 1, ismaster: true }
|
21
|
+
outcome:
|
22
|
+
events:
|
23
|
+
-
|
24
|
+
topology_opening_event:
|
25
|
+
topologyId: "42"
|
26
|
+
-
|
27
|
+
topology_description_changed_event:
|
28
|
+
topologyId: "42"
|
29
|
+
previousDescription:
|
30
|
+
topologyType: "Unknown"
|
31
|
+
servers: []
|
32
|
+
newDescription:
|
33
|
+
topologyType: "Unknown"
|
34
|
+
servers:
|
35
|
+
-
|
36
|
+
address: "a:27017"
|
37
|
+
arbiters: []
|
38
|
+
hosts: []
|
39
|
+
passives: []
|
40
|
+
type: "Unknown"
|
41
|
+
-
|
42
|
+
address: "b:27017"
|
43
|
+
arbiters: []
|
44
|
+
hosts: []
|
45
|
+
passives: []
|
46
|
+
type: "Unknown"
|
47
|
+
-
|
48
|
+
server_opening_event:
|
49
|
+
topologyId: "42"
|
50
|
+
address: "a:27017"
|
51
|
+
-
|
52
|
+
server_opening_event:
|
53
|
+
topologyId: "42"
|
54
|
+
address: "b:27017"
|
55
|
+
-
|
56
|
+
server_description_changed_event:
|
57
|
+
topologyId: "42"
|
58
|
+
address: "a:27017"
|
59
|
+
previousDescription:
|
60
|
+
address: "a:27017"
|
61
|
+
arbiters: []
|
62
|
+
hosts: []
|
63
|
+
passives: []
|
64
|
+
type: "Unknown"
|
65
|
+
newDescription:
|
66
|
+
address: "a:27017"
|
67
|
+
arbiters: []
|
68
|
+
hosts: [ "a:27017" ]
|
69
|
+
passives: []
|
70
|
+
primary: "a:27017"
|
71
|
+
setName: "rs"
|
72
|
+
type: "RSPrimary"
|
73
|
+
-
|
74
|
+
server_closed_event:
|
75
|
+
topologyId: "42"
|
76
|
+
address: "b:27017"
|
77
|
+
-
|
78
|
+
topology_description_changed_event:
|
79
|
+
topologyId: "42"
|
80
|
+
previousDescription:
|
81
|
+
topologyType: "Unknown"
|
82
|
+
servers:
|
83
|
+
-
|
84
|
+
address: "a:27017"
|
85
|
+
arbiters: []
|
86
|
+
hosts: []
|
87
|
+
passives: []
|
88
|
+
type: "Unknown"
|
89
|
+
-
|
90
|
+
address: "b:27017"
|
91
|
+
arbiters: []
|
92
|
+
hosts: []
|
93
|
+
passives: []
|
94
|
+
type: "Unknown"
|
95
|
+
newDescription:
|
96
|
+
topologyType: "ReplicaSetWithPrimary"
|
97
|
+
setName: "rs"
|
98
|
+
servers:
|
99
|
+
-
|
100
|
+
address: "a:27017"
|
101
|
+
arbiters: []
|
102
|
+
hosts: [ "a:27017" ]
|
103
|
+
passives: []
|
104
|
+
primary: "a:27017"
|
105
|
+
setName: "rs"
|
106
|
+
type: "RSPrimary"
|
@@ -0,0 +1,84 @@
|
|
1
|
+
description: "Monitoring a topology that is required to be a replica set"
|
2
|
+
uri: "mongodb://a,b/?replicaSet=rs"
|
3
|
+
phases:
|
4
|
+
-
|
5
|
+
responses:
|
6
|
+
-
|
7
|
+
- "a:27017"
|
8
|
+
- {
|
9
|
+
ok: 1,
|
10
|
+
ismaster: true,
|
11
|
+
setName: "rs",
|
12
|
+
setVersion: 1.0,
|
13
|
+
primary: "a:27017",
|
14
|
+
hosts: [ "a:27017", "b:27017" ],
|
15
|
+
minWireVersion: 0,
|
16
|
+
maxWireVersion: 4
|
17
|
+
}
|
18
|
+
outcome:
|
19
|
+
events:
|
20
|
+
-
|
21
|
+
topology_opening_event:
|
22
|
+
topologyId: "42"
|
23
|
+
-
|
24
|
+
server_opening_event:
|
25
|
+
topologyId: "42"
|
26
|
+
address: "a:27017"
|
27
|
+
-
|
28
|
+
server_opening_event:
|
29
|
+
topologyId: "42"
|
30
|
+
address: "b:27017"
|
31
|
+
-
|
32
|
+
server_description_changed_event:
|
33
|
+
topologyId: "42"
|
34
|
+
address: "a:27017"
|
35
|
+
previousDescription:
|
36
|
+
address: "a:27017"
|
37
|
+
arbiters: []
|
38
|
+
hosts: []
|
39
|
+
passives: []
|
40
|
+
type: "Unknown"
|
41
|
+
newDescription:
|
42
|
+
address: "a:27017"
|
43
|
+
arbiters: []
|
44
|
+
hosts: [ "a:27017", "b:27017" ]
|
45
|
+
passives: []
|
46
|
+
primary: "a:27017"
|
47
|
+
setName: "rs"
|
48
|
+
type: "RSPrimary"
|
49
|
+
-
|
50
|
+
topology_description_changed_event:
|
51
|
+
topologyId: "42"
|
52
|
+
previousDescription:
|
53
|
+
topologyType: "ReplicaSetNoPrimary"
|
54
|
+
servers:
|
55
|
+
-
|
56
|
+
address: "a:27017"
|
57
|
+
arbiters: []
|
58
|
+
hosts: []
|
59
|
+
passives: []
|
60
|
+
type: "Unknown"
|
61
|
+
-
|
62
|
+
address: "b:27017"
|
63
|
+
arbiters: []
|
64
|
+
hosts: []
|
65
|
+
passives: []
|
66
|
+
type: "Unknown"
|
67
|
+
newDescription:
|
68
|
+
topologyType: "ReplicaSetWithPrimary"
|
69
|
+
setName: "rs"
|
70
|
+
servers:
|
71
|
+
-
|
72
|
+
address: "a:27017"
|
73
|
+
arbiters: []
|
74
|
+
hosts: [ "a:27017", "b:27017" ]
|
75
|
+
passives: []
|
76
|
+
primary: "a:27017"
|
77
|
+
setName: "rs"
|
78
|
+
type: "RSPrimary"
|
79
|
+
-
|
80
|
+
address: "b:27017"
|
81
|
+
arbiters: []
|
82
|
+
hosts: []
|
83
|
+
passives: []
|
84
|
+
type: "Unknown"
|
@@ -0,0 +1,70 @@
|
|
1
|
+
description: "Monitoring a standalone connection"
|
2
|
+
uri: "mongodb://a:27017"
|
3
|
+
phases:
|
4
|
+
-
|
5
|
+
responses:
|
6
|
+
-
|
7
|
+
- "a:27017"
|
8
|
+
- { ok: 1, ismaster: true, minWireVersion: 0, maxWireVersion: 4 }
|
9
|
+
|
10
|
+
outcome:
|
11
|
+
events:
|
12
|
+
-
|
13
|
+
topology_opening_event:
|
14
|
+
topologyId: "42"
|
15
|
+
-
|
16
|
+
topology_description_changed_event:
|
17
|
+
topologyId: "42"
|
18
|
+
previousDescription:
|
19
|
+
topologyType: "Unknown"
|
20
|
+
servers: []
|
21
|
+
newDescription:
|
22
|
+
topologyType: "Single"
|
23
|
+
servers:
|
24
|
+
-
|
25
|
+
address: "a:27017"
|
26
|
+
arbiters: []
|
27
|
+
hosts: []
|
28
|
+
passives: []
|
29
|
+
type: "Unknown"
|
30
|
+
-
|
31
|
+
server_opening_event:
|
32
|
+
topologyId: "42"
|
33
|
+
address: "a:27017"
|
34
|
+
-
|
35
|
+
server_description_changed_event:
|
36
|
+
topologyId: "42"
|
37
|
+
address: "a:27017"
|
38
|
+
previousDescription:
|
39
|
+
address: "a:27017"
|
40
|
+
arbiters: []
|
41
|
+
hosts: []
|
42
|
+
passives: []
|
43
|
+
type: "Unknown"
|
44
|
+
newDescription:
|
45
|
+
address: "a:27017"
|
46
|
+
arbiters: []
|
47
|
+
hosts: []
|
48
|
+
passives: []
|
49
|
+
type: "Standalone"
|
50
|
+
-
|
51
|
+
topology_description_changed_event:
|
52
|
+
topologyId: "42"
|
53
|
+
previousDescription:
|
54
|
+
topologyType: "Single"
|
55
|
+
servers:
|
56
|
+
-
|
57
|
+
address: "a:27017"
|
58
|
+
arbiters: []
|
59
|
+
hosts: []
|
60
|
+
passives: []
|
61
|
+
type: "Unknown"
|
62
|
+
newDescription:
|
63
|
+
topologyType: "Single"
|
64
|
+
servers:
|
65
|
+
-
|
66
|
+
address: "a:27017"
|
67
|
+
arbiters: []
|
68
|
+
hosts: []
|
69
|
+
passives: []
|
70
|
+
type: "Standalone"
|