当前位置:网站首页>The cluster planned in tidb includes 6 dB, 3 PD and 3 kV. When the application is disconnected, which address is it connected to?
The cluster planned in tidb includes 6 dB, 3 PD and 3 kV. When the application is disconnected, which address is it connected to?
2022-07-22 15:32:00 【Mud school is useless】
TiDB The clusters planned in include 6 individual DB,3 individual pd,3 individual kv, When applying to connect , Which address is it connected to ?
Other answers 1:
Access through load balancing tidbserver
TiDB The cluster is mainly divided into three components :
TiDB Server
TiDB Server Responsible for receiving SQL request , Handle SQL Related logic , And pass PD Find the... That stores the data needed for the calculation TiKV Address , And TiKV Get data interactively , The final result . TiDB Server It's stateless , It doesn't store data in itself , Only responsible for calculation , It can expand infinitely , You can use load balancing components ( Such as LVS、HAProxy or F5) Provide a unified access address to the outside world .
PD Server
Placement Driver ( abbreviation PD) It is the management module of the whole cluster , There are three main tasks : One is to store the meta information of the cluster ( Some Key Where to store it TiKV node ); The second is right TiKV Cluster scheduling and load balancing ( Such as data migration 、Raft group leader And so on ); Third, allocate globally unique and incremental transactions ID.
PD It's a cluster , You need to deploy an odd number of nodes , Generally, it is recommended to deploy at least 3 Nodes .
TiKV Server
TiKV Server Responsible for storing data , Looking from the outside TiKV It's a distributed transaction provider Key-Value Storage engine . The basic unit of data storage is Region, Every Region Responsible for storing one Key Range ( from StartKey To EndKey Left closed right open interval of ) The data of , Every TiKV Nodes will be responsible for multiple Region .TiKV Use Raft Make a copy of the agreement , Keep data consistent and disaster tolerant . Copy with Region Manage for the unit , Multiple... On different nodes Region Constitute a Raft Group, Make copies of each other . Data in multiple TiKV The load balance between PD Dispatch , Here, too Region Scheduling for units .
————————————————
Copyright notice : This paper is about CSDN Blogger 「Alwaysdazz」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/weixin_43680708/article/details/100830023
Other answers 2:
Include 6 individual DB, Refer to 6 individual tidb server? Application link tidb server The address and port of , such as ip:4000
Other answers 3:
Connect tidb Server The address of
Other answers 4:
any tidb server Of IP: Ports can be connected
Other answers 5:
It's usually a link tidb server, If there are more than one server, Connect any one , If you want to use high availability , We have to get a load to provide vip.
边栏推荐
- Redis高可用原理 主从哨兵集群
- 用R写一个迷宫小游戏
- MySQL locking mechanism: MyISAM table lock, InnoDB row lock
- 什么是探索性测试?探索性测试有哪些方法?
- How to use first-hand data visualization to win the favor of the boss and grasp the key points of data visualization
- JDBC编程
- Codeworks 5 questions per day (average 1500) - day 22
- ADB common commands
- 码蹄集 - MT3182 - 填矩阵
- PLT draw and save the results
猜你喜欢
Still asking what to use for interface testing? Universal JMeter creates a performance test data platform
LeetCode 0814. 二叉树剪枝
pyside2做个简易的浏览器
机器学习笔记 - 机器学习系统设计流程概述
Reasons for driving voltage deviation caused by high voltage differential probe
上传图片到本机iis服务器,结果以网页地址形式返回,可直接访问
plt 画图并保存结果
涂鸦Wi-Fi&BLE SoC开发幻彩灯带(5)----烧录授权
MySQL locking mechanism: MyISAM table lock, InnoDB row lock
Redis cache penetration and avalanche
随机推荐
TDengine实验集群搭建 Success
The installation and use of harbor+trivy -- the way to build a dream
MySQL的增删查改(第二话)
Redis uses jedis operation
How to optimize this SQL?
Graffiti Wi Fi & ble SoC development slide strip (6) -- slide strip function demonstration
Part 16: ADC, CAD and DMA direct memory access in stm32
MySQL locking mechanism: MyISAM table lock, InnoDB row lock
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or
[Huawei machine test questions] maximum number of components [2022 Q3 | 100 points]
JMeter笔记1 | JMeter简介及体系结构
【07】函数调用:为什么会发生stack overflow?
OpenSSL self signed certificate issuance script -- the road to building a dream
FPGA图像处理学习——人脸识别
Seaborn barplot drawing summary
指数滑动平均法_百度百科
Cloud native
static变量和全局变量的区别
DM8:查询达梦数据库数据文件使用大小限制
plt 画图并保存结果