Permalink
Browse files

Make sure that when running the Neo4j HA Cluster example we are using…

… Neo4j.rb rules
  • Loading branch information...
1 parent 7cd8d6e commit c44ad690e04225377101c59e4448c3c94b1e12f8 @andreasronge andreasronge committed Jun 8, 2012
Showing with 11 additions and 5 deletions.
  1. +2 −2 Gemfile
  2. +3 −1 example/ha-cluster/Gemfile
  3. +6 −1 example/ha-cluster/config.yml
  4. +0 −1 example/ha-cluster/myapp.rb
View
@@ -2,8 +2,8 @@ source :gemcutter
gemspec
-#gem 'neo4j-core', :path => '/home/andreas/projects/neo4j-core'
-#gem 'neo4j-wrapper', :path => '/home/andreas/projects/neo4j-wrapper'
+gem 'neo4j-core', :path => '/home/andreas/projects/neo4j-core'
+gem 'neo4j-wrapper', :path => '/home/andreas/projects/neo4j-wrapper'
group 'development' do
gem 'guard'
@@ -1,5 +1,7 @@
source 'http://rubygems.org'
+gem 'neo4j-core', :path => '/home/andreas/projects/neo4j-core'
+gem 'neo4j-wrapper', :path => '/home/andreas/projects/neo4j-wrapper'
gem 'neo4j', :path => "../.."
gem 'neo4j-advanced'
-gem 'neo4j-enterprise'
+gem 'neo4j-enterprise'
@@ -25,6 +25,11 @@ ha.db: true
# If online backup should be available, if it is the Online JAR file will be loaded.
online_backup_enabled: false
+# If enable neo4j.rb will create _all relationship to all instances inheriting from Neo4j::Rails::Model
+# If disabled all custom rules will also be unavailable.
+enable_rules: true
+
+
# Example of HA Configuration, see http://wiki.neo4j.org/content/High_Availability_Cluster
# This is only used when ha.db is set to true
ha.server_id: 1
@@ -89,4 +94,4 @@ max_node_cache_size: 1500
#maximum size (number of relationship) of node cache. If adaptive cache is
#not in use the relationship cache will not be increased above this value
-max_relationship_cache_size: 3500
+max_relationship_cache_size: 3500
@@ -11,7 +11,6 @@ def start(machine_id)
Neo4j.config['ha.server_id'] = machine_id
Neo4j.config['ha.server'] = "localhost:600#{machine_id}"
Neo4j.config['enable_remote_shell'] = "port=933#{machine_id}"
-
# since we are all running on localhost we can only enable one online back up server
# since they all use the port 6362
Neo4j.config[:online_backup_enabled] = true if machine_id == 1

0 comments on commit c44ad69

Please sign in to comment.