Giter VIP home page Giter VIP logo

neo4j-ha-cluster-recipe's Introduction

Neo4j HA Cluster Recipe

Current features

  • Automated configuration of a cluster of Neo4j servers
  • Runs on locally hosted VMs using Vagrant over VirtualBox
  • Configuration using Puppet
  • Useful for basic testing

Potential future features

  • Ability to provision VMs in a real cloud such as AWS
  • Use Chef instead of or as an alternative to Puppet
  • Better generation of configuration to account for a variable number of servers in the cluster
  • Better modularisation of configuration so useful parts could be packaged and used for production deployments

Instructions

  1. Install VirtualBox
  2. gem install vagrant
  3. vagrant box add lucid64 http://files.vagrantup.com/lucid64.box
  4. git clone git://github.com/apcj/neo4j-ha-cluster-recipe.git && cd neo4j-ha-cluster-recipe
  5. vagrant up
  6. vagrant provision
  7. You should have a fully functioning 3-server HA cluster, with ports forwarded to the webadmin pages at http://localhost:7001/, http://localhost:7002/ and http://localhost:7003/.

Step 6 should not be required, because vagrant up does a provision itself. However, you will notice that the neo4j process on the first server will fail to start during vagrant up. This is because zookeeper isn't able to contact any of the other hosts in the roster at the time the first server starts. This is something we can hopefully fix soon. In any case, the problem is quickly resolved with a quick vagrant provision, which finds what's missing and starts the missing process on just server1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.