当前位置:网站首页>On high availability architecture
On high availability architecture
2022-06-11 19:03:00 【thoughtCodes】
1、 The high availability architecture has characteristics
1、 Master slave switching or duplex
1) Master slave switch , When the service of one of the machines goes down , For the caller , Can quickly switch to other available services , Upgrade from service to main service , This switching speed should be controlled at the second level .
When the down time service is restored , Automatically become a slave service , Master / slave service role switching . The master-slave switch must pay a price , So when the main service is restored , It will not replace the existing main service .
2) Dual duplex mode ( Mutual support ) working principle : The two hosts run their own services at the same time and monitor each other , When any host goes down , The other host immediately takes over all its work , Make sure you work in real time , The key data of the application service system is stored in the shared storage system
2、 Cluster work
There are a lot of requests , A single service cannot meet the needs , At this time, multiple machines are required to provide the same service , Distribute all requests to different machines .
High availability architecture should have rich load balancing strategies and easy load adjustment methods .
It can even automate intelligent adjustment , For example, due to the performance of the machine , Response times may be different , At this time, you can distribute less to machines with poor performance , Ensure that the response time of each machine is balanced .
3、 Easy to expand horizontally
When there are more and more users , When an existing service cannot host more users , You need to extend the service , The best way to extend is not to touch the original service , Transparent to service callers .
2、 High availability solution
1、 database
One master, many followers , Read / write separation
2、nginx Load balancing
nginx Is a reverse proxy server , Have rich load balancing strategies , Used between client and server , As an implementation of load balancing .
Reverse proxy : The proxy is the server , That is, the client accesses a so-called server , The server will forward the request to the real server in the background , The real server responds , The result is returned to the client through the proxy server . Servers are hidden from users , The user does not know which server is the real server .
use nginx To achieve high availability of services ,nginx Itself may become a single point , Two solutions encountered ,
One is that the company builds its own DNS, Parse the request to a different NGINX,
One is cooperation keepalive Implement service survival detection . Here's the picture :
3、redis
1) Multi master multi slave mode , Three master and three slave cluster mode , Deployed on three servers
2) Pseudo cluster mode , You can also create a pseudo cluster with only one server , multi-node .
4、zookpeer
Same as redis
5、eureka
Same as redis
边栏推荐
- 如何在 SAP BTP 上 手动执行 workflow
- E-commerce (njupt)
- I don't want to open an account online. Is it safe to open an account online?
- 动态爆炸效果
- 添加自己喜欢的背景音乐
- uni-app 慕客热搜项目实战(一)tabBar的制作
- Realize that you can continue to play
- Web3游戏:游戏体验的探寻与重塑
- 在 SAP Kyma 上部署一个 Go MSSQL API Endpoint
- Do you know that public fields are automatically filled in
猜你喜欢

北京邮电大学2023级工商管理硕士MBA(非全日制)已开启

SQL注入漏洞学习之一:phpstudy集成环境搭建DVWA靶场
![leetcode:926. Flip the string to monotonically increasing [prefix and + analog analysis]](/img/e8/a43b397155c6957b142dd0feb59885.png)
leetcode:926. Flip the string to monotonically increasing [prefix and + analog analysis]

基于华为云图像识别标签实战

MOS transistor 24n50 parameters of asemi, 24n50 package, 24n50 size

【信号去噪】基于非线性滤波器实现语音自适应去噪附matlab代码

Crop disease detection using image processing technology and convolutional neural network (CNN)

"Case sharing" based on am57x+ artix-7 FPGA development board - detailed explanation of Pru Development Manual
![[Multisim Simulation] generate square wave and triangular wave generators by operational amplifier](/img/44/11a6a78877e8eebcae495871af8cb5.png)
[Multisim Simulation] generate square wave and triangular wave generators by operational amplifier

疫情下远程办公沟通心得|社区征文
随机推荐
MySQL in-depth and complete learning - stage 1 - overview of learning
Niu Ke swipes the question -- converting a string to an integer
2023年西安交通大学管理学院MPAcc提前批面试网报通知
Startup process of datanode
Flask CKEditor 富文本编译器实现文章的图片上传以及回显,解决路径出错的问题
uni-app 慕客热搜项目实战(一)tabBar的制作
User group actions
Deploy a go MSSQL API endpoint on SAP kyma
leetcode:剑指 Offer 59 - II. 队列的最大值[deque + sortedlist]
leetcode:66.加一
Experience of remote office communication under epidemic situation | community essay solicitation
Do you know that public fields are automatically filled in
WWDC22 开发者需要关注的重点内容
今天睡眠质量记录60分
Construct enemy tanks
Uploading and downloading of necessary files in development
全国院校MBA、EMBA、MPA、MEM、提前面试(预面试)时间批次已出(持续更新中)-文都管联院
给你一个项目,你将如何开展性能测试工作?
己方坦克发射子弹
添加自己喜欢的背景音乐