Remove/destroy DTR replica

I think the actual documentation can be confusing.
In fact if we want to completely remove a DTR cluster, we can use the destroy command, it is fine.

But, if we just want to remove a replica from a cluster, it is better to use the remove command which is safer and cleaner.
The destroy command do not send a notification to the RethinkDB on the others replicas which can be dangerous and leads to unhealthy DTR clusters.
This commit is contained in:
Alexandre Pinon 2018-01-25 11:16:21 +01:00 committed by Joao Fernandes
parent a735d44cdb
commit c27fdb2e72
1 changed files with 10 additions and 4 deletions

View File

@ -5,7 +5,13 @@ keywords: dtr, install, uninstall
--- ---
Uninstalling DTR can be done by simply removing all data associated with each Uninstalling DTR can be done by simply removing all data associated with each
replica. To do that, you just run the destroy command once per replica: replica. To do that, you just run the remove command once per replica and destroy the last one :
```none
docker run -it --rm \
docker/dtr:{{ page.dtr_version }} remove \
--ucp-insecure-tls
```
```none ```none
docker run -it --rm \ docker run -it --rm \
@ -14,10 +20,10 @@ docker run -it --rm \
``` ```
You will be prompted for the UCP URL, UCP credentials, and which replica to You will be prompted for the UCP URL, UCP credentials, and which replica to
destroy. remove/destroy.
To see what options are available in the destroy command, check the To see what options are available in the remove/destroy commands, check the
[destroy command reference documentation](../../../reference/cli/destroy.md). [remove command reference documentation](../../../reference/cli/remove.md) and [destroy command reference documentation](../../../reference/cli/destroy.md).
## Where to go next ## Where to go next