I am using Neo4.0 and I want to install the exactly same graph as multiple instances of neo4j on the same machine and run them at the same time. Those multiple instances can concurrently handle users' queries from client, and the hope is to maximize query performance (throughout) by making better use of a single machine's power. I saw an answer to a similar question as below:
'You could install several Neo4j instances and change their port settings in their neo4j.conf files and run them at the same time.'
But how to change port settings for the same machine? The relevant configurations are below:
You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address. # The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or # it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for # individual connectors below. #dbms.default_advertised_address=localhost # You can also choose a specific advertised hostname or IP address, and # configure an advertised port for each connector, by setting their # individual advertised_address.
Also, there is this one:
# Bolt connector dbms.connector.bolt.enabled=true #dbms.connector.bolt.tls_level=DISABLED dbms.connector.bolt.listen_address=:7687
Which one(s) should I modify to deal with mulitple instances of neo4j? Also, when creating the driver, should I one driver for each different neo4j instance?
driver = GraphDatabase.driver(self.uri, auth=(self.username, self.password), encrypted=False)