当前位置:网站首页>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
边栏推荐
- Pytorch里面多任务Loss是加起来还是分别backward?
- MFC gets the current time
- 【OJ】两个数组的交集(set、哈希映射 ...)
- 顶级 DevOps 工具链大盘点
- 富滇银行完成数字化升级|OceanBase数据库助力布局分布式架构中台
- Develop knowledge points
- 洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
- [analysis of STL source code] imitation function (to be supplemented)
- What are the projects of metauniverse and what are the companies of metauniverse
- How QT exports data to PDF files (qpdfwriter User Guide)
猜你喜欢

Data set - fault diagnosis: various data and data description of bearings of Western Reserve University

Improvement of RTP receiving and sending PS stream tool (II)

Intranet penetration | teach you how to conduct intranet penetration hand in hand

JSON数据传递参数

开源了 | 文心大模型ERNIE-Tiny轻量化技术,又准又快,效果全开

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

JDBC教程

JDBC Exercise case

How to set automatic reply for mailbox and enterprise mailbox?

Digital twin visualization solution digital twin visualization 3D platform
随机推荐
MySQL基础
可知论与熟能生巧
95 pages of smart education solutions 2022
Difference between NVIDIA n card and amda card
開源了 | 文心大模型ERNIE-Tiny輕量化技術,又准又快,效果全開
sysdig分析容器系统调用
Integration of revolution and batch normalization
Additional: token; (don't read until you finish writing...)
返回二叉树中最大的二叉搜索子树的大小
Hit the industry directly! The propeller launched the industry's first model selection tool
Convolution和Batch normalization的融合
Detailed explanation of 'viewpager' in compose | developer said · dtalk
How to maintain the brand influence of clothing enterprises
PR FAQ, what about PR preview video card?
Is the multitasking loss in pytoch added up or backward separately?
How much do you know about synchronized?
yolov5train. py
Speech recognition Series 1: speech recognition overview
直击产业落地!飞桨重磅推出业界首个模型选型工具
MFC文件操作