Multiple graph sessions

(Kumar Gokhare) #1


I just downloaded neo4j and started trying out a few things. I've the desktop app and can only start 1 graph at a time and connect via Rest. I'm just trying out Rest, but I have node.js server which will be connecting to the database.

Is there a way to connect and query different graphs at the same time?


(Andrew Bowman) #2

Not with Desktop. It's designed to only have one graph online at a time.

You could install several Neo4j instances and change their port settings in their neo4j.conf files and run them at the same time.

Is there any particular reason why you need multiple separate graphs at this point in time?

(Doug) #3

I've a similar questiont to this. I mostly use Neo4j on Ubuntu, but am using it on Windows on a project. In Windows it's possible to have multiple databases all with different versions using the VERY convenient Neo4j Desktop app.

Is it possible to do something similar on linux? I've been using the same version neo4j that I used for the first of my projects for all my projects because I assumed this wasn't possible, but having seen it on Windows...

(Kumar Gokhare) #4

I have a web application which lets clients create a new session to a "server node". Each session will sync some graph topology data from a server in json, store it in a db and visualize at the client. I currently use mongodb and create a new collection for each session. Recently my data set size blew up several folds due to new requirements and mongodb is not viable for me anymore. I imported some of my data into neo4j and ran some cypher queries and it looks very promising to meet my needs.

I need a way to connect to a neo4j instance and do a get_graph_instance_by_name(). It cannot be a conf file configuration, Can I create new instances dynamically via JS driver?

I have a few hundred servers and 10-50 simultaneous clients. Servers are virtual nodes, so I periodically cleanup inactive ones. There is a 1-1 server to graph instance mapping.

(Andrew Bowman) #5

Hi Kumar, currently I don't believe Neo4j can support that use case.

We currently have multi-cluster, which is a separate cluster per graph, but that isn't meant for scaling or impromptu graph creation.

We are working on multi-tenancy features for the next major release, but that's looking into 2019.

Neo4j isn't designed for deployment across a massive number of servers, it's powerful enough that only a few instances are needed in a single cluster. Typically a 3-5 instance cluster is enough to support enterprise usage, though read replicas can be added for scaling read operations. Here's our causal clustering overview for review.

(Andrew Bowman) #6

Hi Doug, there's a Linux version of the Desktop app, give it a try, just choose the Neo4j Desktop tab here look for the Linux download link: