当前位置:网站首页>[tcaplusdb knowledge base] Introduction to tcaplusdb tcaplusadmin tool
[tcaplusdb knowledge base] Introduction to tcaplusdb tcaplusadmin tool
2022-06-29 03:32:00 【Database master】
Enter the tool Directory , perform ./tcaplusadmin help You can get the introduction and usage of each sub command ,tcaplusadmin The tools mainly have the following commands :
analysehashbuckets
validatedatafile
statshm、createshm、rmshm
compressengine、decompressengine
analytic_data_dump
Be careful :
When using tools , The version of the tool must be the same as svr Consistent versions of
When copying or backing up engine files , The corresponding... Must be stopped correctly first svr process
When using tools on engine files or ulog Before file operation , Please pay attention to the backup
It is recommended to put the files and tools required by the command in the same directory , Or use the absolute path to specify the file
1. analysehashbuckets
This command is used to analyze the statistics of binary trees in each hash bucket in the specified engine file , Including the number of nodes 、 Depth and other information , The command format is ./tcaplusadmin analysehashbuckets -f engfile, among ,engfile For the engine file to be analyzed .
Example :./tcaplusadmin analysehashbuckets -f /data1/1.2.2.1/AppID_2_ZoneID_3/test_table_1.txh
2. validatedatafile
This command is used to verify the validity of the engine file , The command format is ./tcaplusadmin validatedatafile -f engfile [--validate-type= ], The specific meanings of parameters are as follows :
engfile Represents the engine file used to validate
--validate-type Indicates the content to be verified , Yes head、stat、lru、freeblock、datablock_offsetiter、datablock_hashiter Optional
Example :./tcaplusadmin validatedatafile -f /data1/1.2.2.1/AppID_2_ZoneID_3/test_table_1.txh --validate-type=head
3. statshm、createshm、rmshm
These three commands are used to view 、 establish 、 Delete shared memory belonging to the current user , The command format and its meaning are as follows :
./tcaplusadmin statshm: List all shared memory belonging to the current user
./tcaplusadmin createshm: Create a piece of shared memory belonging to the current user
./tcaplusadmin rmshm --shmid=x [--force]: Delete shmid by x Shared memory for ,--force Is an optional parameter , Indicates forced deletion
4. compressengine、decompressengine
These two commands are used to compress and decompress the engine files respectively , The command format and its meaning are as follows :
./tcaplusadmin compressengine -f engfile -c dir: Use LZO The algorithm compresses the specified engine file ,engfile For the engine file to be compressed ,dir Save directory for compressed engine files
./tcaplusadmin decompressengine -f flzo -c dir: To use LZO Algorithm decompress the compressed engine file ,flzo For the use of LZO Algorithm compressed engine file ,dir Save directory for unzipped engine files
5. analytic_data_dump
This command is used to export the specified records in the engine file in the specified format , The command format is ./tcaplusadmin analytic_data_dump type so_name enginefileName appFlag zoneFlag tableName tdr_name, The specific meanings of the seven parameters are as follows :
type: Usually it is “so”, Said the use of so File for data export (so The function interfaces to be implemented in and their related descriptions )
so_name: User generated so file
enginefileName: A text file that records the engine file name , In this file , Each line corresponds to an engine file
appFlag: The business where the data table is located ID
zoneFlag: The server where the data table is located ID
tableName: Data table name
tdr_name: Data table tdr file
Example :./tcaplusadmin analytic_data_dump so mylib.so engfile.txt 2 3 test_table 2.3.test_table.tdr
For more information, please pay attention to TcaplusDB WeChat official account , In the wind and rain , We've been waiting for you !

TcaplusDB It's a distributed product of Tencent NoSQL database , The code for storage and scheduling is completely self-developed . With cache + Landing fusion architecture 、PB Levels of storage 、 Millisecond delay 、 Lossless horizontal expansion and complex data structure . At the same time, it has rich ecological environment 、 Easy migration 、 Extremely low operation and maintenance costs and five nine high availability features . Customer coverage game 、 Internet 、 government affairs 、 Finance 、 Manufacturing and the Internet of things .
边栏推荐
- Provide ideas in old texts
- FortiGate firewall configuration log uploading regularly
- [Ubuntu] [MySQL] Ubuntu installs mysql, but the compilation error is mysql h: No such file or directory
- [test theory] quality analysis ability
- Gcc compiler package
- Jerry's watch stops moving [chapter]
- [thread communication]
- leetcode:560. 和为 K 的子数组
- 2022-2028 global bubble CPAP system industry survey and trend analysis report
- Leetcode daily question - 324 Swing sort II
猜你喜欢

FPGA(八)RTL代码之四(基本电路设计1)

In depth analysis of Apache bookkeeper series: Part 3 - reading principle

87.(cesium篇)cesium热力图(贴地形)

设备监理师证书含金量怎样?值得考吗?

Etcd教程 — 第六章 Etcd之核心API V3

2022-2028 global bubble CPAP system industry survey and trend analysis report
![Same tree [from part to whole]](/img/2d/997b9cb9cd4f8ea8620f5a66fcf00a.png)
Same tree [from part to whole]

2022-2028 global CAE engineering service industry research and trend analysis report

MATALB signal processing - signal transformation (6)
![Movement state change of monitoring device of Jerry's watch [chapter]](/img/ff/cbc9e50a7d64e943f9f9924eadb184.jpg)
Movement state change of monitoring device of Jerry's watch [chapter]
随机推荐
Mobaihe box, ZTE box, Migu box, Huawei box, Huawei Yuehe box, Fiberhome box, Skyworth box, Tianyi box and other operators' box firmware collection and sharing
【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(三)
88.(cesium篇)cesium聚合图
Solid state and memory module purchase
Input input box click with border
The four traversal methods of the map set can be seen at a glance
Applet view creation
2022-2028 global industrial lithium chloride industry research and trend analysis report
Open source demo| you draw and I guess -- make your life more interesting
FortiGate firewall configuration log uploading regularly
Which is the product with the highest interest rate of increased life insurance on the market at present?
SVN常用的十个命令
Geth --- Error: authentication needed: password or unlock
Jerry's monitoring alarm clock [chapter]
Delphi time to timestamp
Ugui slider minimum control
【TcaplusDB知识库】查看tcapdir目录服务器
Supplement to the scheme of gateway+nacos+knife4j (swagger)
Wechat applet development Basics
目前市面上增额终身寿险利率最高的产品是哪个?