Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-12740

Docs for SERVER-41192: Add a metric for the size of the SessionCatalog under `logicalSessionRecordCache`

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.12, 4.0.22
    • manual, Server
    • None

    Description

      Description

      Description:

      Please add documentation for this new metric called sessionCatalogSize, which will start showing-up under the LogicalSessionCache stats.

      Description is:
      The session catalog is an in-memory cache of the config.transactions collection on MongoD and on routers (starting in 4.2) it represents the number of cross-shard transactions, which are rooted on that MongoS. This metric represents the number of entries in the in-memory cache and is a way to monitor that sessions are reaped and not kept alive indefinitely.

      Engineering Ticket Description:

      The logicalSessionRecordCache section of serverStatus contains details about the entries in the logical session cache. This cache serves as a source of 'truth' for which logical sessions are considered active or not and is used to reap the SessionCatalog.

      However, since the SessionCatalog is linked to the internal state of transactions - it can not always be reaped when a session expires from the logical sessions cache. Because of this, for diagnostics purposes we should have FTDC data for what's the number of sessions in the SessionCatalog.

      This ticket is to add a logicalSessionRecordCache.sessionCatalogSize metric, which tracks the number of the SessionCatalog entries.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

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

      Attachments

        Issue Links

          Activity

            People

              kay.kim@mongodb.com Kay Kim (Inactive)
              kay.kim@mongodb.com Kay Kim (Inactive)
              Githook User Githook User
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 47 weeks, 1 day ago