[DOCS-15148] Investigate changes in SERVER-1864: Support Capped Collection Size Increase Created: 04/Mar/22  Updated: 13/Nov/23  Resolved: 21/Apr/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: Ashley Brown
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-1864 Support Resizing Capped Collections Closed
Participants:
Days since reply: 1 year, 41 weeks, 6 days ago
Epic Link: DOCSP-19446
Story Points: 3

 Description   
Original Downstream Change Summary

This ticket allows users to resize a capped collection through the collMod command. The new fields that change a capped collection size limits are called 'cappedSize' and 'cappedMax'. cappedSize specifies the new maximum size in bytes for the capped collection [1, 1PB] and cappedMax specifies the maximum number of documents allowed in a capped collection (cappedMax <= 0 implies no limit). We prohibit the use of this command to resize the oplog, instead users should use 'replSetResizeOplog'.

Description of Linked Ticket

Pre-allocating capped collection sizes is quite hard. Most estimates turn out right; but once in a while, I regret a production-used cap-size. Right now, the only way to increase size of a capped collection is to allocate space on disk by piping zeros, creating a new capped collection, copy elements from src. to dest. and finally, rename dest. to src.

If there are better ways to do this, please let me know.

If this becomes a feature in the server; that'd be great.



 Comments   
Comment by Githook User [ 21/Apr/22 ]

Author:

{'name': 'Ashley Brown', 'email': '98361885+mdb-ashley@users.noreply.github.com', 'username': 'mdb-ashley'}

Message: DOCS-15148: Resize a capped collection (#964)

  • Adding information about new collMod options
  • Tweaks
  • Tweaks
  • Tweaks
  • Add release note
  • Updating link
  • Adding note about oplog
Comment by Ashley Brown [ 20/Apr/22 ]

Hi fausto.leyva@mongodb.com, I've proposed changes to the 6.0 documentation based on the work you did in SERVER-1864. Would you be willing to review the PR? Thanks!

Comment by Jess Mokrzecki [ 28/Mar/22 ]

Fix Version updated for upstream SERVER-1864:
6.0.0-rc0

Comment by Jess Mokrzecki [ 28/Mar/22 ]

Fix Version updated for upstream SERVER-1864:
6.0.0, 6.0.0-rc0

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