[SERVER-2295] Need for Shards monitoring db.getShardingStatus() method instead of db.printShardingStatus() Created: 28/Dec/10  Updated: 17/Mar/11  Resolved: 28/Dec/10

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.7.4
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Sandeep Mukhopadhyay Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

Hi

Could you provide method db.getShardingStatus() which can retrieve sharding status values.

Currently method provide is db.printShardingStatus() and db.

I am using PHP driver for using db->execute($cmd). however db.printShardingStatus() doesn't return anything.

let me know for more details.

Regards
Sandeep Mukhopadhyay



 Comments   
Comment by Eliot Horowitz (Inactive) [ 28/Dec/10 ]

Those are shell helpers, not db commands.
All that information is easily access from the config db.
See: https://github.com/mongodb/mongo/blob/master/shell/servers.js#L437

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