当前位置:网站首页>【TcaplusDB知识库】TcaplusDB表数据缓写介绍
【TcaplusDB知识库】TcaplusDB表数据缓写介绍
2022-06-27 10:53:00 【InfoQ】
【TcaplusDB知识库】TcaplusDB表数据缓写介绍
- 缓写周期:代表数据用户可以接受的数据从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侧的能力可以水平扩展不是瓶颈。
边栏推荐
猜你喜欢
学习笔记之——数据集的生成
Audiotrack and audiolinker
What basic functions are required for live e-commerce application development? What is the future development prospect?
15+城市道路要素分割应用,用这一个分割模型就够了!
2-4 installation of Nessus under Kali
Test how students participate in codereview
Leetcode 522 longest special sequence ii[enumeration double pointer] leetcode path of heroding
Future & CompletionService
[tcapulusdb knowledge base] Introduction to tmonitor stand-alone installation guidelines (I)
What is the experience of telecommuting in a foreign company| Community essay solicitation
随机推荐
Deep learning in finance in cross sectional sectional predictions for random forests
The tutor invites you to continue your doctoral study with him. Will you agree immediately?
ECMAScript 6(es6)
【HCIE-RS复习思维导图】- STP
堆-堆排序-TopK
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
有关WIN10的内存压缩
Ubuntu手動安裝MySQL
File name setting causes an error to be written to writelines: oserror: [errno 22] invalid argument
C语言学习-Day_04
3D mobile translate3d
JS all network request modes
Test how students participate in codereview
微软云 (Microsoft Cloud) 技术概述
Imeta: a collection of imagegp+ video tutorials of high-value drawing websites, which has been cited 360 times (220625 updates)
15+城市道路要素分割应用,用这一个分割模型就够了!
[从零开始学习FPGA编程-47]:视野篇 - 第三代半导体技术现状与发展趋势
中科院微生物所招聘青年PI 20比特,2百萬安家費,千萬啟動經費(長期有效)
C語言學習-Day_04
[hcie-rs review mind map] - STP