Introduction: neo4j It is the current mainstream map database. It itself provides a high-availability clustering solution. This article will attempt to establish a high availability neo4j environment around it.
1. Is this a map database?
The key to the graphics library (graphic database) problem is the use of computers, lines, and data sets.
The graphical database describes the graphical descriptions in maps and other types of plans as basic elements such as points, lines, and polygons. These graphical elements are set up in data structures (usually topological data structures).
Contains two levels: the first level is a topological coding data collection, composed of descriptive points, lines, polygons and other graphical elements of the relationship between data files, including polygon files, segment files, node files and so on. Inter-file links are interconnected by associated data items. The second level encodes the data collection for the coordinates. It consists of a coordinate file describing the spatial position of each graphic element.
The graph database is the main form of organizing the digitized data of vector structure map in geographic information system.
2. neo4j Brief Introduction
NEO4J is now the mainstream of a graph database, compared to the traditional relational database. It can make query and retrieval based on interpersonal social network class at high speed; it provides the cypher language at the same time to facilitate the operation and query of the graph database, which is similar to the SQL language.
3. Neo4j can be built with high environment
System environment: Ubuntu 14.04, JDK 1.7
3.1 Download neo4j Enterprise version number
wget http://dist.neo4j.org/neo4j-enterprise-2.0.4-unix.tar.gz
3.2 Decompressionneo4jEnterprise Version number
Tar Xvfz neo4j-enterprise-2.0.4-unix.tar.gz
MV Neo4j-enterprise-2.0.4-unix neo4j
3.3 Copy 3 version numbers to the /opt folder
sudo cp-fr neo4j/opt/neo4j1
sudo cp-fr neo4j/opt/neo4j1
sudo cp-fr neo4j/opt/neo4j1
3.4 Changing configuration information for neo4j1
Neo4j.properties
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvymx1zwhlyxj0mja=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Neo4j-server.properties
3.5 Change the neo4j2 configuration file to ensure that it does not conflict with other
Neo4j.properties
Neo4j-server.properties
3.6 Change the configuration information of the NEO4J3 to make sure it is with 1. Port 2 does not conflict
Neo4j.properties
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvymx1zwhlyxj0mja=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
Neo4j-server.properties
watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvymx1zwhlyxj0mja=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/southeast ">
3.7 System Boot ( based on neo4j1)
3.8 Management Interface Execution diagram (http://ip:7474)
4. Summary
The high-availability scenario here is the use of synchronization between multiple nodes to achieve so-called high availability. The data between the nodes is exactly the same.
A highly available scenario is only in its commercial version number. For many other information, please visit its official website.
Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.
NEO4J Cluster Environment Construction