当前位置:网站首页>Principle of universal gbase high availability synchronization tool in Nanjing University
Principle of universal gbase high availability synchronization tool in Nanjing University
2022-07-05 12:27:00 【yang881221】
Data synchronization is an essential role in distributed databases . It's used by Nantah gbse8a Database products , As a mature market product , Its data synchronization function is also very perfect , Whether in terms of function or performance , Are impeccable .
Here is a brief explanation gbase8a The principle of product data synchronization .
As we all know , Data synchronization is both functional and performance . That is, it should be fast and accurate .
If the synchronized data is wrong or lost, it is unintentionally a failure , Similarly, if the data synchronization is accurate , But every time I have to toss for a long time , This is also unbearable .
Get down to business ,gbase8a The data synchronization of the product adopts the working mode of pipeline , combination client-server The model works , Ensure concurrent processing , Ensure the accuracy of data verification during synchronization .
But piecemeal data parallelization
The above figure shows the data of the same table , Parallelization of different data slices . If the data of a table has 1g, It is divided into 3 Slice to 3 Each node , After parallelization , Time can be changed into the original 1/3
Multi slice data parallelization
Thread processing piple line Pattern
piple line Mode can make full use of the processing power of multithreading , For example, some threads read data , Some threads verify the read data , Some threads write the correct data or send the correct data .
Because each thread and the magnitude of calculation and processing may be different , such as check Faster ,read slower , This will cause some threads to be busy and others to be idle
Then you can use different number of threads according to the business volume
piple+multi pthd Pattern
work -group Pattern : In this mode, state machine management is required , But this can do the most with the least number of threads , But the disadvantage is that the thread context will switch frequently
The above is the current gbase The specific principle of synchronization . It makes full use of the idea of concurrency and multi-core .
Of course, it can be optimized later , such as perthd Pattern , Lockless queue mode ,RCU Queue processing . Or introduce a collaboration process for processing .
边栏推荐
- Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
- Semantic segmentation experiment: UNET network /msrc2 dataset
- JS for loop number exception
- Matlab label2idx function (convert the label matrix into a cell array with linear index)
- Learning JVM garbage collection 06 - memory set and card table (hotspot)
- The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
- Resnet+attention project complete code learning
- Learn memory management of JVM 01 - first memory
- Introduction to GNN
- Resnet18 actual battle Baoke dream spirit
猜你喜欢
C language structure is initialized as a function parameter
Redis highly available sentinel cluster
Redis's memory elimination mechanism, read this article is enough.
Course design of compilation principle --- formula calculator (a simple calculator with interface developed based on QT)
Third party payment interface design
自动化测试生命周期
什么是数字化存在?数字化转型要先从数字化存在开始
Why learn harmonyos and how to get started quickly?
Select drop-down box realizes three-level linkage of provinces and cities in China
强化学习-学习笔记3 | 策略学习
随机推荐
Select drop-down box realizes three-level linkage of provinces and cities in China
Solution to order timeout unpaid
How to recover the information server and how to recover the server data [easy to understand]
Resnet+attention project complete code learning
MySQL storage engine
JS for loop number exception
ABAP table lookup program
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
Pytoch loads the initialization V3 pre training model and reports an error
MySQL transaction
What is digital existence? Digital transformation starts with digital existence
Understand kotlin from the perspective of an architect
Matlab struct function (structure array)
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Solve the error 1045 of Navicat creating local connection -access denied for user [email protected] (using password
[HDU 2096] 小明A+B
Swift - enables textview to be highly adaptive
Redis highly available sentinel mechanism
NPM install reports an error
Time tools