当前位置:网站首页>【TcaplusDB知识库】TcaplusDB表数据缓写介绍
【TcaplusDB知识库】TcaplusDB表数据缓写介绍
2022-06-29 03:26:00 【数据库大师】
缓写功能介绍:

表数据缓写服务是指tcaplus的增量数据可以缓写到第三方系统(目前支持MySQL和Kafka),用作产品数据查询与分析。其原理为tcapsvr将(从启用缓写开始的)增量写入数据(基于tcaplus binlog)同步到tcapdb,tcapdb再写入/更改到MySQL或者Kafka中。所以该功能必须保证tcapdb机器有访问MySQL或者Kafka的权限,如果是MySQL,还要有在Mysql建表的权限。否则改功能无法配置成功。
以缓写MySQL为例(Kafka入口跟配置步骤类似),配置方法为:进入表管理页面,找到相应的表,右边有"缓写"链接,即可配置缓写:

缓写页面如下,填入相应的参数即可配置缓写:

提交后会生成事务,配置服务。
其中:
缓写周期:代表数据用户可以接受的数据从Tcapdb同步到第三方系统的延迟,最小1s,这个值越大,代表用户对时延越不敏感。Tcapdb侧会对缓写周期时间窗口内的请求做去重(例如,1s内对同一个key有多次Replace操作,去重后只需要将最后一次Replace后的内容同步给第三方系统,可以省去了前两次的请求),从而降低整体同步的QPS提升性能。
key字段映射:tcaplus表key字段到MySQL表或者Kafka的key字段的映射,无特别要求的话两个系统的表字段最好保持一致,利于定位问题。不支持二进制类型的key字段(即tdr中的数组、二级字段,pb中的 bytes 、repeated等类型)缓写。
value字段映射:tcaplus表value字段到MySQL表或者Kafka的value字段的映射,无特别要求的话两个系统的表字段最好保持一致,利于定位问题。value字段如果是二进制类型,会以binary同步到MySQL或者Kafka,需要用户自己从MySQL读取反序列化解析。
注意:
tcaplus缓写功能只会同步缓写启用之后的增量修改到第三方系统,没有启用之前的数据是没有同步过去的,这部分数据如果也希望同步的话需要DBA拉取冷备,将txh数据dump出来导入进第三方系统,再开启缓写。
缓写的性能瓶颈在于tcapsvr同步线程CPU,tcapsvr侧单机QPS最大可达到8w/s。tcapdb侧的能力可以水平扩展不是瓶颈。
更多信息请关注TcaplusDB微信公众号,风里雨里,我们一直在等你!

TcaplusDB是腾讯出品的分布式NoSQL数据库,存储和调度的代码完全自研。具备缓存+落地融合架构、PB级存储、毫秒级时延、无损水平扩展和复杂数据结构等特性。同时具备丰富的生态、便捷的迁移、极低的运维成本和五个九高可用等特点。客户覆盖游戏、互联网、政务、金融、制造和物联网等领域。
边栏推荐
- How to keep source code secret in embedded development
- Solve the problem that the cursor flashes after clicking a point when measuring the distance in Allegro
- 2022-2028 global low carbon concrete industry research and trend analysis report
- MySQL advanced SQL statement (Part 2)
- In depth analysis of Apache bookkeeper series: Part 3 - reading principle
- Différents arbres de recherche binaires [arbre de génération rétrospectif ascendant + recherche de mémoire - - espace - temps]
- 图扑软件智慧能源一体化管控平台
- seekbar 自定义图片上下左右显示不全 / bitmapToDrawable / bitmapToDrawable互转 / paddingStart/paddingEnd /thumbOffset
- leetcode:560. Subarray with and K
- SSH无密码登陆
猜你喜欢

88.(cesium篇)cesium聚合图
![二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]](/img/f9/efb73dd6047e6d5833581376904788.png)
二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]

Connect error: no route to host (errno:113)
![Jerry's watch obtains alarm mode settings [chapter]](/img/43/987d864ec6038b10138ce50bcbdf12.jpg)
Jerry's watch obtains alarm mode settings [chapter]

MATALB signal processing - signal transformation (6)
![The continued movement of Jerry's watch [chapter]](/img/3e/f8b98997320580431a8e7117f4a506.jpg)
The continued movement of Jerry's watch [chapter]
![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]

How to keep source code secret in embedded development

88.(cesium篇)cesium聚合图

Solid state and memory module purchase
随机推荐
Ugui slider minimum control
2022-2028 global long wave infrared camera and camera core industry research and trend analysis report
Sequence traversal of binary tree ii[one of sequence traversal methods - > recursive traversal + level]
Tu ne peux pas comprendre le feu?
問題——adb shellerror: insufficient permissions for device: verify udev rules.
Counter analysis of the parameter anti content in the backstage of the # yyds dry goods inventory # knife fight shop
【面试指南】AI算法面试
In depth analysis of Apache bookkeeper series: Part 3 - reading principle
FarrowTech的无线传感器采用橙群微电子的NanoBeacon蓝牙信标技术
问题——adb shellerror: insufficient permissions for device: verify udev rules.
How to skip time when closing a socket connection_ Wait status of wait
87.(cesium篇)cesium热力图(贴地形)
The method of displaying or closing the network flying line in Allegro design
Getting started with testing - integration testing
目前市面上增额终身寿险利率最高的产品是哪个?
2022-2028 global sound insulation coating industry research and trend analysis report
不同的二叉搜索树[自下而上回溯生成树+记忆搜索--空间换时间]
MATALB signal processing - signal transformation (6)
Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
vim配置与使用