Skip to content

TheNeatCompany/bunsen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bunsen

Bunsen is a cache warming tool for MongoDB systems. Some use cases include:

  • Loading collection data or indexes into the OS filesystem cache
  • Loading collections from lazily-loaded backup media (e.g. AWS EBS snapshots) into block storage

install

From the repo, run:

bundle install

Once you run that you can also install it directly into your Rubygems repo with:

bundle exec rake install

examples

Load data for zebras and unicorns followed by indexes for unicorns and minotaurs from the "mydb" database:

bundle exec bunsen warm --host db7.domain.tld --database mydb --collections zebras unicorns --indexes unicorns minotaurs

Note that the order of collections and indexes is significant. Collections are always loaded first, followed by indexes in the order specified. You can use this to your advantage if short on memory as things will be evicted from cache in the order listed.

Load only the past week's workflow data from the local machine:

bundle exec bunsen warm --database mydb --collections workflows --skip-indexes --not-before "a week ago"

Or just load everything found in the database:

bundle exec bunsen warm --database mydb

Check out the help for a full list of options:

bundle exec bunsen help warm

About

Bunsen is a cache warming tool for MongoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%