Skip to content

Commit 7a9032a

Browse files
author
Dave Cuthbert
authored
DOCS-14550-BACKPORT (#1981)
1 parent ea30c15 commit 7a9032a

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
@@ -2848,7 +2848,7 @@ opReadConcernCounters
28482848
"local" : NumberLong(<num>),
28492849
"majority" : NumberLong(<num>),
28502850
"snapshot" : NumberLong(<num>),
2851-
"none" : NumberLong(<num>)
2851+
"none" : NumberLong(<num>)
28522852
}
28532853

28542854
.. serverstatus:: opReadConcernCounters
@@ -2923,18 +2923,59 @@ opWriteConcernCounters
29232923
"<tag1>" : NumberLong(<num>),
29242924
...
29252925
},
2926-
"none" : NumberLong(<num>)
2926+
"none" : NumberLong(<num>),
2927+
"noneInfo" : {
2928+
"CWWC" : {
2929+
"wmajority" : NumberLong(<num>),
2930+
"wnum" : {
2931+
"<num>" : NumberLong(<num>),
2932+
...
2933+
},
2934+
"wtag" : {
2935+
"<tag1>" : NumberLong(<num>),
2936+
...
2937+
}
2938+
},
2939+
"implicitDefault" : {
2940+
"wmajority" : NumberLong(<num>)
2941+
"wnum" : {
2942+
"<num>" : NumberLong(<num>),
2943+
...
2944+
}
2945+
}
2946+
}
29272947
},
29282948
"update" : {
29292949
"wmajority" : NumberLong(<num>),
29302950
"wnum" : {
29312951
"<num>" : NumberLong(<num>),
2952+
...
29322953
},
29332954
"wtag" : {
29342955
"<tag1>" : NumberLong(<num>),
29352956
...
29362957
},
2937-
"none" : NumberLong(<num>)
2958+
"none" : NumberLong(<num>),
2959+
"noneInfo" : {
2960+
"CWWC" : {
2961+
"wmajority" : NumberLong(<num>),
2962+
"wnum" : {
2963+
"<num>" : NumberLong(<num>),
2964+
...
2965+
}
2966+
"wtag" : {
2967+
"<tag1>" : NumberLong(<num>),
2968+
...
2969+
}
2970+
},
2971+
"implicitDefault" : {
2972+
"wmajority" : NumberLong(<num>)
2973+
"wnum" : {
2974+
"<num>" : NumberLong(<num>),
2975+
...
2976+
}
2977+
}
2978+
}
29382979
},
29392980
"delete" : {
29402981
"wmajority" : NumberLong(<num>)
@@ -2946,7 +2987,27 @@ opWriteConcernCounters
29462987
"<tag1>" : NumberLong(<num>),
29472988
...
29482989
},
2949-
"none" : NumberLong(<num>)
2990+
"none" : NumberLong(<num>),
2991+
"noneInfo" : {
2992+
"CWWC" : {
2993+
"wmajority" : NumberLong(<num>),
2994+
"wnum" : {
2995+
"<num>" : NumberLong(<num>),
2996+
...
2997+
},
2998+
"wtag" : {
2999+
"<tag1>" : NumberLong(<num>),
3000+
...
3001+
}
3002+
},
3003+
"implicitDefault" : {
3004+
"wmajority" : NumberLong(<num>)
3005+
"wnum" : {
3006+
"<num>" : NumberLong(<num>),
3007+
...
3008+
}
3009+
}
3010+
}
29503011
}
29513012
}
29523013

@@ -2990,7 +3051,18 @@ opWriteConcernCounters
29903051
"<tag1>" : NumberLong(<num>),
29913052
...
29923053
},
2993-
"none" : NumberLong(<num>)
3054+
"none" : NumberLong(<num>),
3055+
"noneInfo" : {
3056+
"CWWC" : {
3057+
"wmajority" : NumberLong(<num>),
3058+
"wnum" : {},
3059+
"wtag" : {}
3060+
},
3061+
"implicitDefault" : {
3062+
"wmajority" : NumberLong(<num>)
3063+
"wnum" : {}
3064+
}
3065+
}
29943066
},
29953067

29963068
.. list-table::
@@ -3023,6 +3095,9 @@ opWriteConcernCounters
30233095
These operations use the default ``w`` value of
30243096
:ref:`"majority" <wc-default-behavior>`.
30253097

3098+
* - ``"noneInfo"``
3099+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3100+
30263101
The sum of the :serverstatus:`opWriteConcernCounters.insert` equals
30273102
:serverstatus:`opcounters.insert`.
30283103

