Manager Handbook for Distributed AntDB-T - P7
AntDB
Posted on August 3, 2023
clean
Command function:
The Clean command is used to clear all data under the data directory of the nodes in the AntDB cluster. This command assumes that all nodes are in the stop state and not in the cluster. There is no interaction with the clean command, so please execute this command carefully if you need to keep the data. Only the clean all command is supported for now. The specific functions can be viewed through the help command \h clean
.
Command format:
CLEAN ALL
CLEAN COORDINATOR { MASTER | SLAVE } { node_name [ , ... ] }
CLEAN DATANODE { MASTER | SLAVE } { node_name [ , ... ] }
CLEAN GTMCOORD { MASTER | SLAVE } node_name
CLEAN MONITOR number_days
CLEAN ZONE zonename
Command example:
-- Empty the contents of the data directory of all nodes in the AntDB cluster (the ADB cluster is in the STOP state):
CLEAN ALL;
-- Empty the data directory of coordinator node:
CLEAN COORDINATOR MASTER coord1;
-- Empty the monitor data from 15 days ago:
CLEAN MONITOR 15;
deploy
Command function: The Deploy command is used to distribute the executable files of machine-compiled AntDB cluster where adbmgr is located to the specified directory on the specified host. It is commonly used when you are just starting to deploy AntDB cluster or when the source code of AntDB cluster has been changed and needs to be recompiled. The specific function can be viewed by the help command \h deploy.
Command format:
DEPLOY { ALL | host_name [, ...] } [ PASSWORD passwd ]
Command example:
-- Distribute the executable file to all hosts (all hosts on the host table), with no mutual trust configured between hosts and the password "ls86SDf79":
DEPLOY ALL PASSWORD 'ls86SDf79';
-- Distribute the executable file to all hosts (all hosts on the host table), with mutual trust configured between hosts:
DEPLOY ALL;
-- Distribute the executable file to host1 and host2, with no mutual trust configured on neither of them, and the password to both is 'ls86SDf79':
DEPLOY host1,host2 PASSWORD 'ls86SDf79';
-- Distribute the executable file to host1 and host2, with mutual trust configured on both hosts:
DEPLOY host1,host2;
Posted on August 3, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 30, 2024