当前位置:网站首页>Distributed database tidb
Distributed database tidb
2022-06-13 07:32:00 【Muzijin】
TiDB The overall architecture
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-hivOKRU3-1645796535315)(C:\Users\asus\AppData\Roaming\Typora\typora-user-images\image-20220220160348762.png)]
TiDB server ( managers ) PD Server ( Accept SQl And service ) TiKV Server ( Data kv Storage )
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-yBBorSy3-1645796535316)(C:\Users\asus\AppData\Roaming\Typora\typora-user-images\image-20220220160311622.png)]
Metadata refers to the tables you have
OlTP and OLAP
[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-fjH5Y8Xn-1645796535316)(C:\Users\asus\AppData\Roaming\Typora\typora-user-images\image-20220220160158127.png)]
TiDb The core feature of
High availability
Horizontal expansion
Highly compatible mysql
There is no need to modify mysql Can be migrated directly to Tidb
tidb It can also be attached to a master-slave structure mysql In the cluster
Distributed transactions
Supporting the standard acid The business of
"One-stop" work style HTAP
coordination TiSpark
Cloud native SQL database
coordination TiOperator Realize automatic operation and maintenance Make deployment configuration and maintenance very simple
Horizontal elastic expansion
As the number of user visits increases TiDB cluster and TiKv Cluster Level increase
High availability
raft agreement
Horizontal expansion
Horizontal expansion Computing power and storage power
At least three Tikv Three TiPD Two TiDB
High availability
It can tolerate instance failure of some components
PD Use raft agreement
TiKv
tikv It's a cluster use raft Guarantee consistency adopt PD Do load balancing scheduling When a single node fails It will affect Region about region Medium leader Node failure will interrupt service Re election about follow No effect about kv Node failure , Will not be available for a period of time ( Default 30 minute ) pd The data on it will be migrated to other kv On
tiKv use ROCksDb Realized TB Level localized storage scheme yes LSM Trees Avoided B+ A large number of random reads and writes caused by the expansion of tree leaf nodes
TiDbserver It's stateless Just expand horizontally
Combined with the etcd mysql HDFS HBASE SPARK Technology
Distributed transactions
Provide optimistic transaction model and pessimistic transaction model
More information can be read
https://juejin.cn/post/7038416869375606791#heading-11
Distributed transactions
Provide optimistic transaction model and pessimistic transaction model
More information can be read
https://juejin.cn/post/7038416869375606791#heading-11
边栏推荐
- Reflection of C # Foundation
- Database connection under WinForm
- Personal JS learning notes
- 理财产品连续几天收益都是零是怎么回事?
- 快速排序
- oracle问题,字段里面的数据被逗号隔开,取逗号两边数据
- MySQL row column conversion (updated version)
- How is it that the income of financial products is zero for several consecutive days?
- 量化框架backtrader之一文读懂Analyzer分析器
- Upgrade the project of log4j to log4j2
猜你喜欢

Export chrome plug-ins and import local plug-ins to chrome

RT thread simulator lvgl control: button button style

C language: how to give an alias to a global variable?

Tree list under winfrom treelist related

Redis learning journey -- subscription and publishing

MySQL row column conversion (updated version)

Data desensitization tool advance tool Datamask

Problems encountered during commissioning of C # project

SDN basic overview

C#合并多个richtextbox内容时始终存在换行符的解决方法
随机推荐
The 'yarn' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program
c#高级编程-特性篇
Fundamentals of assembly language: register and addressing mode
EF core execute SQL statement
Time field comparison time size in MySQL
Make cer/pfx public and private key certificates and export CFCA application certificates
oracle问题,字段里面的数据被逗号隔开,取逗号两边数据
Vsys of Isis (virtual system)
AQS - detailed explanation of reentrantlock source code
Find the first and last positions of elements in a sorted array
I always don't understand the high address and high position
平衡二叉树学习笔记------一二熊猫
A. Vacations (dp 贪心
Export chrome plug-ins and import local plug-ins to chrome
powerdisgner逆向生成oracle数据模型
redis-3. Redis list, set, hash, sorted_ set、skiplist
8. process status and transition
Deploy RDS service
Personal JS learning notes
Local file upload FTP or remote directory