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

sh.status() examples should include balancer details like active window

    XMLWordPrintableJSON

Details

    Description

      Description

      Regarding sh.status in the output examples part, there is a section starting balancer:

      SERVER-14882 introduces some useful details such as:

       Balancer lock taken at Fri Apr 04 2014 03:27:02 GMT-0400 (EDT) by hostNameFoo.prod.xx4.s.com:20000:1392326399:1804289383:Balancer:846930886 
       Balancer active window is set between 23:00 and 04:00
      

                      
      I suggest that these two lines be included in the docs example, so that it's discoverable. Otherwise it looks like the only way to query this is to access the config database directly, e.g. from the manager balancer docs.
       

      Relevant code:
      https://github.com/mongodb/mongo/blob/f48da7a0f83762d214128799923e4bcede800dbe/src/mongo/shell/utils_sh.js#L649

       

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            Unassigned Unassigned
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              1 year, 14 weeks, 2 days ago