Permalink
Browse files

Updated the Neo4j HA Cluster Example

  • Loading branch information...
1 parent 0d0ef8a commit 6605b6fc8e50c45401468d7afefab7a8a6f747e2 @andreasronge andreasronge committed Dec 28, 2012
Showing with 5 additions and 8 deletions.
  1. +3 −4 example/ha-cluster/Gemfile
  2. +1 −1 example/ha-cluster/README
  3. +1 −3 example/ha-cluster/myapp.rb
View
7 example/ha-cluster/Gemfile
@@ -1,7 +1,6 @@
source 'http://rubygems.org'
gem 'neo4j', :path => "../.."
-#gem 'neo4j-core', :path => '../../../neo4j-core'
-
-#gem 'neo4j-advanced', '1.9.M03' # you might have to change this so that it is the same version as neo4j-community
-#gem 'neo4j-enterprise', '1.9.M03'
+gem 'neo4j-community', '1.9.M03'
+gem 'neo4j-advanced', '1.9.M03'
+gem 'neo4j-enterprise', '1.9.M03'
View
2 example/ha-cluster/README
@@ -3,7 +3,7 @@ A simple High Availability Cluster Example
To run this:
-1. Nothing here :)
+1. type: bundle install
2. type: irb
View
4 example/ha-cluster/myapp.rb
@@ -5,10 +5,8 @@
require 'neo4j-enterprise'
def start(machine_id)
- #Neo4j::Config.default_file = 'config.yml' # use local config file
-
# override this default config with this machine configuration
- Neo4j.config['ha.db'] = true
+ Neo4j.config['enable_ha'] = true
Neo4j.config['ha.server_id'] = machine_id
Neo4j.config['ha.server'] = "localhost:600#{machine_id}"
Neo4j.config['ha.pull_interval'] = '500ms'

0 comments on commit 6605b6f

Please sign in to comment.