Skip to content

Commit

Permalink
Modify doc dir name from docs-2.0 to docs (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomJoe211 authored Jan 13, 2022
1 parent 561848d commit 1923f53
Show file tree
Hide file tree
Showing 516 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Nebula Graph 是一款开源的、分布式的、易扩展的原生图数据库

图数据库是专门存储庞大的图形网络并从中检索信息的数据库。它可以将图中的数据高效存储为点(Vertex)和边(Edge),还可以将属性(Property)附加到点和边上。

![What is a graph database](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/what-is-a-graph-database.png "What is a graph database")
![What is a graph database](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/what-is-a-graph-database.png "What is a graph database")

图数据库适合存储大多数从现实抽象出的数据类型。世界上几乎所有领域的事物都有内在联系,像关系型数据库这样的建模系统会提取实体之间的关系,并将关系单独存储到表和列中,而实体的类型和属性存储在其他列甚至其他表中,这使得数据管理费时费力。

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Nebula Graph 由三种服务构成:Graph 服务、Meta 服务和 Storage 服

下图展示了 Nebula Graph 集群的经典架构。

![Nebula Graph architecture](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/nebula-graph-architecture-1.png "Nebula Graph architecture")
![Nebula Graph architecture](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/nebula-graph-architecture-1.png "Nebula Graph architecture")

## Meta 服务

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Meta 服务架构

![The architecture of the Meta Service](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/meta-architecture1.png)
![The architecture of the Meta Service](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/meta-architecture1.png)

Meta 服务是由 nebula-metad 进程提供的,用户可以根据场景配置 nebula-metad 进程数量:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Graph 服务主要负责处理查询请求,包括解析查询语句、校验

## Graph 服务架构

![The architecture of the Graph Service](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/query-engine-architecture.png)
![The architecture of the Graph Service](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/query-engine-architecture.png)

查询请求发送到 Graph 服务后,会由如下模块依次处理:

Expand All @@ -22,7 +22,7 @@ Parser 模块收到请求后,通过 Flex(词法分析工具)和 Bison(

例如`GO FROM "Tim" OVER like WHERE properties(edge).likeness > 8.0 YIELD dst(edge)`语句转换的 AST 如下。

![AST](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/parser-ast-tree.png)
![AST](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/parser-ast-tree.png)

## Validator

Expand Down Expand Up @@ -66,7 +66,7 @@ Validator 模块对生成的 AST 进行语义校验,主要包括:

如果配置文件 `nebula-graphd.conf``enable_optimizer` 设置为 `true`,Planner 模块会对 Validator 模块生成的执行计划进行优化。如下图所示。

![Optimizer](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/optimizer.png)
![Optimizer](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/optimizer.png)

- 优化前

Expand All @@ -92,7 +92,7 @@ Validator 模块对生成的 AST 进行语义校验,主要包括:

Executor 模块包含调度器(Scheduler)和执行器(Executor),通过调度器调度执行计划,让执行器根据执行计划生成对应的执行算子,从叶子节点开始执行,直到根节点结束。如下图所示。

![Executor](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/executor.png)
![Executor](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/executor.png)

每一个执行计划节点都一一对应一个执行算子,节点的输入输出在优化执行计划时已经确定,每个算子只需要拿到输入变量中的值进行计算,最后将计算结果放入对应的输出变量中即可,所以只需要从节点 `Start` 一步步执行,最后一个算子的输出变量会作为最终结果返回给客户端。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Nebula Graph 使用强类型 Schema。

Nebula Graph 中逻辑上的一条边对应着硬盘上的两个键值对(key-value pair),在边的数量和属性较多时,存储放大现象较明显。边的存储方式如下图所示。

![edge storage](https://docs-cdn.nebula-graph.com.cn/docs-2.0/1.introduction/2.nebula-graph-architecture/two-edge-format.png)
![edge storage](https://docs-cdn.nebula-graph.com.cn/docs/1.introduction/2.nebula-graph-architecture/two-edge-format.png)

上图以最简单的两个点和一条边为例,起点 SrcVertex 通过边 EdgeA 连接目的点 DstVertex,形成路径`(SrcVertex)-[EdgeA]->(DstVertex)`。这两个点和一条边会以 4 个键值对的形式保存在存储层的两个不同分片,即 Partition x 和 Partition y 中,详细说明如下:

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 步骤 1:安装 Nebula Graph

{% include "/source_install-nebula-graph-by-rpm-or-deb.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 步骤 3:连接 Nebula Graph

{% include "/source_connect-to-nebula-graph.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

一个 Nebula Graph 实例由一个或多个图空间组成。每个图空间都是物理隔离的,用户可以在同一个实例中使用不同的图空间存储不同的数据集。

![Nebula Graph and graph spaces](https://docs-cdn.nebula-graph.com.cn/docs-2.0/2.quick-start/nebula-graph-instance-and-graph-spaces.png)
![Nebula Graph and graph spaces](https://docs-cdn.nebula-graph.com.cn/docs/2.quick-start/nebula-graph-instance-and-graph-spaces.png)

为了在图空间中插入数据,需要为图数据库定义一个 Schema。Nebula Graph 的 Schema 是由如下几部分组成。

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 步骤 2:启动 Nebula Graph 服务

{% include "/source_manage-service.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ Execution Plan

将上述示例的 DOT 语言转换为 Graphviz 图,如下所示。

![Graphviz graph of EXPLAIN SHOW TAGS](https://docs-cdn.nebula-graph.com.cn/docs-2.0/3.ngql-guide/16.query-tuning-statements/explain-show-tags.png)
![Graphviz graph of EXPLAIN SHOW TAGS](https://docs-cdn.nebula-graph.com.cn/docs/3.ngql-guide/16.query-tuning-statements/explain-show-tags.png)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 使用 RPM 或 DEB 包安装 Nebula Graph

{% include "/source_install-nebula-graph-by-rpm-or-deb.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 连接 Nebula Graph 服务

{% include "/source_connect-to-nebula-graph.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 管理 Nebula Graph 服务

{% include "/source_manage-service.md" %}
<!-- The line above is for content reusing. The source file is in the docs-2.0/reuse directory. -->
<!-- The line above is for content reusing. The source file is in the docs/reuse directory. -->
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
Loading

0 comments on commit 1923f53

Please sign in to comment.