[SERVER-10407] mongostat --discover should wait one interval to allow discovered members to report stats Created: 01/Aug/13  Updated: 10/Dec/14  Resolved: 03/Oct/13

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

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: Daniel Pasette (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-10319 [mongostat] --discover option does no... Closed
Participants:

 Description   

mongostat prints out the list of members before giving them a chance to report their stats. This is easy to fix by waiting one interval before printing out the members discovered.

monkey101:(git)mongo/$ mongostat --discover  --port 30999
connected to: 127.0.0.1:30999
 
               	insert  query update delete getmore command  vsize    res faults  netIn netOut  conn repl       time
localhost:30999	     0      1      0      0       0       1  2.35g     8m      0   109b   844b     3  RTR   15:47:29
 
localhost:30000	no data
localhost:30001	no data
localhost:30999	     0      0      0      0       0       1  2.35g     8m      0    62b   708b     3  RTR   15:47:30



 Comments   
Comment by Daniel Pasette (Inactive) [ 03/Oct/13 ]

Decided to leave the current behavior in order to provide immediate feedback to the user.

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