当前位置:网站首页>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 combinatorial problems (*)
- 7-3 组合问题(*)
- Undefined reference to 'g2o:: vertexe3:: vertexe3()'
- Startup process of datanode
- Visual slam lecture notes-10-1
- 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
- Record the phpstudy configuration php8.0 and php8.1 extension redis
- Cf:d. black and white stripe
猜你喜欢

The 2023 MBA (Part-time) of Beijing University of Posts and telecommunications has been launched

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

Today's sleep quality record is 60 points
![[image denoising] impulse noise image denoising based on absolute difference median filter, weighted median filter and improved weighted median filter with matlab code attached](/img/dc/6348cb17ca91afe39381a9b3eb54e6.png)
[image denoising] impulse noise image denoising based on absolute difference median filter, weighted median filter and improved weighted median filter with matlab code attached
CMU 15-445 database course lesson 5 text version - buffer pool
![[signal denoising] speech adaptive denoising based on nonlinear filter with matlab code](/img/fd/07cee3c51ac44ca40f730dd487aa20.png)
[signal denoising] speech adaptive denoising based on nonlinear filter with matlab code
Make a static tank

Key contents that wwdc22 developers need to pay attention to

Financial bank_ Introduction to collection system
![[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
随机推荐
Prevent enemy tanks from overlapping
Friendly tanks fire bullets
Overall process of software development
cf:A. Print a Pedestal (Codeforces logo?)【简单遍历模拟】
Key contents that wwdc22 developers need to pay attention to
制造出静态坦克
Niu Ke's question -- Fibonacci series
How to manually execute workflow on SAP BTP
KMP!你值得拥有!!! 直接运行直接跑!
手把手教你学会FIRST集和FOLLOW集!!!!吐血收藏!!保姆级讲解!!!
In 2023, the MPAcc of School of management of Xi'an Jiaotong University approved the interview online in advance
leetcode:剑指 Offer 59 - II. 队列的最大值[deque + sortedlist]
防止敌方坦克重叠
leetcode:剑指 Offer 56 - II. 数组中数字出现的次数 II【简单排序】
I don't want to open an account online. Is it safe to open an account online?
2022 coming of age ceremony, to every college entrance examination student
leetcode:926. 将字符串翻转到单调递增【前缀和 + 模拟分析】
[image denoising] impulse noise image denoising based on absolute difference median filter, weighted median filter and improved weighted median filter with matlab code attached
SQL injection vulnerability learning 1: phpstudy integrated environment building DVWA shooting range
【Multisim仿真】利用运算放大器产生锯齿波