当前位置:网站首页>Architecture: load balancing
Architecture: load balancing
2022-07-03 00:07:00 【Bug trendsetter】
introduction
This paper introduces several load balancing architectures and algorithms .
Overall strategy
DNS Load balancing is used to achieve geographic level load balancing ;
Hardware load balancing is used to achieve cluster level load balancing ;
Software load balancing is used to achieve machine level load balancing ;

Hardware load balancing
It's like a router 、 Switch ;
advantage :
Support various load balancing algorithms ;
Support 100 Million concurrent ( Generally, software load balancing also supports 10 Million concurrent );
Many devices support load balancing at the same time 、 A firewall 、 prevent DDOS Attack function ;
shortcoming :
The high cost ;
Software load balancing
advantage :
cheap ;
Simple maintenance and deployment ( install Ngnix Software can );
shortcoming :
Concurrency is far less than hardware load balancing ,Linux Install a... On the server Nginx Maybe we can get to 5 Ten thousand seconds ;
Generally, there is no firewall 、 prevent DDOS Attack and other functions ;

DNS Load balancing
Achieve geographic level load balancing ;
DNS The server resolves the domain name to the one closest to the user's host IP Address , Improve access speed ;
shortcoming :
DNS Cache cannot be updated in time , It is possible to locate a removed host ;
Except for mapping IP Address , No other load balancing algorithms and strategies are provided ;

Equalization algorithm
polling :
After the load balancing system receives the request , It is allocated to the server in turn ;
Method is simple , The state of the machine is not considered ;
Weighted polling :
among 32 The probability of a nuclear machine is assigned to 16 Twice the probability of a nuclear machine ;
Considering the machine performance , But it cannot be dynamically adjusted according to the machine state ;
Load minimum priority :
Determine the load balancing strategy according to its specific state ;
consider : Number of machine connections 、 Mechanical HTTP The number of connections 、CPU Occupancy rate 、IO Occupancy rate ;
The best performance is preferred :
Determine the load balancing strategy according to its specific state ;
consider : Server response time ;
Hash:
To the source IP Address hash Decide which server the task is assigned to ;
Yes session ID Conduct hash Decide which server the task is assigned to , It can ensure that the packets of the same session are sent to the same server for processing ;
source: //changsiyuan.github.io/2018/07/15/2018-7-15-Architecture-4
Share & Looking at
边栏推荐
- Why can't the start method be called repeatedly? But the run method can?
- 67 page overall planning and construction plan for a new smart city (download attached)
- 返回二叉树两个节点间的最大距离
- 可知论与熟能生巧
- yolov5test. Py comment
- A single element in an ordered array -- Valentine's Day mental problems
- JDBC教程
- 洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举
- Sourcetree details
- Xcode real machine debugging
猜你喜欢

MySQL基础

List of major chip Enterprises

Interface difference test - diffy tool

附加:token;(没写完,别看…)

Xcode real machine debugging

Difference between NVIDIA n card and amda card

Happy Lantern Festival, how many of these technical lantern riddles can you guess correctly?

67页新型智慧城市整体规划建设方案(附下载)

一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)

In February 2022, the ranking list of domestic databases: oceanbase regained its popularity with "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
随机推荐
[reading notes] phased summary of writing reading notes
开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开
直击产业落地!飞桨重磅推出业界首个模型选型工具
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举
Why can't the start method be called repeatedly? But the run method can?
All things work together, and I will review oceanbase's practice in government and enterprise industry
Interface switching based on pyqt5 toolbar button -1
Interface switching based on pyqt5 toolbar button -2
PHP get real IP
Flexible combination of applications is a false proposition that has existed for 40 years
How to maintain the brand influence of clothing enterprises
Installing redis under Linux
Sourcetree details
Improvement of RTP receiving and sending PS stream tool (II)
Intranet penetration | teach you how to conduct intranet penetration hand in hand
返回二叉树中最大的二叉搜索子树的根节点
Master the development of facial expression recognition based on deep learning (based on paddlepaddle)
Use redis to realize self increment serial number
Develop knowledge points
Linux 下安装 redis