Little demo for capped collections, tailable cursor and live monitoring in Firefox.
-
Create
dumpster
db -
Create log capped collection
db.createCollection( "log", { capped: true, size: 100000 } )
-
Install all crap
npm install bower install
-
Run the app
/usr/local/bin/node bin/www
-
Run data generators (you can open several consoles, or use
screen
sessions)php generator.php
You can run several generators in the same console (add ampersand to the end of command):
php generator.php &