Skip to content

Commit f0c91b1

Browse files
author
Dave Cuthbert
authored
DOCS-14550-BACKPORT (#1982)
1 parent a157f56 commit f0c91b1

File tree

3 files changed

+174
-10
lines changed

3 files changed

+174
-10
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Number of non-transaction query operations that use default write
2+
concerns. The metrics track usage of the :dbcommand:`cluster wide write
3+
concern <setDefaultRWConcern>` (the global default write concern) and
4+
the implicit-default write concern.
5+
6+
The sum of the values in ``opWriteConcernCounters.noneInfo`` should
7+
equal the value of ``opWriteConcernCounters.none``.

source/reference/command/serverStatus.txt

Lines changed: 154 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,7 @@ opReadConcernCounters
28522852
"local" : NumberLong(<num>),
28532853
"majority" : NumberLong(<num>),
28542854
"snapshot" : NumberLong(<num>),
2855-
"none" : NumberLong(<num>)
2855+
"none" : NumberLong(<num>)
28562856
}
28572857

28582858
.. serverstatus:: opReadConcernCounters
@@ -2927,18 +2927,59 @@ opWriteConcernCounters
29272927
"<tag1>" : NumberLong(<num>),
29282928
...
29292929
},
2930-
"none" : NumberLong(<num>)
2930+
"none" : NumberLong(<num>),
2931+
"noneInfo" : {
2932+
"CWWC" : {
2933+
"wmajority" : NumberLong(<num>),
2934+
"wnum" : {
2935+
"<num>" : NumberLong(<num>),
2936+
...
2937+
},
2938+
"wtag" : {
2939+
"<tag1>" : NumberLong(<num>),
2940+
...
2941+
}
2942+
},
2943+
"implicitDefault" : {
2944+
"wmajority" : NumberLong(<num>)
2945+
"wnum" : {
2946+
"<num>" : NumberLong(<num>),
2947+
...
2948+
}
2949+
}
2950+
}
29312951
},
29322952
"update" : {
29332953
"wmajority" : NumberLong(<num>),
29342954
"wnum" : {
29352955
"<num>" : NumberLong(<num>),
2956+
...
29362957
},
29372958
"wtag" : {
29382959
"<tag1>" : NumberLong(<num>),
29392960
...
29402961
},
2941-
"none" : NumberLong(<num>)
2962+
"none" : NumberLong(<num>),
2963+
"noneInfo" : {
2964+
"CWWC" : {
2965+
"wmajority" : NumberLong(<num>),
2966+
"wnum" : {
2967+
"<num>" : NumberLong(<num>),
2968+
...
2969+
}
2970+
"wtag" : {
2971+
"<tag1>" : NumberLong(<num>),
2972+
...
2973+
}
2974+
},
2975+
"implicitDefault" : {
2976+
"wmajority" : NumberLong(<num>)
2977+
"wnum" : {
2978+
"<num>" : NumberLong(<num>),
2979+
...
2980+
}
2981+
}
2982+
}
29422983
},
29432984
"delete" : {
29442985
"wmajority" : NumberLong(<num>)
@@ -2950,7 +2991,27 @@ opWriteConcernCounters
29502991
"<tag1>" : NumberLong(<num>),
29512992
...
29522993
},
2953-
"none" : NumberLong(<num>)
2994+
"none" : NumberLong(<num>),
2995+
"noneInfo" : {
2996+
"CWWC" : {
2997+
"wmajority" : NumberLong(<num>),
2998+
"wnum" : {
2999+
"<num>" : NumberLong(<num>),
3000+
...
3001+
},
3002+
"wtag" : {
3003+
"<tag1>" : NumberLong(<num>),
3004+
...
3005+
}
3006+
},
3007+
"implicitDefault" : {
3008+
"wmajority" : NumberLong(<num>)
3009+
"wnum" : {
3010+
"<num>" : NumberLong(<num>),
3011+
...
3012+
}
3013+
}
3014+
}
29543015
}
29553016
}
29563017

@@ -2994,7 +3055,18 @@ opWriteConcernCounters
29943055
"<tag1>" : NumberLong(<num>),
29953056
...
29963057
},
2997-
"none" : NumberLong(<num>)
3058+
"none" : NumberLong(<num>),
3059+
"noneInfo" : {
3060+
"CWWC" : {
3061+
"wmajority" : NumberLong(<num>),
3062+
"wnum" : {},
3063+
"wtag" : {}
3064+
},
3065+
"implicitDefault" : {
3066+
"wmajority" : NumberLong(<num>)
3067+
"wnum" : {}
3068+
}
3069+
}
29983070
},
29993071

30003072
.. list-table::
@@ -3027,6 +3099,9 @@ opWriteConcernCounters
30273099
These operations use the default ``w`` value of
30283100
:ref:`"majority" <wc-default-behavior>`.
30293101

3102+
* - ``"noneInfo"``
3103+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3104+
30303105
The sum of the :serverstatus:`opWriteConcernCounters.insert` equals
30313106
:serverstatus:`opcounters.insert`.
30323107

@@ -3054,7 +3129,18 @@ opWriteConcernCounters
30543129
"<tag1>" : NumberLong(<num>),
30553130
...
30563131
},
3057-
"none" : NumberLong(<num>)
3132+
"none" : NumberLong(<num>),
3133+
"noneInfo" : {
3134+
"CWWC" : {
3135+
"wmajority" : NumberLong(<num>),
3136+
"wnum" : {},
3137+
"wtag" : {}
3138+
},
3139+
"implicitDefault" : {
3140+
"wmajority" : NumberLong(<num>)
3141+
"wnum" : {}
3142+
}
3143+
}
30583144
},
30593145

