Skip to content

Commit 8e5e453

Browse files
authored
add toss (#1035)
1 parent dc3e360 commit 8e5e453

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs-2.0/1.introduction/3.nebula-graph-architecture/4.storage-service.md

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ EdgeA_Out和EdgeA_In以方向相反的两条边的形式存在于存储层,二
142142

143143
如EdgeA_Out和EdgeA_In一样,Nebula Graph冗余了存储每条边的信息,导致存储边所需的实际空间翻倍。因为边对应的Key占用的硬盘空间较小,但Value占用的空间与属性值的长度和数量成正比,所以,当边的属性值较大或数量较多时候,硬盘空间占用量会比较大。
144144

145+
如果对边进行操作,为了保证两个键值对的最终一致性,可以开启[TOSS功能](../../5.configurations-and-logs/1.configurations/3.graph-config.md),开启后,会先在正向边所在的分片进行操作,然后在反向边所在分片进行操作,最后返回结果。
146+
145147
### 分片算法
146148

147149
分片策略采用**静态 Hash**的方式,即对点VID进行取模操作,同一个点的所有Tag、出边和入边信息都会存储到同一个分片,这种方式极大地提升了查询效率。

docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md

+12
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,15 @@ Graph服务提供了两份初始配置文件`nebula-graphd.conf.default`和`nebu
9292
| ------------------- | ---------------- | ------------------------------------------ |
9393
|`enable_authorize` |`false` |用户登录时是否进行身份验证。身份验证详情请参见[身份验证](../../7.data-security/1.authentication/1.authentication.md)|
9494
|`auth_type` |`password` |用户登录的身份验证方式。取值为`password``ldap``cloud`|
95+
96+
## experimental配置
97+
98+
| 名称 | 预设值 | 说明 |
99+
| ------------------- | ------------------------ | ------------------------------------------ |
100+
|`enable_experimental_feature`|`false`|实验性功能开关。可选值为`true``false`。当前支持的实验性功能请参见下文。|
101+
102+
### experimental功能说明
103+
104+
| 名称 | 说明 |
105+
| ------------------- | ------------------------------------------|
106+
|TOSS | TOSS(Transaction on Storage Side)功能,用于保证对边进行`INSERT``UPDATE``UPSERT`操作的最终一致性(因为逻辑上的一条边对应着硬盘上的两个键值对)。暂不支持`DELETE`操作。开启后会增加相关操作的时延约1倍。|

0 commit comments

Comments
 (0)