当前位置:网站首页>【TcaplusDB知识库】TcaplusDB查看线上运行情况介绍
【TcaplusDB知识库】TcaplusDB查看线上运行情况介绍
2022-06-10 21:21:00 【数据库大师】
找到一台tcapsvr机器,进入tcapsvr的control模式(如:/data/tcaplus/tcaplusservice/bin/***/tcapsvr --id=...* control),此处...是tcapsvr的进程id,
然后输入StatusX,回车,查看本tcapsvr管理的所有shard信息(可看到appid zoneid tablename shardid,记录数),然后用PrintEngineStat Appid Zoneid TableName Shardid,回车,可看到如下截图的输出

下面代表豆腐块的使用情况,如
KeyNums[0] = 368951, 代表有368951条记录的Key部分占用了1个豆腐块, 下标从0开始
valNums[1] = 60332, 代表有60332条记录的Value部分占用了2个豆腐块,下标从0开始
valNums[2]=52272, 代表有52272条记录的Value部分占用了3个豆腐块,下标从0开始
依次类推
优化思路是尽量让Key Value的每次读写用最少的io操作,但不要一味加大指数来让所有key value只用一个豆腐块,会导致内存、磁盘资源浪费,比如一个豆腐块4K,但记录平均大小只有256字节,每存储一条记录就浪费3.75KB

更多信息请关注TcaplusDB微信公众号,风里雨里,我们一直在等你!

TcaplusDB是腾讯出品的分布式NoSQL数据库,存储和调度的代码完全自研。具备缓存+落地融合架构、PB级存储、毫秒级时延、无损水平扩展和复杂数据结构等特性。同时具备丰富的生态、便捷的迁移、极低的运维成本和五个九高可用等特点。客户覆盖游戏、互联网、政务、金融、制造和物联网等领域。
边栏推荐
- 【phpstorm】 No data sources are configured to run this SQL and provide advanced c
- 中小型会议如何进行数字化升级?
- [problem] solve the problem of websocket string length limitation. The single packet is too large
- Array union set
- 鲸会务为智能化防疫工作赋能
- Pytorch installation is super simple
- 记录(三)
- Array rotates the array from bits of the specified length
- Icml2022 | sharp maml: model independent meta learning for sharpness perception
- 【Debug】could not find ref wiht poc XXX解决
猜你喜欢

TcaplusDB君 · 行业新闻汇编(六)

Back to table query of MySQL? How to avoid it?
To do desktop plug-in, a good helper for office workers

SQL exercise 4: string processing function

If else is too easy to use? (understanding this article will further improve your logic)

C language - quick sorting in sorting
![[debug] could not find ref wiht POC XXX](/img/01/5fdbd3e9902458be754280464bd923.png)
[debug] could not find ref wiht POC XXX

leetcode 130. Surrounded Regions 被围绕的区域(中等)

How to stimulate the vitality and driving force of cultural innovation

TcaplusDB君 · 行业新闻汇编(三)
随机推荐
字符串 反转
磁盘序列号,磁盘ID,卷序列号的区别
Sealem finance builds Web3 decentralized financial platform infrastructure
数组 加一
Sum of two array numbers
Share this great God's WPF interface design series video
ICML2022 | Sharp-MAML:锐度感知的模型无关元学习
Sealem Finance打造Web3去中心化金融平台基础设施
SQL exercise 4: string processing function
Business based precipitation component = & gt; manage-table
数组 移动0
Array plus one
Add, delete, query and modify [MySQL] table data (DML)
GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.
Simply Untyped Lambda Calculus的实现
【MySQL】表结构的增删查改操作(DDL)
Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data
Different ways to create four indexes in MySQL
JS anchor positioning can extend many functions
【MySQL】常见数据类型总结

