Neo4j community edition on AWS additional storage options


(Jijo Xavierm) #1

Greetings!
I am quite new to Neo4j, especially, the cloud editions. I am planning to start with the community edition on AWS. I checked the neo4j AMIs and noticed that the actual database is stored on the root volume itself - which I would like to avoid.

What I would like is to store the actual data on a separate EBS volume attached to the instance. This way, (1) My data will be separate from the root volume, (2) I can pick/scale the storage size, (3) I can take/manage backups.

Is it possible to attach a separate EBS volume to the neo4j instance and store the data on it?

Thanks


(Jijo Xavierm) #2

Am I the only one who doesn't want to store the data on root disk? :thinking:


(M. David Allen) #3

Generally just an AMI won't do this "out of the box" because it's just an AMI, but of course you can do it.

To do it, you would:

  • Provision an EBS volume for your data directory (/var/lib/neo4j/data)
  • Stop neo4j inside of the VM
  • Mount the EBS volume to the right spot
  • Restart Neo4j

Then you'd be good to go. For our enterprise offerings on AWS we do just this -- the data is on a separate EBS volume. But those are done with CloudFormation templates so we can automate a lot of this stuff like provisioning EBS and attaching it. When you launch an AMI you just get the operating system as it is.