@@ -3050,7 +3125,18 @@ opWriteConcernCounters
30503125
"<tag1>" : NumberLong(<num>),
30513126
...
30523127
},
3053-
"none" : NumberLong(<num>)
3128+
"none" : NumberLong(<num>),
3129+
"noneInfo" : {
3130+
"CWWC" : {
3131+
"wmajority" : NumberLong(<num>),
3132+
"wnum" : {},
3133+
"wtag" : {}
3134+
},
3135+
"implicitDefault" : {
3136+
"wmajority" : NumberLong(<num>)
3137+
"wnum" : {}
3138+
}
3139+
}
30543140
},
30553141

30563142
.. list-table::
@@ -3082,6 +3168,9 @@ opWriteConcernCounters
30823168
- Number of update operations that did not specify ``w`` value.
30833169
These operations use the default ``w`` value of ``1``.
30843170

3171+
* - ``"noneInfo"``
3172+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3173+
30853174
The sum of the :serverstatus:`opWriteConcernCounters.update` equals
30863175
:serverstatus:`opcounters.update`.
30873176

@@ -3109,7 +3198,18 @@ opWriteConcernCounters
31093198
"<tag1>" : NumberLong(<num>),
31103199
...
31113200
},
3112-
"none" : NumberLong(<num>)
3201+
"none" : NumberLong(<num>),
3202+
"noneInfo" : {
3203+
"CWWC" : {
3204+
"wmajority" : NumberLong(<num>),
3205+
"wnum" : {},
3206+
"wtag" : {}
3207+
},
3208+
"implicitDefault" : {
3209+
"wmajority" : NumberLong(<num>)
3210+
"wnum" : {}
3211+
}
3212+
}
31133213
}
31143214

31153215
.. list-table::
@@ -3141,6 +3241,9 @@ opWriteConcernCounters
31413241
- Number of delete operations that did not specify ``w`` value.
31423242
These operations use the default ``w`` value of ``1``.
31433243

3244+
* - ``"noneInfo"``
3245+
- .. include:: /includes/serverStatus/details-noneInfo.rst
3246+
31443247
The sum of the :serverstatus:`opWriteConcernCounters.delete` equals
31453248
:serverstatus:`opcounters.delete`.
31463249

@@ -3468,6 +3571,17 @@ readConcernCounters
34683571
"readConcernCounters" : {
34693572
"nonTransactionOps" : {
34703573
"none" : NumberLong(<num>),
3574+
"noneInfo" : {
3575+
"CWRC" : {
3576+
"local" : NumberLong(<num>),
3577+
"available" : NumberLong(<num>),
3578+
"majority" : NumberLong(<num>)
3579+
},
3580+
"implicitDefault" : {
3581+
"local" : NumberLong(<num>),
3582+
"available" : NumberLong(<num>)
3583+
}
3584+
},
34713585
"local" : NumberLong(<num>),
34723586
"available" : NumberLong(<num>),
34733587
"majority" : NumberLong(<num>),
@@ -3479,6 +3593,17 @@ readConcernCounters
34793593
},
34803594
"transactionOps" : {
34813595
"none" : NumberLong(<num>),
3596+
"noneInfo" : {
3597+
"CWRC" : {
3598+
"local" : NumberLong(<num>),
3599+
"available" : NumberLong(<num>),
3600+
"majority" : NumberLong(<num>)
3601+
},
3602+
"implicitDefault" : {
3603+
"local" : NumberLong(<num>),
3604+
"available" : NumberLong(<num>)
3605+
}
3606+
},
34823607
"local" : NumberLong(<num>),
34833608
"majority" : NumberLong(<num>),
34843609
"snapshot" : {
@@ -3504,8 +3629,20 @@ readConcernCounters
35043629
.. serverstatus:: readConcernCounters.nonTransactionOps.none
35053630

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

35103647
.. serverstatus:: readConcernCounters.nonTransactionOps.local
35113648

@@ -3555,7 +3692,14 @@ readConcernCounters
35553692

35563693
Number of transaction query operations that did not specify a
35573694
read concern level and instead used the default :ref:`read concern
3558-
level <read-concern-levels>`.
3695+
level <read-concern-levels>` or the global default read or write
3696+
concern configuration added with the :dbcommand:`setDefaultRWConcern`
3697+
command.
3698+
3699+
.. serverstatus:: readConcernCounters.transactionOps.noneInfo
3700+
3701+
Information about the global default read concern and
3702+
implicit-default read concern used by transaction query operations.
35593703

35603704
.. serverstatus:: readConcernCounters.transactionOps.local
35613705

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)