Skip to content

Instantly share code, notes, and snippets.

@TvL2386
Created June 3, 2012 18:01
Show Gist options
  • Save TvL2386/2864368 to your computer and use it in GitHub Desktop.
Save TvL2386/2864368 to your computer and use it in GitHub Desktop.
DCell: Communication with <node> interrupted
### node42.rb
require 'dcell'
DCell.start :id => "node42", :addr => "tcp://127.0.0.1:2042",
:registry => {
:adapter => 'redis',
:host => '127.0.0.1',
:port => 6379
}
loop { sleep 0.02 }
### node66.rb
require 'dcell'
DCell.start :id => "node66", :addr => "tcp://127.0.0.1:2066",
:directory => {
:id => 'node42',
:addr => 'tcp://127.0.0.1:2042'
}
loop { sleep 0.02 }
### node67.rb
require 'rubygems'
require 'dcell'
DCell.start :id => "node67", :addr => "tcp://127.0.0.1:2067",
:directory => {
:id => 'node42',
:addr => 'tcp://127.0.0.1:2042'
}
loop { sleep 0.02 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment