[SERVER-14882] Modify sh.status to include output from config.actionlog Created: 13/Aug/14  Updated: 11/Jul/16  Resolved: 20/Oct/14

Status: Closed
Project: Core Server
Component/s: Sharding, Shell
Affects Version/s: None
Fix Version/s: 2.7.8

Type: Improvement Priority: Major - P3
Reporter: David Hows Assignee: David Hows
Resolution: Done Votes: 0
Labels: community-team, pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-16499 sh.status shows incorrect owner and t... Closed
is related to SERVER-18506 Balancer section of printShardingStat... Closed
is related to SERVER-8197 Make all the shell helper functions u... Backlog
is related to SERVER-8752 Improve visibility of Balancer operation Closed
Participants:

 Description   

There have been several proposals to gather more data from the configdb for end users.

This resulted in SERVER-8752 to capture data out of the balancer. We now need to add additional details into the sh.status() or other commands to make this data readily visible to end users

Output is the following format:

  balancer:
	Currently enabled:  yes
	Currently running:  no
		Balancer active window is set between 23:00 and 6:00 server local time
	Collections with active migrations:
		testdb.tags started at Thu May 29 2014 07:23:16 GMT+1000 (AEST)
		bar.test started at Thu Jul 17 2014 16:05:43 GMT+1000 (AEST)
	Failed balancer rounds in last 5 attempts:  0
	Migration Results for the last 24 hours:
		1 : Success
		1 : Failed with error 'moveChunk failed to engage TO-shard in the data transfer: can't accept new chunks because  there are still 1 deletes from previous migration', from shard02 to shard01
		1 : Failed with error 'migration already in progress', from shard01 to shard02



 Comments   
Comment by Githook User [ 13/Oct/14 ]

Author:

{u'username': u'daveh86', u'name': u'daveh86', u'email': u'howsdav@gmail.com'}

Message: SERVER-14882 Add action log data to sh.status()

Closes #826

Signed-off-by: Benety Goh <benety@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/faf3e8f416519fc2d0a32a504913bab9c35e4358

Comment by Scott Hernandez (Inactive) [ 13/Aug/14 ]

Please provide an example of what information you think should be included, and in what format. Please note that adding more "text" is generally the wrong direction and cannot be used by any other client than the shell – think about someone wanting to use python to do the same thing.

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