[DOCS-5347] mongostat options to connect to a replica set are incorrectly documented Created: 05/May/15  Updated: 11/Jan/17  Resolved: 01/Jun/15

Status: Closed
Project: Documentation
Component/s: tools
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Task Priority: Major - P3
Reporter: Joanna Cheng Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 37 weeks, 2 days ago

 Description   

http://docs.mongodb.org/manual/reference/program/mongostat/#cmdoption--host

To connect to a replica set, specify the replSetName and a seed list of set members, as in the following:

<replSetName>/<hostname1><:port>,<hostname2><:port>,<...>

Except this doesn't work:

$ mongostat --host replset/penguin:27018,penguin:27019,penguin:27017
                     	insert  query update delete getmore command flushes mapped  vsize    res faults  locked db idx miss %     qr|qw   ar|aw  netIn netOut  conn     set repl       time
        penguin:27017	    *0     *0     *0     *0       0     2|0       0   336m  3.12g    10m      0 local:0.0%          0       0|0     0|0   218b     3k     7 replset  PRI   16:41:18
        penguin:27019	    *0     *0     *0     *0       0     2|0       0   336m  3.11g    10m      0 local:0.0%          0       0|0     0|0   218b     3k     3 replset  SEC   16:41:18
replset/penguin:27018	socket exception [CONNECT_ERROR] for replset/penguin:27018 (replset/penguin) failed
2015-05-05T16:41:18.622+1000 warning: Failed to connect to replset/penguin:0, reason: errno:2 No such file or directory

$ mongostat --host penguin:27018,penguin:27019,penguin:27017
 
             	insert  query update delete getmore command flushes mapped  vsize    res faults  locked db idx miss %     qr|qw   ar|aw  netIn netOut  conn     set repl       time
penguin:27017	    *0     *0     *0     *0       1     1|0       0   336m  3.12g     8m      0 local:0.0%          0       0|0     0|0   109b     3k     7 replset  PRI   16:48:27
penguin:27018	    *0     *0     *0     *0       0     3|0       0   336m  3.11g     9m      0 local:0.0%          0       0|0     0|0   374b     3k     3 replset  SEC   16:48:27
penguin:27019	    *0     *0     *0     *0       0     3|0       0   336m  3.11g     8m      0 local:0.0%          0       0|0     0|0   374b     3k     3 replset  SEC   16:48:27



 Comments   
Comment by Githook User [ 01/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5347 mongostat and host values for replica sets
Branch: master
https://github.com/mongodb/docs/commit/e7500b0c9c3ab3572b53d62d640427731d3c7350

Comment by Githook User [ 01/Jun/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5347 mongostat and host values for replica sets
Branch: v2.6
https://github.com/mongodb/docs/commit/43508a8a65bc7094d5387013e28286b03788bbe1

Generated at Thu Feb 08 07:50:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.