[DOCS-12385] Docs for SERVER-38998: Create serverStatus metrics for readConcern and writeConcern Created: 22/Jan/19  Updated: 13/Nov/23  Resolved: 24/Jan/19

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.0.6, 4.1.8, 3.6.11, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-38998 Create serverStatus metrics for readC... Closed
Related
related to DOCS-12403 Docs for SERVER-39267: Guard opWriteC... Closed
Participants:
Days since reply: 4 years, 49 weeks, 3 days ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

Description

Description:

The serverStatus sections described in the Description were added.

Engineering Ticket Description:

We will create new serverStatus sections:

 
opReadConcernCounters: {
    available: <num>,
    linearizable: <num>,
    local: <num>,
    majority: <num>,
    snapshot: <num>,
    none: <num>
}

The sum of these counters should be opCounters.query (note that this means we will not include getMore commands, since these inherit the readConcern from the originating command).

opWriteConcernCounters: {
    insert: {
        wmajority: <num>,
        wnum: {
            "0": <num>,    // only generate these fields if they are used
            "2": <num>,
            ...
        },
        wtag: {
            "tag1": <num>,    // only generate these fields if they are used
            "tag2": <num>,
            ...
        }
        none: <num>
    },
    update: {
        wmajority: <num>,
        wnum: {
            "0": <num>,    // only generate these fields if they are used
            "2": <num>,
            ...
        },
        wtag: {
            "tag1": <num>,    // only generate these fields if they are used
            "tag2": <num>,
            ...
        }
        none: <num>
    },
    delete: {
        wmajority: <num>,
        wnum: {
            "0": <num>,    // only generate these fields if they are used
            "2": <num>,
            ...
        },
        wtag: {
            "tag1": <num>,    // only generate these fields if they are used
            "tag2": <num>,
            ...
        }
        none: <num>
    }
}

The sum of the counters for opWriteConcernCounters.insert should be opcounters.insert, and similarly for the other operations. Note that the j value is ignored, so {{

Unknown macro: {w}

}} and {{

Unknown macro: {w}

}} are both counted in w1.

Scope of changes

since 4.0.6,
just:

  • source/reference/command/serverStatus.txt
  • source/includes/extracts-server-status-projection-base.yaml

Impact to Other Docs

none - since new fields

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 04/Mar/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@mongodb.com'}

Message: DOCS-12385: opRead/WriteConcernCounters
Branch: v3.6
https://github.com/mongodb/docs/commit/6bb20b6a2199ed251a9e072d335abfeda11ded1c

Comment by Githook User [ 05/Feb/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@mongodb.com'}

Message: DOCS-12385: opRead/WriteConcernCounters
Branch: v4.0
https://github.com/mongodb/docs/commit/0a6db9f8afec7ec58a5101e95d0b49e9ed6051d5

Comment by Githook User [ 01/Feb/19 ]

Author:

{'name': 'Kay Kim', 'email': 'kay.kim@mongodb.com'}

Message: DOCS-12385: opRead/WriteConcernCounters
Branch: v3.6.11
https://github.com/mongodb/docs/commit/ba63604b748efdcfaa1cc4eb7382825f738b0738

Comment by Githook User [ 24/Jan/19 ]

Author:

{'email': 'kay.kim@mongodb.com', 'name': 'Kay Kim'}

Message: DOCS-12385: opRead/WriteConcernCounters
Branch: v4.0.6
https://github.com/mongodb/docs/commit/3243f688dfda136e51435b4a8789aadda59fade5

Comment by Githook User [ 24/Jan/19 ]

Author:

{'email': 'kay.kim@mongodb.com', 'name': 'Kay Kim'}

Message: DOCS-12385: opRead/WriteConcernCounters
Branch: master
https://github.com/mongodb/docs/commit/b6da9b94fd3367aaf39e63ce7e0f7fa438536893

Generated at Thu Feb 08 08:05:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.