Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-7167

Provide interface within MongoDB to report namespace allocation

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.7, 2.2.0
    • Fix Version/s: None
    • Component/s: MMAPv1
    • Labels:
      None

      Description

      Currently, MongoDB allocates the namespace for new collections based on the 'nssize' parameter passed during the initial launch of mongod (or defaults to 16MB). While it's possible to query the mongod for the nssize parameter as passed on the command line, this number doesn't reflect the actual usage of namespaces for existing instances and will in fact differ from the value supplied as the nssize if the collection was created when the nssize parameter was different.

      This behavior means it's actually not possible to detect or report the actual allocation for the namespace storage, and thus not possible to detect if the system is about to exceed that allocation (and thus start failing to allocate new names). One must query the operating system to determine the actual allocation.

      Mongod should provide a way to query on the size allocated for the namespaces, which would enable features like MMS-787 to provide concrete warnings about potentially exceeding that limit.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-execution Backlog - Storage Execution Team
            Reporter:
            jason.coombs@yougov.com Jason R. Coombs
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: