当前位置:网站首页>[tcapulusdb knowledge base] Introduction to tcapulusdb table data caching
[tcapulusdb knowledge base] Introduction to tcapulusdb table data caching
2022-06-29 03:32:00 【Database master】
Introduction to cache function :

Table data caching service refers to tcaplus Incremental data can be written to the third-party system slowly ( At present, we support MySQL and Kafka), Used for product data query and analysis . The principle is tcapsvr take ( Starting with caching enabled ) Incremental write data ( be based on tcaplus binlog) Synchronize to tcapdb,tcapdb Write again / Change to MySQL perhaps Kafka in . Therefore, this function must guarantee tcapdb The machine has access MySQL perhaps Kafka Authority , If it is MySQL, And there are also Mysql Permission to create tables . Otherwise, the function cannot be configured successfully .
Write slowly MySQL For example (Kafka The entry is similar to the configuration steps ), The configuration method is : Enter the table management page , Find the corresponding table , On the right " Cache " link , You can configure caching :

The cache page is as follows , Fill in the corresponding parameters to configure caching :

A transaction will be generated after the commit , Configure the service .
among :
Cache cycle : Represents data that users can accept from Tcapdb Delay in synchronizing to third-party systems , Minimum 1s, The bigger this is , It means that the user is less sensitive to delay .Tcapdb The side will de duplicate the requests within the cache cycle time window ( for example ,1s Inside to the same key Many times Replace operation , After weight removal, only the last time Replace The content after synchronization is sent to the third-party system , The first two requests can be omitted ), So as to reduce the overall synchronization QPS Lifting performance .
key Field mapping :tcaplus surface key Fields to MySQL Watch or Kafka Of key Mapping of fields , If there is no special requirement, the table fields of the two systems should be consistent , It is conducive to positioning . Binary type is not supported key Field ( namely tdr In the array 、 Secondary field ,pb Medium bytes 、repeated Other types ) Cache .
value Field mapping :tcaplus surface value Fields to MySQL Watch or Kafka Of value Mapping of fields , If there is no special requirement, the table fields of the two systems should be consistent , It is conducive to positioning .value If the field is of binary type , Will binary Synchronize to MySQL perhaps Kafka, Users need to learn from MySQL Read deserialization resolution .
Be careful :
tcaplus The cache function only synchronizes the incremental modification to the third-party system after the cache is enabled , The data before enabling is not synchronized , If you want to synchronize this part of data, you need DBA Pull out the cold standby , take txh data dump Import into the third-party system , Then enable cache .
The performance bottleneck of caching is tcapsvr Synchronization thread CPU,tcapsvr Side stand alone QPS Up to 8w/s.tcapdb The capability of the side can be expanded horizontally, which is not a bottleneck .
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 .
边栏推荐
- MySQL advanced SQL statement (Part 2)
- 不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
- Wechat applet development Basics
- Jerry's monitoring alarm clock [chapter]
- Jerry's watch begins to move [chapter]
- Différents arbres de recherche binaires [arbre de génération rétrospectif ascendant + recherche de mémoire - - espace - temps]
- django model生成docx数据库设计文档
- 【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)
- Basic MySQL database operations
- [North Asia data recovery] data recovery case of ibm-ds3512 storage server RAID5 damaged data loss
猜你喜欢
![[test theory] quality analysis ability](/img/4b/d011e16c7b2be52fe12c123214779e.jpg)
[test theory] quality analysis ability

Leetcode daily question - 324 Swing sort II
![Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]](/img/06/cc3c512e69455416fe81943bebacca.png)
Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
![Jerry's watch stops moving [chapter]](/img/04/0238701722e1f90410b37385b164e2.jpg)
Jerry's watch stops moving [chapter]

【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)

Basic MySQL database operations

2022-2028 global sound insulation coating industry research and trend analysis report

【线程通信】

FPGA (VIII) RTL code IV (basic circuit design 1)

Certification training | streamnational certification training phase 2
随机推荐
Farrowtech's wireless sensor adopts the nanobeacon Bluetooth beacon technology of orange group Microelectronics
Access 500 error after modstart migrates the environment
Shell script to count files, then remove oldest files
Concise words tell about technical people who must master basic IT knowledge and skills. Part 1
需求分析说明书和需求规格说明书
Web APIs high order functions - dark horse programmers
Grafana Getting Started tutorial
Grafana入门教程
Jerry's watch pause [chapter]
Différents arbres de recherche binaires [arbre de génération rétrospectif ascendant + recherche de mémoire - - espace - temps]
【若依(ruoyi)】ztree初始化
Etcd tutorial - Chapter 7 etcd transaction API
Problem - ADB shellerror: insufficient permissions for device: verify udev rules
How to understand MySQL indexes?
Counter analysis of the parameter anti content in the backstage of the # yyds dry goods inventory # knife fight shop
MySQL advanced SQL statement (Part 2)
2022-2028 global UAV detection radar industry research and trend analysis report
Different binary search trees [bottom-up backtracking spanning tree + memory search -- space for time]
【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(三)
想当设备管理师?满足这三个报考条件就可以