-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into rocks-option
- Loading branch information
Showing
57 changed files
with
2,082 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,9 @@ Testing/ | |
target/ | ||
cluster.id | ||
pids/ | ||
.idea/ | ||
.project | ||
.settings/ | ||
.classpath | ||
cmake-build-debug/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
* 高可用 | ||
* 数据强一致 | ||
* 类 SQL 查询语言 | ||
* 用户鉴权 | ||
* 支持多存储后端 | ||
|
||
## 获取 `Nebula` ## | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/manual-CN/1.overview/2.quick-start/3.supported-clients.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Nebula 支持的客户端 | ||
|
||
目前,Nebula 支持如下客户端: | ||
|
||
* [Go 客户端](https://github.com/vesoft-inc/nebula-go) | ||
* [Python 客户端](https://github.com/vesoft-inc/nebula-python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 35 additions & 12 deletions
47
...ions/server-administration/configuration-statements/rocksdb-compaction-flush.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,63 @@ | ||
# RocksDB Compaction & Flush | ||
# RocksDB Compaction 和 Flush | ||
|
||
Nebula 支持对 storage 中的 RocksDB 设置是否自动 compaction,支持通过 HTTP 请求,手动触发 storage 的 RocksDB compaction 或 flush。 | ||
|
||
## 自动 RocksDB Compaction | ||
|
||
### 关闭自动 compaction | ||
### 关闭自动 Compaction | ||
|
||
在 console 输入如下命令**关闭**自动 compaction。 | ||
在 console 输入如下命令**关闭**自动 compaction 并查看更改是否生效。 | ||
|
||
```bash | ||
UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true } | ||
```ngql | ||
nebula> UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = true } | ||
nebula> GET CONFIGS storage:rocksdb_column_family_options | ||
========================================================================================================= | ||
| module | name | type | mode | value | | ||
========================================================================================================= | ||
| STORAGE | rocksdb_column_family_options | NESTED | MUTABLE | { | ||
"disable_auto_compactions": "true" | ||
} | | ||
--------------------------------------------------------------------------------------------------------- | ||
``` | ||
|
||
**注意:** 可以在大批量数据写入前关闭 auto compaction,但请记得批量写入后再将其打开,长期关闭 auto compaction 会影响后续的读性能。 | ||
|
||
### 打开自动 Compaction | ||
|
||
在 console 输入如下命令**打开**自动 compaction。 | ||
在 console 输入如下命令**打开**自动 compaction 并查看更改是否生效。Nebula 默认 compaction 为打开。 | ||
|
||
```bash | ||
UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = false } | ||
```ngql | ||
nebula> UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions = false } | ||
nebula> GET CONFIGS storage:rocksdb_column_family_options | ||
========================================================================================================== | ||
| module | name | type | mode | value | | ||
========================================================================================================== | ||
| STORAGE | rocksdb_column_family_options | NESTED | MUTABLE | { | ||
"disable_auto_compactions": "false" | ||
} | | ||
---------------------------------------------------------------------------------------------------------- | ||
``` | ||
|
||
## 手动触发 compaction 和 flush | ||
## 手动触发 Compaction 和 Flush | ||
|
||
手动触发 compaction 和 flush 需要通过 HTTP 请求,命令如下。 | ||
|
||
```bash | ||
curl "${ws_ip}:${ws_http_port}/admin?space=${spaceName}&${op}" | ||
``` | ||
|
||
- `ws_ip` 为 HTTP 服务的 IP,可以在 `storage.conf` 配置文件中找到。 | ||
- `ws_ip` 为 HTTP 服务的 IP,可以在 `etc/storage.conf` 配置文件中找到。 | ||
- `ws_http_port` 为 storage 的 HTTP 服务端口。 | ||
- `op` 为相关的 admin 操作,当前只支持 `compact` 和 `flush`。 | ||
|
||
例如: | ||
|
||
```bash | ||
curl "http://127.0.0.1:50005/admin?space=test&op=compact" | ||
curl "http://127.0.0.1:50005/admin?space=test&op=flush" | ||
curl "http://127.0.0.1:12000/admin?space=test&op=compact" | ||
curl "http://127.0.0.1:12000/admin?space=test&op=flush" | ||
``` | ||
|
||
> 注意:请先建立图空间test,再运行上面的curl命令。 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
docs/manual-EN/1.overview/2.quick-start/3.supported-clients.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Supported Clients by Nebula | ||
|
||
Currently, Nebula supports the following clients: | ||
|
||
* [Go 客户端](https://github.com/vesoft-inc/nebula-go) | ||
* [Python 客户端](https://github.com/vesoft-inc/nebula-python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ge/4.statement-syntax/2.data-query-and-manipulation-statements/return-syntax.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Return Syntax | ||
|
||
The `RETURN` statement is used to return the results when the filer conditions are true. | ||
|
||
```ngql | ||
RETURN <var_ref> IF <var_ref> IS NOT NULL | ||
``` | ||
|
||
* <var_ref> is a variable name, e.g. `$var`. | ||
|
||
## Examples | ||
|
||
```ngql | ||
nebula> $A = GO FROM 200 OVER like YIELD like._dst AS dst; \ | ||
$rA = YIELD $A.* WHERE $A.dst == 201; \ | ||
RETURN $rA IF $rA is NOT NULL; \ /* return here since $rA is not empty */ | ||
GO FROM $A.dst OVER like; /* will never be executed*/ | ||
========== | ||
| $A.dst | | ||
========== | ||
| 201 | | ||
---------- | ||
nebula> $A = GO FROM 200 OVER like YIELD like._dst AS dst; \ | ||
$rA = YIELD $A.* WHERE $A.dst == 300; \ | ||
RETURN $rA IF $rA is NOT NULL; \ /* not return since $rA is empty */ | ||
GO FROM $A.dst OVER like; | ||
============= | ||
| like._dst | | ||
============= | ||
| 200 | | ||
------------- | ||
| 202 | | ||
------------- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,5 +91,4 @@ for (const auto& result : resp.responses()) { | |
break; | ||
} | ||
} | ||
|
||
``` |
Oops, something went wrong.