doc/TD-32681-drop-dnode

This commit is contained in:
dmchen 2024-10-25 08:48:54 +00:00
parent 8862b67c0f
commit dd913a211d
2 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,16 @@ DROP DNODE dnode_id
Note that deleting a dnode does not stop its process. You must stop the process after the dnode is deleted. Note that deleting a dnode does not stop its process. You must stop the process after the dnode is deleted.
```sql
DROP DNODE dnode_id force
```
Only online node is allowed to be deleted. Drop is executed forcely if the offline node need to be deleted.
```sql
DROP DNODE dnode_id unsafe
```
Drop is executed unsafely if the node with single replica is offline, and the data on it is not able to be restored.
## Modify Dnode Configuration ## Modify Dnode Configuration
```sql ```sql

View File

@ -32,6 +32,16 @@ DROP DNODE dnode_id
注意删除 dnode 不等于停止相应的进程。实际中推荐先将一个 dnode 删除之后再停止其所对应的进程。 注意删除 dnode 不等于停止相应的进程。实际中推荐先将一个 dnode 删除之后再停止其所对应的进程。
```sql
DROP DNODE dnode_id force
```
只有在线节点可以被删除。如果要强制删除离线节点,需要执行强制删除操作。
```sql
DROP DNODE dnode_id unsafe
```
当节点上存在单副本,并且节点处于离线,如果要强制删除该节点,需要执行非安全删除,并且数据不可再恢复。
## 修改数据节点配置 ## 修改数据节点配置
```sql ```sql