Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j Scalability

I have read this article. It states, that Neo4j can scale horizontally, but only to increase read performance and fault tolerance... so the stored graph is copied to each server in a cluster. But what if I have a dataset that is larger than one server can store? Does Neo4j fail in this situation? Do I have to scale vertically in this situation and buy larger HDD?

Thank you

like image 810
MacakM Avatar asked Mar 02 '26 00:03

MacakM


1 Answers

Yes. You need enough hard drive space to contain the full graph on all nodes of the cluster, no way around that.

If you're instead referring to RAM instead of hard drive space, then it isn't necessary to have all of the db in memory (defined by the pagecache setting in neo4j.conf), but that will mean you'll hit the disk on all pagecache misses.

Here's the memory configuration section in the docs for details.

like image 151
InverseFalcon Avatar answered Mar 04 '26 21:03

InverseFalcon