Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-config-for-graph-and-storage #1442

Merged
merged 3 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs-2.0/3.ngql-guide/9.space-statements/5.drop-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

`DROP SPACE` deletes the specified graph space and everything in it.

!!! note

`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

Only the God role can use the `DROP SPACE` statement. For more information, see [AUTHENTICATION](../../7.data-security/1.authentication/1.authentication.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 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. |
| `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. |
Expand Down