Skip to content

sgonyea/yakriak2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Itsa lapreso, the LA Ruby Presentatiano!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published