Skip to content

Latest commit

 

History

History
114 lines (77 loc) · 6.46 KB

1.preparation.md

File metadata and controls

114 lines (77 loc) · 6.46 KB

Quick Start

This document is intended for new users to get started quickly and contains an introduction, features, installation, and use of TuGraph.

1.Introduction

TuGraph is a large-scale graph computing system independently developed by Ant Group, providing graph database engine and graph analysis engine. Its main features are large data storage and computation, high throughput, and flexible API, while supporting efficient online transaction processing (OLTP) and online analytical processing (OLAP). LightGraph and GeaGraph are former names of TuGraph.

The main functional features include:

  • Labeled property Graph Model
  • Support multiple Graphs
  • Full ACID transaction processing
  • Built-in 34 graph analysis algorithm
  • Graph visualization tool based on Web client
  • RESTful API and RPC are supported
  • OpenCypher graph query language
  • Stored procedure based on C++/Python/Java
  • The Traversal API for efficient graph algorithm development

Performance and scalability features include:

  • TB large capacity
  • High throughput of ten million vertices per second
  • High Availability Support (Enterprise Edition)
  • High-performance Batch Import
  • Online/offline backup

1.1.Supported Platforms

TuGraph supports both X86_64 and ARM64 architectures in physical, virtual, and containerized environments.

1.2.Hardware requirements

You are advised to use NVMe SSDS with large memory configurations for optimal performance。

Hardware Minimum Configuration Recommended configuration
CPU X86_64 Xeon E5 2670 v4
Memory 4GB 256GB
Disk 100GB 1TB NVMe SSD
System Linux 2.6 Ubuntu 18.04, CentOS 7.3

2.Installation

TuGraph can be installed quickly via Docker Image or locally via RPM /deb packages.In addition, TuGraph offers community edition services on Alibaba Cloud Computing Nest, which means you don't need to purchase your own cloud host to quickly deploy TuGraph services and achieve operational monitoring, thus building your own graph application.

Installation package/image download: refer to the TuGraph-Latest-Version section in Download address.

Computing Nest Deployment: You can search for it on Alibaba Cloud Computing Nest, or you can quickly access it through [deployment link] (../5.developer-manual/1.installation/5.cloud-deployment.md).

2.1.Fast experience through Docker

  1. The Docker environment installed locally

    The docker official documentation:https://docs.docker.com/get-started/

  2. Pull the docker images

    docker pull tugraph/tugraph-runtime-centos7
  3. Start docker

The TuGraph service can be started in two ways. The first method integrates the image pull with the service startup, allowing users to execute the container-running operation to simultaneously start the TuGraph service. The second method involves manually entering the container after creating the TuGraph container to trigger the service startup. While this method may involve more initial steps, it offers greater flexibility for password resets in cases such as forgetting the password.

Method One

 docker run -d -p 7070:7070  -p 7687:7687 -p 9090:9090 -v /root/tugraph/data:/var/lib/lgraph/data  -v /root/tugraph/log:/var/log/lgraph_log \
 --name tugraph_demo ${REPOSITORY}:${VERSION}

# ${REPOSITORY} is the image address,${VERSION} is the version number.
# 7070  is default http port,for tugraph-db-browser accessing..
# 7687 is bolt port, for neo4j client accessing.
# 9090 is default RPC port,for RPC client accessing.

# The default data directory is /var/lib/lgraph/data and the default log directory is /var/log/lgraph_log,
# which is configured in the tugraph configuration file at /usr/local/etc/lgraph.json inside the docker.
# This command mounts the data directory and log directory to /root/tugraph/ on the host for persistence,
# which you can modify according to your actual situation.

Method Two

 docker run -dt -p 7070:7070  -p 7687:7687 -p 9090:9090 -v /root/tugraph/data:/var/lib/lgraph/data  -v /root/tugraph/log:/var/log/lgraph_log \
 --name tugraph_demo ${REPOSITORY}:${VERSION} /bin/bash
 
 docker exec -it tugraph_demo bash
 lgraph_server -c /usr/local/etc/lgraph.json -d start

# ${REPOSITORY} is the image address,${VERSION} is the version number.
# 7070  is default http port,for tugraph-db-browser accessing..
# 7687 is bolt port, for neo4j client accessing.
# 9090 is default RPC port,for RPC client accessing.

# The default data directory is /var/lib/lgraph/data and the default log directory is /var/log/lgraph_log,
# which is configured in the tugraph configuration file at /usr/local/etc/lgraph.json inside the docker.
# This command mounts the data directory and log directory to /root/tugraph/ on the host for persistence,
# which you can modify according to your actual situation.

Please note that due to storage incompatibility between major versions, continuing to use the persistent directory from the old version's host during a cross-major version upgrade can cause the TuGraph service to fail to start. To avoid this issue, please change the path of the persistent directory during the upgrade. If you wish to use the previous data in the new version, please refer to the "Upgrade migration" section in the Data Migration. This issue does not affect initial installation and deployment.

  1. Open by browser

Accessing tugraph-db-browser: http://x.x.x.x:7070. The database address format is bolt://ip:bolt_port,Default account is admin and default password is 73@TuGraph. The page will be redirected to the password modification page for the first login. Please modify the password according to the page prompt.

2.2.Description of New and Old Front-ends.

To access the container and choose between the old and new versions of the frontend, modify the configuration file located at "/usr/local/etc/lgraph.json". For the old version, change the value of the "web" parameter to "/usr/local/share/lgraph/resource"; for the new version, set it to "/usr/local/share/lgraph/browser-resource". Once you've finished editing the configuration file, run the command docker restart tugraph to apply the changes. Bear in mind that the new version is the default selection.