We are trying to access Neo4J graph database server from multiple nodejs processes. Each process is creating their own connections and trying to connect/write to neo4j database. We tried with around ~10 processes and it didn't able to handle these many connections.
Given that, all connections are with high workload.
Can anybody suggest how many prallel connections to use for Neo4J DB is practical and how to scale to support more connections?
Edit: More Info connections are created using 'neo4j' npm package as below:
var neo4j = require('neo4j')
var config = require('./config')
var graph = new neo4j.GraphDatabase(config.db.neo4j)
//usage
graph.query(query, params, function(err, result){
//
})
I am assuming for each process, this code is creating new connection(each instance of 'graph' variable), as there doesn't seems to be any pooling mechanism apparently.
I am assuming the number of connection based on the nodejs processes spawned(all processes are single threaded).