@@ -91,126 +91,147 @@ The command returns the output of the following form:
91
91
"numAScopedConnections" : <num>,
92
92
"totalInUse" : <num>,
93
93
"totalAvailable" : <num>,
94
+ "totalLeased" : <num>, // Added in MongoDB 6.0.6
94
95
"totalCreated" : <num>,
95
96
"totalRefreshing" : <num>,
96
97
"replicaSetMatchingStrategy" : <string>,
97
98
"pools" : {
98
99
"NetworkInterfaceTL-TaskExecutorPool-0" : {
99
100
"poolInUse" : <num>,
100
101
"poolAvailable" : <num>,
102
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
101
103
"poolCreated" : <num>,
102
104
"poolRefreshing" : <num>,
103
105
"cfg1.example.net:27019" : {
104
106
"inUse" : <num>,
105
107
"available" : <num>,
108
+ "leased" : <num>, // Added in MongoDB 6.0.6
106
109
"created" : <num>,
107
110
"refreshing" :<num>
108
111
}
109
112
},
110
113
"NetworkInterfaceTL-TaskExecutorPool-1" : {
111
114
"poolInUse" : <num>,
112
115
"poolAvailable" : <num>,
116
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
113
117
"poolCreated" : <num>,
114
118
"poolRefreshing" : <num>,
115
119
"cfg1.example.net:27019" : {
116
120
"inUse" : <num>,
117
121
"available" : <num>,
122
+ "leased" : <num>, // Added in MongoDB 6.0.6
118
123
"created" : <num>,
119
124
"refreshing" :<num>
120
125
}
121
126
},
122
127
"NetworkInterfaceTL-TaskExecutorPool-2" : {
123
128
"poolInUse" : <num>,
124
129
"poolAvailable" : <num>,
130
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
125
131
"poolCreated" : <num>,
126
132
"poolRefreshing" : <num>,
127
133
"cfg1.example.net:27019" : {
128
134
"inUse" : <num>,
129
135
"available" : <num>,
136
+ "leased" : <num>, // Added in MongoDB 6.0.6
130
137
"created" : <num>,
131
138
"refreshing" :<num>
132
139
}
133
140
},
134
141
"NetworkInterfaceTL-TaskExecutorPool-3" : {
135
142
"poolInUse" : <num>,
136
143
"poolAvailable" : <num>,
144
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
137
145
"poolCreated" : <num>,
138
146
"poolRefreshing" : <num>,
139
147
"cfg1.example.net:27019" : {
140
148
"inUse" : <num>,
141
149
"available" : <num>,
150
+ "leased" : <num>, // Added in MongoDB 6.0.6
142
151
"created" : <num>,
143
152
"refreshing" :<num>
144
153
}
145
154
},
146
155
"NetworkInterfaceTL-ShardRegistry" : {
147
156
"poolInUse" : <num>,
148
157
"poolAvailable" : <num>,
158
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
149
159
"poolCreated" : <num>,
150
160
"poolRefreshing" : <num>,
151
161
"cfg1.example.net:27019" : {
152
162
"inUse" : <num>,
153
163
"available" : <num>,
164
+ "leased" : <num>, // Added in MongoDB 6.0.6
154
165
"created" : <num>,
155
166
"refreshing" :<num>
156
167
},
157
168
"cfg2.example.net:27019" : {
158
169
"inUse" : <num>,
159
170
"available" : <num>,
171
+ "leased" : <num>, // Added in MongoDB 6.0.6
160
172
"created" : <num>,
161
173
"refreshing" :<num>
162
174
},
163
175
"cfg3.example.net:27019" : {
164
176
"inUse" : <num>,
165
177
"available" : <num>,
178
+ "leased" : <num>, // Added in MongoDB 6.0.6
166
179
"created" : <num>,
167
180
"refreshing" :<num>
168
181
},
169
182
"shard1.example.net:27018" : {
170
183
"inUse" : <num>,
171
184
"available" : <num>,
185
+ "leased" : <num>, // Added in MongoDB 6.0.6
172
186
"created" : <num>,
173
187
"refreshing" :<num>
174
188
},
175
189
"shard2.example.net:27018" : {
176
190
"inUse" : <num>,
177
191
"available" : <num>,
192
+ "leased" : <num>, // Added in MongoDB 6.0.6
178
193
"created" : <num>,
179
194
"refreshing" :<num>
180
195
}
181
196
},
182
197
"global" : {
183
198
"poolInUse" : <num>,
184
199
"poolAvailable" : <num>,
200
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
185
201
"poolCreated" : <num>,
186
202
"poolRefreshing" : <num>,
187
203
"cfg3.example.net:27019" : {
188
204
"inUse" : <num>,
189
205
"available" : <num>,
206
+ "leased" : <num>, // Added in MongoDB 6.0.6
190
207
"created" : <num>,
191
208
"refreshing" :<num>
192
209
},
193
210
"cfg1.example.net:27019" : {
194
211
"inUse" : <num>,
195
212
"available" : <num>,
213
+ "leased" : <num>, // Added in MongoDB 6.0.6
196
214
"created" : <num>,
197
215
"refreshing" :<num>
198
216
},
199
217
"cfg2.example.net:27019" : {
200
218
"inUse" : <num>,
201
219
"available" : <num>,
220
+ "leased" : <num>, // Added in MongoDB 6.0.6
202
221
"created" : <num>,
203
222
"refreshing" :<num>
204
223
},
205
224
"shard2.example.net:27018" : {
206
225
"inUse" : <num>,
207
226
"available" : <num>,
227
+ "leased" : <num>, // Added in MongoDB 6.0.6
208
228
"created" : <num>,
209
229
"refreshing" :<num>
210
230
},
211
231
"shard1.example.net:27018" : {
212
232
"inUse" : <num>,
213
233
"available" : <num>,
234
+ "leased" : <num>, // Added in MongoDB 6.0.6
214
235
"created" : <num>,
215
236
"refreshing" :<num>
216
237
}
@@ -220,30 +241,35 @@ The command returns the output of the following form:
220
241
"cfg3.example.net:27019" : {
221
242
"inUse" : <num>,
222
243
"available" : <num>,
244
+ "leased" : <num>, // Added in MongoDB 6.0.6
223
245
"created" : <num>,
224
246
"refreshing" :<num>
225
247
},
226
248
"cfg1.example.net:27019" : {
227
249
"inUse" : <num>,
228
250
"available" : <num>,
251
+ "leased" : <num>, // Added in MongoDB 6.0.6
229
252
"created" : <num>,
230
253
"refreshing" :<num>
231
254
},
232
255
"cfg2.example.net:27019" : {
233
256
"inUse" : <num>,
234
257
"available" : <num>,
258
+ "leased" : <num>, // Added in MongoDB 6.0.6
235
259
"created" : <num>,
236
260
"refreshing" :<num>
237
261
},
238
262
"shard2.example.net:27018" : {
239
263
"inUse" : <num>,
240
264
"available" : <num>,
265
+ "leased" : <num>, // Added in MongoDB 6.0.6
241
266
"created" : <num>,
242
267
"refreshing" :<num>
243
268
},
244
269
"shard1.example.net:27018" : {
245
270
"inUse" : <num>,
246
271
"available" : <num>,
272
+ "leased" : <num>, // Added in MongoDB 6.0.6
247
273
"created" : <num>,
248
274
"refreshing" :<num>
249
275
}
@@ -319,6 +345,16 @@ Output
319
345
current :binary:`mongod` / :binary:`mongos` instance to other members
320
346
of the :term:`sharded cluster` or :term:`replica set`.
321
347
348
+ .. data:: connPoolStats.totalLeased
349
+
350
+ .. versionadded:: 6.0.6
351
+
352
+ Reports the total number of connections borrowed from a pool and
353
+ expected to return. These connections might not remain active
354
+ through the duration of a lease, and are excluded from the related
355
+ metrics. These connections are unavailble through the
356
+ duration of the lease.
357
+
322
358
.. data:: connPoolStats.totalCreated
323
359
324
360
Reports the total number of outgoing connections ever created by the
@@ -417,10 +453,11 @@ Output
417
453
{
418
454
"poolInUse" : <num>,
419
455
"poolAvailable" : <num>,
456
+ "poolLeased" : <num>, // Added in MongoDB 6.0.6
420
457
"poolCreated" : <num>,
421
458
"poolRefreshing" : <num>,
422
- "[host1]" : { "inUse" : <num>, "available" : <num>, "created" : <num>, "refreshing" : <num> },
423
- "[host2]" : { "inUse" : <num>, "available" : <num>, "created" : <num>, "refreshing" : <num> },
459
+ "[host1]" : { "inUse" : <num>, "available" : <num>, "leased" : <num>, " created" : <num>, "refreshing" : <num> },
460
+ "[host2]" : { "inUse" : <num>, "available" : <num>, "leased" : <num>, " created" : <num>, "refreshing" : <num> },
424
461
...
425
462
}
426
463
@@ -481,6 +518,16 @@ Output
481
518
Reports the total number of connections available for connecting
482
519
to the ``[host]``.
483
520
521
+ .. data:: connPoolStats.hosts.[host].leased
522
+
523
+ .. versionadded:: 6.0.6
524
+
525
+ Reports the total number of connections to the host borrowed from
526
+ a pool and expected to return. These connections might not remain
527
+ active through the duration of a lease, and are excluded from the
528
+ related metrics. These connections are unavailble through the
529
+ duration of the lease.
530
+
484
531
.. data:: connPoolStats.hosts.[host].created
485
532
486
533
Reports the number of connections to the ``[host]`` ever created.
0 commit comments