github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

fabiokung / clustered-jruby

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 31
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Cluster Configuration for JRuby, using Terracotta. — Read more

  cancel

http://fabiokung.com/2008/11/22/play-with-jmaglev-yourself/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

ignoring artifact files 
fabiokung (author)
Sat Nov 22 13:30:16 -0800 2008
commit  63b52b19e486c9f04b71d1d17f9f9980d3fcdfa0
tree    bb4914fe5893b41a8b6ffede51175355456a3a19
parent  d70f8d270fe9560f2f9ed52487a2c14675d131af
clustered-jruby /
name age
history
message
file .gitignore Loading commit data...
file Readme.markdown
file clustering_jruby.patch
directory examples/
directory jmaglev/
file pom.xml
directory src/
Readme.markdown

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
    
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server