Itsa lapreso, the LA Ruby Presentatiano!
JavaScript Ruby CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
public
script
test
vendor/plugins
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

Welcome to My Riak MapReduce Demo Rails App!

How to Get Started

  • Clone this repo and install dependencies:

      git clone git://github.com/aitrus/lapreso.git
      cd lapreso
      export LAPRESO=`pwd`
      bundle install
    
  • Install Riak Search. I suggest building a development release.

      # Pre-Requisites: erlang (possibly mercurial?)
      cd $LAPRESO/db
      curl -O http://downloads.basho.com/riak-search/riak-search-0.13/riak_search-0.13.0.tar.gz
      tar zxf riak_search-0.13.0.tar.gz
    
      rm riak_search-0.13.0.tar.gz
      mv riak_search-0.13.0 riak_search
      cd riak_search
    
      make all devrel
    
  • Start Riak

      # Set your ulimits, if on a Mac (I suggest adding this to your .profile)
      ulimit -n 8192
    
      # Fire up the three dev nodes you built
      dev/dev1/bin/riaksearch start
      dev/dev2/bin/riaksearch start
      dev/dev3/bin/riaksearch start
    
      # Make em gossip
      dev/dev2/bin/riaksearch-admin join dev1@127.0.0.1
      dev/dev3/bin/riaksearch-admin join dev1@127.0.0.1
    
  • Bring in a load balancer, to simulate something not so lob-sided (not necessary, but will be assumed)

      cd $LAPRESO/db
      curl -O http://siag.nu/pub/pen/pen-0.18.0.tar.gz   # Make this a brew package?
      tar zxf pen-0.18.0.tar.gz
    
      rm pen-0.18.0.tar.gz
      mv pen-0.18.0 pen
      cd pen
    
      ./configure && make
    
      cd $LAPRESO
      # Port 8098 is the default web port; we'll have the load balancer sit here and route it to our dev nodes
      db/pen/pen -x 500 -p tmp/pen-8098.pid localhost:8098 8098 localhost:8091 localhost:8092 localhost:8093
    

Thanks To