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

Comment on: "manual/reference/command/compact.txt"

    • Type: Icon: Task Task
    • Resolution: Incomplete
    • Priority: Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      "compact requires up to 2 gigabytes of additional disk space while running. Unlike repairDatabase, compact does not free space on the file system."
      ...
      Size and Number of Data Files
      compact may increase the total size and number of your data files, especially when run for the first time. However, this will not increase the total collection storage space since storage size is the amount of data allocated within the database files, and not the size/number of the files on the file system."

      After testing compact command, it seems it takes much more than 2GB additional space. We've tested it on 438GB partition with 90% capacity (part of 4 shards) and the compact was failed.

      Please advise.
      Thanks, Ofer

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            oc666 Ofer Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 24 weeks, 6 days ago