30603146
.. list-table::
@@ -3086,6 +3172,9 @@ opWriteConcernCounters
30863172
- Number of update operations that did not specify ``w`` value.
30873173
These operations use the default ``w`` value of ``1``.
30883174

3175+
* - ``"noneInfo"``
3176+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3177+
30893178
The sum of the :serverstatus:`opWriteConcernCounters.update` equals
30903179
:serverstatus:`opcounters.update`.
30913180

@@ -3113,7 +3202,18 @@ opWriteConcernCounters
31133202
"<tag1>" : NumberLong(<num>),
31143203
...
31153204
},
3116-
"none" : NumberLong(<num>)
3205+
"none" : NumberLong(<num>),
3206+
"noneInfo" : {
3207+
"CWWC" : {
3208+
"wmajority" : NumberLong(<num>),
3209+
"wnum" : {},
3210+
"wtag" : {}
3211+
},
3212+
"implicitDefault" : {
3213+
"wmajority" : NumberLong(<num>)
3214+
"wnum" : {}
3215+
}
3216+
}
31173217
}
31183218

31193219
.. list-table::
@@ -3145,6 +3245,9 @@ opWriteConcernCounters
31453245
- Number of delete operations that did not specify ``w`` value.
31463246
These operations use the default ``w`` value of ``1``.
31473247

3248+
* - ``"noneInfo"``
3249+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3250+
31483251
The sum of the :serverstatus:`opWriteConcernCounters.delete` equals
31493252
:serverstatus:`opcounters.delete`.
31503253

@@ -3472,6 +3575,17 @@ readConcernCounters
34723575
"readConcernCounters" : {
34733576
"nonTransactionOps" : {
34743577
"none" : NumberLong(<num>),
3578+
"noneInfo" : {
3579+
"CWRC" : {
3580+
"local" : NumberLong(<num>),
3581+
"available" : NumberLong(<num>),
3582+
"majority" : NumberLong(<num>)
3583+
},
3584+
"implicitDefault" : {
3585+
"local" : NumberLong(<num>),
3586+
"available" : NumberLong(<num>)
3587+
}
3588+
},
34753589
"local" : NumberLong(<num>),
34763590
"available" : NumberLong(<num>),
34773591
"majority" : NumberLong(<num>),
@@ -3483,6 +3597,17 @@ readConcernCounters
34833597
},
34843598
"transactionOps" : {
34853599
"none" : NumberLong(<num>),
3600+
"noneInfo" : {
3601+
"CWRC" : {
3602+
"local" : NumberLong(<num>),
3603+
"available" : NumberLong(<num>),
3604+
"majority" : NumberLong(<num>)
3605+
},
3606+
"implicitDefault" : {
3607+
"local" : NumberLong(<num>),
3608+
"available" : NumberLong(<num>)
3609+
}
3610+
},
34863611
"local" : NumberLong(<num>),
34873612
"majority" : NumberLong(<num>),
34883613
"snapshot" : {
@@ -3508,8 +3633,20 @@ readConcernCounters
35083633
.. serverstatus:: readConcernCounters.nonTransactionOps.none
35093634

35103635
Number of non-transaction query operations that did not specify a
3511-
read concern level and instead used the default :ref:`read concern
3512-
level <read-concern-levels>`.
3636+
read concern level and instead used either:
3637+
3638+
- the default :ref:`read concern level <read-concern-levels>`, or
3639+
- the global default read concern configuration if it was set by the
3640+
:dbcommand:`setDefaultRWConcern` command.
3641+
3642+
.. serverstatus:: readConcernCounters.nonTransactionOps.noneInfo
3643+
3644+
The number of non-transaction query operations that use the global
3645+
default read concern and an implicit-default read concern.
3646+
3647+
The sum of the values in
3648+
``readConcernCounters.nonTransactionOps.noneInfo`` should equal the
3649+
value of ``readConcernCounters.nonTransactionOps.none``.
35133650

35143651
.. serverstatus:: readConcernCounters.nonTransactionOps.local
35153652

@@ -3559,7 +3696,14 @@ readConcernCounters
35593696

35603697
Number of transaction query operations that did not specify a
35613698
read concern level and instead used the default :ref:`read concern
3562-
level <read-concern-levels>`.
3699+
level <read-concern-levels>` or the global default read or write
3700+
concern configuration added with the :dbcommand:`setDefaultRWConcern`
3701+
command.
3702+
3703+
.. serverstatus:: readConcernCounters.transactionOps.noneInfo
3704+
3705+
Information about the global default read concern and
3706+
implicit-default read concern used by transaction query operations.
35633707

35643708
.. serverstatus:: readConcernCounters.transactionOps.local
35653709

source/release-notes/5.0.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,19 @@ Read Concern Counters
12211221
:ref:`read concern level <read-concern-levels>` specified by query
12221222
operations (:serverstatus:`readConcernCounters` replaces
12231223
:serverstatus:`opReadConcernCounters`)
1224+
- :serverstatus:`readConcernCounters` now has the following new
1225+
fields:
1226+
1227+
- ``readConcernCounters.nonTransactionOps.noneInfo``
1228+
- ``readConcernCounters.transactionOps.noneInfo``
1229+
1230+
Write Concern Counters
1231+
- :serverstatus:`opWriteConcernCounters` now has the following new
1232+
fields:
1233+
1234+
- ``opWriteConcernCounters.insert.noneInfo``
1235+
- ``opWriteConcernCounters.update.noneInfo``
1236+
- ``opWriteConcernCounters.delete.noneInfo``
12241237

12251238
Number of Threaded Connections
12261239
- :serverstatus:`connections.threaded`, which reports the number of

0 commit comments

Comments
 (0)