[SERVER-4795] Mongostat opcount varies with sleep time when polling multiple hosts Created: 27/Jan/12 Updated: 11/Jul/16 Resolved: 08/Dec/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | 2.3.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Barrie Segal | Assignee: | Shaun Verch |
| Resolution: | Done | Votes: | 1 |
| Labels: | mongostat, neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
When mongostat is run with multiple hosts (either with the --discover flag or -h), the number of operations appears to be divided by the sleep time. To reproduce: Here is a JS function that will insert 100 records per second for a minute:
While the above is running, run mongostat with the following options: $ bin/mongostat -h localhost,127.0.0.1 5 Notice that the number of inserts is 20 (100/5). The same can be observed with using --discover: $ bin/mongostat --discover 5 If an interval of 10seconds is used, the "inserts" count changes to 10 (100/10): insert query update delete getmore command flushes mapped vsize res locked % idx miss % qr|qw ar|aw netIn netOut conn time The work-around is to poll only one host at a time, or poll multiple hosts with no delay. (In the second case, the division will still occur, but it will be by 1.) |
| Comments |
| Comment by auto [ 08/Dec/12 ] |
|
Author: {u'date': u'2012-11-28T01:05:47Z', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}Message: |