Skip to content

anbazhagan/clustered-jruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step-by-step to run the JMaglev demo

  1. Pull from github:

    git clone git://github.com/fabiokung/clustered-jruby.git
    
  2. Long time waiting, because terracotta-2.7.1 (vanilla) and jruby-complete (patched) are bundled.

  3. Change to the project directory:

    cd clustered-jruby
    
  4. Build it:

    mvn install
    

    (although mvn package is enough)

  5. Change to the jmaglev demo directory:

    cd jmaglev
    
  6. Start the terracotta server:

    lib/terracotta-2.7.1/bin/start-tc-server.sh
    
  7. Open another two terminals

  8. Run the simplified jirb inside them:

    cd clustered-jruby/jmaglev
    ./bin/jmaglev jmaglev.rb
    
  9. Follow the demo. You will be able to share global variables among all jmaglevs:

    require 'hat'
    $hat
    require 'rabbit'
    $hat.put(Rabbit.new)
    
  10. in the other terminal, try to see the magic hat contents:

    $hat
    

About

Cluster Configuration for JRuby, using Terracotta.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published