当前位置:网站首页>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
边栏推荐
- Through the function seaborn cubehelix_ Palette build order palette
- C#合并多个richtextbox内容时始终存在换行符的解决方法
- Tidb data migration (DM) Introduction
- redis-6. Redis master-slave replication, cap, Paxos, cluster sharding cluster 01
- One article of quantitative framework backtrader read analyzer
- Fundamentals of assembly language: register and addressing mode
- 6. system call
- Awk use
- [vivefocus uses the wavevr plug-in to obtain handle operation events]
- Relevant knowledge under WinForm
猜你喜欢
Three handshakes and four waves of TCP protocol and why------ One two pandas
Nfv basic overview
The biggest highlight of wwdc2022: metalfx
First graphical interface
Un des backtraders du cadre de quantification lit l'analyseur
RT thread simulator lvgl control: slider control
C#合并多个richtextbox内容时始终存在换行符的解决方法
redis-4. Redis' message subscription, pipeline, transaction, modules, bloom filter, and cache LRU
Detailed description of drawing ridge plot, overlapping densities of overlapping kernel density estimation curve, facetgrid object and function sns Kdeplot, function facetgrid map
Redis learning journey master-slave replication
随机推荐
c#高级编程-特性篇
A. Vacations (DP greed
Implementation of fruit mall wholesale platform based on SSM
Redis learning journey -- getting to know redis for the first time
How idea breaks point debugging
Redis learning journey - persistence
Word document export
Nfv basic overview
【ViveFocus使用WaveVR插件获取手柄操作事件】
Wechat applet - positioning, map display, route planning and navigation
Pdf to word
It's called the next generation monitoring system. Let's see how awesome it is
Fundamentals of assembly language: register and addressing mode
理财产品连续几天收益都是零是怎么回事?
Nodejs file module FS
Ticdc synchronization task
Powerdispatcher reverse generation of Oracle data model
Adding certificates to different systems
Database connection under WinForm
C # using multithreading