[SERVER-41192] Add a metric for the size of the SessionCatalog under `logicalSessionRecordCache` Created: 16/May/19  Updated: 29/Oct/23  Resolved: 22/May/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.12, 4.0.22

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Documented
is documented by DOCS-12740 Docs for SERVER-41192: Add a metric f... Closed
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6
Sprint: Sharding 2019-06-03
Participants:

 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.



 Comments   
Comment by Githook User [ 22/Oct/20 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-41192 Add a logical session cache metric for the size of the SessionCatalog

(cherry picked from commit c59329ab6b470a7f61a82b70910b529ae59982ee)
Branch: v4.0
https://github.com/mongodb/mongo/commit/cc9003ec7e6608b558f90a7cd68898f115d2d93a

Comment by Githook User [ 22/May/19 ]

Author:

{'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}

Message: SERVER-41192 Add a logical session cache metric for the size of the SessionCatalog
Branch: master
https://github.com/mongodb/mongo/commit/c59329ab6b470a7f61a82b70910b529ae59982ee

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