当前位置:网站首页>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
边栏推荐
- Department store center supply chain management system
- C Advanced Programming - features
- Learning notes of balanced binary tree -- one two pandas
- Tidb data migration (DM) Introduction
- C # Advanced Programming - Feature Section
- 10. process communication
- c#高級編程-特性篇
- Functions about Oracle.
- Quick sort
- A small soft raster engine with clear thinking and a case of quaternion combination
猜你喜欢

Try to use renderdoc to view the shader code of UE

C # related knowledge points
![[vivefocus uses the wavevr plug-in to obtain handle operation events]](/img/4f/2ca02799ef5cde1a28101d61199856.jpg)
[vivefocus uses the wavevr plug-in to obtain handle operation events]

The biggest highlight of wwdc2022: metalfx

Redis learning journey - persistence

基于ESP32CAM实现WebSocket服务器实时点灯

Tidb data migration (DM) Introduction

redis-7. Redis master-slave replication, cap, Paxos, cluster sharding cluster 02

redis-3. Redis list, set, hash, sorted_ set、skiplist

Table access among Oracle database users
随机推荐
Redis learning journey -- subscription and publishing
What languages can be decompiled
Interview questions must be asked - Optimization of large table Pagination
How to solve the 404 problem
不同系统添加证书
c#高級編程-特性篇
[log4j2 log framework] modify dump log file permissions
SDN basic overview
Number of detection cycles "142857“
It's called the next generation monitoring system. Let's see how awesome it is
Redis learning journey - cache exceptions (CACHE penetration, cache avalanche, cache breakdown)
检测循环数“142857“
全志V3S环境编译开发流程
[splashsplash] repeat the script that outputs splashsurf
快速排序
考研英语
C Advanced Programming - features
Three handshakes and four waves of TCP protocol and why------ One two pandas
socket编程2:IO复用(select && poll && epoll)
Related operations under Oracle Database