DevTech101

DevTech101

How to Install and Configure a 3 node Neo4j Cluster

First make sure to install the Oracle (Sun) version Java

yum install java-1.8.0-openjdk.x86_64

To change the system to listen to the physical ip (not just localhost), un-comment the below

neo4j/conf/neo4j-server.properties
org.neo4j.server.webserver.address=0.0.0.0

To start the system in console mode – for setup/debug purpose

Note: On Solaris only console was able to work

Run ./bin/neo4j console

Now, connect with a browser

http://neo4j1.domain.com:7474/browser/

Use: Default username/password: neo4j/neo4j

DB startup script

Create a startup script

cat startup.sh 
#!/bin/bash


cd /data/neo4j
nohup ./bin/neo4j console &

Configuring High availability(HA)

The below setup was using this document for HA configuration

Un-comment in neo4j-server.properties

org.neo4j.server.database.mode=HA

#Change to proper ID, each node wit his own ID
ha.server_id=1

#All node address
ha.initial_hosts=10.10.10.111:5001,10.10.10.112:5001,10.10.10.113:5001

# Own interface
ha.cluster_server=10.10.10.113:5001

# Own interface
ha.server=10.10.10.113:6001

start the cluster on each node by it self

Now run the below to start the server
neo4j1 ./startup.sh
neo4j2 ./startup.sh
neo4j3 ./startup.sh

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: