当前位置:网站首页>[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 .
边栏推荐
- Digital twin application of smart Park Based on Web GIS aerial photography
- Tupu software intelligent energy integrated management and control platform
- Etcd教程 — 第七章 Etcd之事务API
- 2022-2028 global MWIR camera industry research and trend analysis report
- leetcode:560. Subarray with and K
- Ten commands commonly used in SVN
- Laravel, execute PHP artist migrate and report an error alter table `users`add unique `users_ email_ unique`(`email`))
- set time format
- 【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)
- 2022-2028 global sound insulation coating industry research and trend analysis report
猜你喜欢

Etcd tutorial - Chapter 6 etcd core API V3

【TcaplusDB知识库】查看tcapdir目录服务器

Certification training | streamnational certification training phase 2

2022-2028 global low carbon concrete industry research and trend analysis report

How to understand MySQL indexes?

ssm项目环境初步搭建

vim配置与使用

Web GIS 航拍实现的智慧园区数字孪生应用

MATALB signal processing - signal transformation (6)

Connect error: no route to host (errno:113)
随机推荐
【TcaplusDB知识库】TcaplusDB-tcaplusadmin工具介绍
2022-2028 global long wave infrared camera and camera core industry research and trend analysis report
Certification training | streamnational certification training phase 2
Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
相同的树[从部分到整体]
【资料上新】基于3568开发板的NPU开发资料全面升级
嵌入式开发如何进行源代码保密工作
Requirements analysis specification and requirements specification
Allegro's method of setting network flying line and network color
[North Asia data recovery] data recovery case of ibm-ds3512 storage server RAID5 damaged data loss
【面试指南】AI算法面试
gcc编译器包
Synchronous movement state of Jerry's watch [chapter]
The method of displaying or closing the network flying line in Allegro design
设备监理师证书含金量怎样?值得考吗?
FPGA(八)RTL代码之四(基本电路设计1)
2022-2028 global sound insulation coating industry research and trend analysis report
Unable to locate program input point [email protected]
Input input box click with border
Applet view creation