[SERVER-23705] Number of databases on Windows is limited when using on-disk encryption Created: 14/Apr/16  Updated: 08/Jan/24  Resolved: 30/Aug/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.2.5
Fix Version/s: 3.3.14

Type: Bug Priority: Major - P3
Reporter: Andrew Ryder (Inactive) Assignee: Mark Benvenuto
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows, all variants


Issue Links:
Depends
is depended on by SERVER-22555 Use SecureString/SecureVector wheneve... Backlog
Related
is related to DOCS-6885 Add "Locked Memory Pages" ulimit note Closed
is related to SERVER-74038 [Windows] Possible negative performan... Closed
is related to SERVER-23570 Make SecureAllocator a real allocator Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 14 (05/13/16), Platforms 15 (06/03/16), Platforms 16 (06/24/16), Platforms 17 (07/15/16), Platforms 18 (08/05/16), Platforms 2016-08-26, Platforms 2016-09-19
Participants:

 Description   

Even after SERVER-23570 is fixed, Windows will exhibit a limit to the number of databases that can be created with on-disk encryption enabled. Today that limit is ~30, after the fix to SERVER-23570 it will be ~5000 (this is an estimate). But there is no reason for this to be a fixed limit at all, it could scale to whatever the environment is able to handle.

In Linux the same sort of limits will occur (in fact, the limits are lower by default), but they are adjustable at the operating system level using the instructions in DOCS-6885. There are no equivalent instructions for Windows.

Windows requires an API call; SetProcessWorkingSetSize and MongoDB could try this when it gets the error code indicating that locked limit has been reached.



 Comments   
Comment by Githook User [ 30/Aug/16 ]

Author:

{u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}

Message: SERVER-23705 Number of databases on Windows is limited when using on-disk encryption
Branch: master
https://github.com/mongodb/mongo/commit/7edcfa7cd390ebb2d991a9de529ac0e4f7ee26fe

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