From 7054e38ff6c95779e438d33af6b011d443d97317 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 21 Jun 2022 15:05:57 +0800 Subject: [PATCH 1/3] add-confif-for-graph-and-storage --- docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md | 4 ++++ .../1.configurations/3.graph-config.md | 3 ++- .../1.configurations/4.storage-config.md | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md b/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md index b36316262da..faa33b8728f 100644 --- a/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md +++ b/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md @@ -2,6 +2,10 @@ `DROP SPACE` deletes the specified graph space and everything in it. +!!! note + + `DROP SPACE` can only delete the specified graph space while retain all the data in it by modifying the value of `auto_remove_invalid_space` in the Storage service configuration file. For more information, see [Storage configuration](../../5.configurations-and-logs/1.configurations/4.storage-config.md). + ## Prerequisites Only the God role can use the `DROP SPACE` statement. For more information, see [AUTHENTICATION](../../7.data-security/1.authentication/1.authentication.md). diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md index f569bf72ff4..fc39896da74 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/3.graph-config.md @@ -72,7 +72,8 @@ For all parameters and their current values, see [Configurations](1.configuratio | `ws_ip` | `0.0.0.0` | Specifies the IP address for the HTTP service. | | `ws_http_port` | `19669` | Specifies the port for the HTTP service. | |`heartbeat_interval_secs` | `10` | Specifies the default heartbeat interval. Make sure the `heartbeat_interval_secs` values for all services are the same, otherwise Nebula Graph **CANNOT** work normally. This configuration is measured in seconds. | -|`storage_client_timeout_ms` |-| Specifies the RPC connection timeout threshold between the Graph Service and the Storage Service. This parameter is not predefined in the initial configuration files. You can manually set it if you need it. The system default value is `60000`ms. | +|`storage_client_timeout_ms` |-| Specifies the RPC connection timeout threshold between the Graph Service and the Storage Service. This parameter is not predefined in the initial configuration files. You can manually set it if you need it. The system default value is `60000` ms. | +|`slow_query_threshold_us`|`200000`|When the execution time of a query exceeds the value, the query is called a slow query. Unit: Microsecond.| |`ws_meta_http_port` |`19559`| Specifies the Meta service listening port used by the HTTP protocol. It must be consistent with the `ws_http_port` in the Meta service configuration file.| !!! caution diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md index cb239ce768e..ad72acdb193 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md @@ -108,7 +108,11 @@ For all parameters and their current values, see [Configurations](1.configuratio | Name | Predefined value | Description | | :-- | :----- | :--- | -| `snapshot_part_rate_limit` | `8388608` | The rate limit when the Raft leader synchronizes the stock data with other members of the Raft group. Unit: bytes/s. | +| `auto_remove_invalid_space` | `true` |After executing `DROP SPACE`, the specified graph space will be deleted. This parameter sets whether to delete all the data in the specified graph space at the same time. When the value is `true`, all the data in the specified graph space will be deleted at the same time.| +| `num_io_threads` | `16` | The number of network I/O threads used to send RPC requests and receive responses. | +| `num_worker_threads` | `32` | The number of worker threads for RPC-based Storage services. | +| `max_concurrent_subtasks` | `10` | The maximum number of concurrent subtasks to be executed by the task manager. | +| `snapshot_part_rate_limit` | `10485760` | The rate limit when the Raft leader synchronizes the stock data with other members of the Raft group. Unit: bytes/s. | | `snapshot_batch_size` | `1048576` | The amount of data sent in each batch when the Raft leader synchronizes the stock data with other members of the Raft group. Unit: bytes. | | `rebuild_index_part_rate_limit` | `4194304` | The rate limit when the Raft leader synchronizes the index data rate with other members of the Raft group during the index rebuilding process. Unit: bytes/s. | | `rebuild_index_batch_size` | `1048576` | The amount of data sent in each batch when the Raft leader synchronizes the index data with other members of the Raft group during the index rebuilding process. Unit: bytes. | From 788f4aaa6af269316a3a07e438eb7c0688d3c48a Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:07:55 +0800 Subject: [PATCH 2/3] commet fix --- docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md b/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md index faa33b8728f..0c5553ca97a 100644 --- a/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md +++ b/docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md @@ -4,7 +4,7 @@ !!! note - `DROP SPACE` can only delete the specified graph space while retain all the data in it by modifying the value of `auto_remove_invalid_space` in the Storage service configuration file. For more information, see [Storage configuration](../../5.configurations-and-logs/1.configurations/4.storage-config.md). + `DROP SPACE` can only delete the specified logic graph space while retain all the data on the hard disk by modifying the value of `auto_remove_invalid_space` to `false` in the Storage service configuration file. For more information, see [Storage configuration](../../5.configurations-and-logs/1.configurations/4.storage-config.md). ## Prerequisites From 1d88101ac67809a526fafdf0bc49bf66dcce3c29 Mon Sep 17 00:00:00 2001 From: Abby <78209557+abby-cyber@users.noreply.github.com> Date: Wed, 22 Jun 2022 09:46:02 +0800 Subject: [PATCH 3/3] Update 4.storage-config.md --- .../1.configurations/4.storage-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md index ad72acdb193..68bc6f696ca 100644 --- a/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md +++ b/docs-2.0/5.configurations-and-logs/1.configurations/4.storage-config.md @@ -110,7 +110,7 @@ For all parameters and their current values, see [Configurations](1.configuratio | :-- | :----- | :--- | | `auto_remove_invalid_space` | `true` |After executing `DROP SPACE`, the specified graph space will be deleted. This parameter sets whether to delete all the data in the specified graph space at the same time. When the value is `true`, all the data in the specified graph space will be deleted at the same time.| | `num_io_threads` | `16` | The number of network I/O threads used to send RPC requests and receive responses. | -| `num_worker_threads` | `32` | The number of worker threads for RPC-based Storage services. | +| `num_worker_threads` | `32` | The number of worker threads for one RPC-based Storage service. | | `max_concurrent_subtasks` | `10` | The maximum number of concurrent subtasks to be executed by the task manager. | | `snapshot_part_rate_limit` | `10485760` | The rate limit when the Raft leader synchronizes the stock data with other members of the Raft group. Unit: bytes/s. | | `snapshot_batch_size` | `1048576` | The amount of data sent in each batch when the Raft leader synchronizes the stock data with other members of the Raft group. Unit: bytes. |