crdb-cli crdb purge-instance
从本地实例中删除数据,并将其从主动-主动数据库中删除。
Redis 企业软件 |
---|
从本地实例中删除数据,并从主动-主动数据库中删除实例。
crdb-cli crdb purge-instance --crdb-guid <guid>
--instance-id <instance-id>
[ --no-wait ]
Once this command finishes, the other replicas must remove this instance with
crdb-cli crdb remove-instance --force
.
Parameters
Parameter
Value
Description
crdb-guid
string
The GUID of the database (required)
instance-id
string
The ID of the local instance (required)
no-wait
Does not wait for the task to complete
Returns
Returns the task ID of the task that is purging the local instance.
If --no-wait
is specified, the command exits. Otherwise, it will wait for the instance to be purged and return finished
.
Example
$ crdb-cli crdb purge-instance --crdb-guid db6365b5-8aca-4055-95d8-7eb0105c0b35 --instance-id 2
Task add0705c-87f1-4c28-ad6a-ab5d98e00c58 created
---> Status changed: queued -> started
---> Status changed: started -> finished
On this page