当前位置:网站首页>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
边栏推荐
- MySQL advanced learning notes (4)
- Mapper agent development
- The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
- 開源了 | 文心大模型ERNIE-Tiny輕量化技術,又准又快,效果全開
- MFC file operation
- 实用系列丨免费可商用视频素材库
- Flexible combination of applications is a false proposition that has existed for 40 years
- MFC文件操作
- Interface automation coverage statistics - used by Jacobo
- Container runtime analysis
猜你喜欢
Bean加载控制
The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north
Additional: token; (don't read until you finish writing...)
Flexible combination of applications is a false proposition that has existed for 40 years
Load balancing cluster (LBC)
[shutter] shutter open source project reference
Request and response
Highly available cluster (HAC)
Ideal car × Oceanbase: when the new forces of car building meet the new forces of database
MATLAB signal processing [Q & a notes-1]
随机推荐
秒杀系统设计
Leetcode relaxation question - day of the week
实用系列丨免费可商用视频素材库
JDBC教程
直击产业落地!飞桨重磅推出业界首个模型选型工具
JVM foundation review
MATLAB signal processing [Q & a notes-1]
95页智慧教育解决方案2022
Optimization of streaming media technology
Maybe you read a fake Tianlong eight
[array] binary search
Matlab 信号处理【问答笔记-1】
@How to use bindsinstance in dagger2
How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base
Mapper代理开发
130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth
yolov5train. py
判断二叉树是否为满二叉树
JDBC练习案例
The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north