Skip to content

jperras/mongo-profiling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Usage

python collectionstats.py --host localhost --interval 15 <database_name>

Sample Output

Current profiling level is: 0
Changing profiling level to 2 ... done.
Data collection starting - will stop in 30 seconds
Done! Collected 294 data profiling points.
Reverting back to original profile level of 0... done.
Beginning map/reduce...
Done!
+---------------+---------------+---------------+---------------+---------------+---------------+
|  collection   |  queries/sec  |  inserts/sec  | getmores/sec  |  updates/sec  |  removes/sec  |
+===============+===============+===============+===============+===============+===============+
| interests     | 1.5           | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| fs.files      | 0.06666666667 | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| sessions      | 0.76666666667 | 0.0           | 0.0           | 0.53333333333 | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| breadcrumbs   | 0.0           | 0.23333333333 | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| profiles      | 0.6           | 0.0           | 0.0           | 0.0           | 0.03333333333 |
+---------------+---------------+---------------+---------------+---------------+---------------+
| users         | 1.63333333333 | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| notifications | 0.23333333333 | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| scores        | 1.0           | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| inventory     | 0.6           | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| fs.chunks     | 0.03333333333 | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+
| products      | 0.23333333333 | 0.0           | 0.0           | 0.0           | 0.03333333333 |
+---------------+---------------+---------------+---------------+---------------+---------------+
| friends       | 0.6           | 0.0           | 0.0           | 0.0           | 0.0           |
+---------------+---------------+---------------+---------------+---------------+---------------+

About

A set of command line tools to help diagnose and profile MongoDB in an intelligent way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages