当前位置:网站首页>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
边栏推荐
- 7-3 组合问题(*)
- 【视频去噪】基于SALT实现视频去噪附Matlab代码
- 防止敌方坦克重叠
- Why is ti's GPMC parallel port more often used to connect FPGA and ADC? I give three reasons
- Niuke's brush question -- judgment of legal bracket sequence
- Niuke brush questions part8
- 2022-2023 MEM pre approval interview notice of School of management, Xi'an Jiaotong University
- PyMySQL利用游标操作数据库方法封装!!!
- In 2023, the MPAcc of School of management of Xi'an Jiaotong University approved the interview online in advance
- Startup process of datanode
猜你喜欢

Swagger2 easy to use
Uploading and downloading of necessary files in development
MySQL in-depth and complete learning - stage 1 - overview of learning

《经济学人》:WTO MC12重启 数字经济成为全球经济复苏和增长的核心引擎

给你一个项目,你将如何开展性能测试工作?

Web3 Games: exploring and reshaping the game experience
Function development of user information management

Financial bank_ Introduction to collection system

Gmail: how do I recall an outgoing message?

On the translation of rich text storage database format
随机推荐
cf:A. Print a Pedestal (Codeforces logo?) [simple traversal simulation]
2022-2023年西安交通大学管理学院MEM提前批面试网报通知
The US inflation rate reached a 41 year high of 8.6%! High inflation fever? The stock and encryption markets fell first!
Gmail: how do I recall an outgoing message?
開發中必備的文件的上傳與下載
cf:D. Black and White Stripe【连续k个中最少的个数 + 滑动窗口】
In 2023, the MPAcc of School of management of Xi'an Jiaotong University approved the interview online in advance
Given a project, how will you conduct performance testing?
全国院校MBA、EMBA、MPA、MEM、提前面试(预面试)时间批次已出(持续更新中)-文都管联院
"Case sharing" based on am57x+ artix-7 FPGA development board - detailed explanation of Pru Development Manual
Web3游戏:游戏体验的探寻与重塑
leetcode:926. Flip the string to monotonically increasing [prefix and + analog analysis]
Pymysql uses cursor operation database method to encapsulate!!!
[image segmentation] image segmentation based on Markov random field with matlab code
Cf:d. black and white stripe
uni-app 慕客热搜项目实战(一)tabBar的制作
Tips for using apipost
Gmail:如何撤回发出的邮件?
Cf:b. array determinations
MOS transistor 24n50 parameters of asemi, 24n50 package, 24n50 size