1. 程式人生 > 其它 >【TcaplusDB知識庫】叢集操作相關命令介紹

【TcaplusDB知識庫】叢集操作相關命令介紹

【TcaplusDB知識庫】叢集操作相關命令介紹

說明

叢集相關命令只支援騰訊雲TcaplusDB版本,不支援本地Docker版環境。本地Docker版本環境預設已經建立好一個叢集,使用者直接用預設的業務即可,無需重新建立。

幫助資訊

獲取叢集相關命令幫助資訊可執行tcapluscli cluster -h,如下:

./tcapluscli cluster
Provide baseic commands to operate TcaplusDB cluster. The basic commands includes: create, delete and describe

Usage:
tcapluscli cluster [flags]
tcapluscli cluster [command]

Examples:
./tcapluscli cluster [create | delete | describe ] [flags]

Available Commands:
create Create a TcaplusDB cluster.
delete Delete a TcaplusDB cluster. [Cloud Env]
describe Get cluster description information. [Cloud Env]

Flags:
-h, --help help for cluster

Use "tcapluscli cluster [command] --help" for more information about a command.

支援操作:

  • 建立叢集

  • 刪除叢集

  • 查詢叢集資訊

建立叢集

執行tcapluscli cluster create -h檢視相關叢集建立資訊

Create a TcaplusDB cluster. Only work for cloud environment but not docker environment.
Note: The network environment should be confirmed first, such as VPC and Subnet.

Usage:
tcapluscli cluster create [flags]

Examples:
./tcapluscli cluster create [flags]

Flags:
-n, --cluster-name string required: cluster name
-p, --cluster-password string required:cluster password
-h, --help help for create
-t, --idl-type string required: idl type of cluster: PROTO or TDR
-r, --region string required: region name of cluster (default "ap-shanghai")
-S, --subnet-id string required: subnet id of cluster
-V, --vpc-id string required: vpc id of cluster

命令功能:

  • 支援在指定Region、VPC、子網建立對應的叢集

  • 支援建立兩種型別表: PROTO, TDR

刪除叢集

執行tcapluscli cluster delete -h檢視相關幫助資訊

Delete a TcaplusDB cluster . Only work for cloud environment but not docker environment.
Note: The network environment should be confirmed first, such as VPC and Subnet.

Usage:
tcapluscli cluster delete [flags]

Examples:
./tcapluscli cluster delete [flags]

Flags:
-c, --cluster-id string required: tcaplusdb cluster id
-h, --help help for delete
-r, --region string required:region name of table (default "ap-shanghai")

命令功能:

  • 刪除指定Region下的叢集,根據叢集ID刪除即可

查詢叢集資訊

執行命令tcapluscli cluster describe -h可檢視相關幫助資訊,如下:

Get cluster description information. Only work for cloud environment but not docker environment.
If the flag 'cluster-id' is empty, all of cluster infos will be returned. Otherwise the specified cluster info will be returned.

Usage:
tcapluscli cluster describe [flags]

Examples:
./tcapluscli cluster describe --region=ap-shanghai [--cluster-id=1234445]
./tcapluscli cluster describe --region=ap-shanghai --list

Flags:
-c, --cluster-id string optional: tcaplusdb cluster id
-h, --help help for describe
-l, --list list all cluster infos, if 'cluster-id' is empty, 'list' flag must be existed
-r, --region string required:region name of table (default "ap-shanghai")

命令功能:

  • 支援查詢指定cluster id的叢集資訊

  • 支援查詢指定region下的所有叢集資訊


TcaplusDB是騰訊出品的分散式NoSQL資料庫,儲存和排程的程式碼完全自研。具備快取+落地融合架構、PB級儲存、毫秒級時延、無損水平擴充套件和複雜資料結構等特性。同時具備豐富的生態、便捷的遷移、極低的運維成本和五個九高可用等特點。客戶覆蓋遊戲、網際網路、政務、金融、製造和物聯網等領域。