[DOCS-11904] Docs for SERVER-33697: Provide sanity check on number of cached sessions Created: 23/Jul/18  Updated: 29/Oct/23  Resolved: 05/Sep/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.7, 4.0.1, 4.1.1

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

Issue Links:
Documented
documents SERVER-33697 Provide sanity check on number of cac... Closed
Participants:
Days since reply: 5 years, 23 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 Description   

----------------------------

Original Description

Description:

No documentation summary in engineering ticket

Engineering Ticket Description:

Driver or application errors can result in an unbounded number of cached sessions, and that can result in performance degradation and eventually OOM. It would be useful to provide a sanity check, say at 1 M cached sessions, and warn or refuse further sessions when it is exceeded.

Fix Implementation

The commands that add new sessions to the cache are start_session_command, refresh_sessions_command and refresh_sessions_command_internal. These commands will now return false when the cache is full. The maximum number of sessions can be configured through an optional argument to the mongod command (maxSessions) and will default to 1M. LogicalSessionCacheImpl::_addToCache https://github.com/mongodb/mongo/blob/master/src/mongo/db/logical_session_cache_impl.cpp#L102  and LogicalSessionCacheImpl::startSession will now return a Status instead of void.

----------------------------

Description

Scope of changes (files that need work and how much)

Impact to other docs outside of this product

MVP (work and date?)

Resources (e.g. Scope Docs, Invision)



 Comments   
Comment by Githook User [ 04/Sep/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11904: maxSessions parameter for 3.6.7
Branch: v3.6
https://github.com/mongodb/docs/commit/e2df360ccbf0d4034e903bb62b738a52a0d6ab6f

Comment by Githook User [ 04/Sep/18 ]

Author:

{'name': 'kay', 'email': 'kay.kim@10gen.com', 'username': 'kay-kim'}

Message: DOCS-11904: maxSessions parameter
Branch: master
https://github.com/mongodb/docs/commit/ba411c31a27094142467874d61781203f079dc1b

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