当前位置:网站首页>Vernacular high concurrency (2)
Vernacular high concurrency (2)
2022-07-07 03:32:00 【Your brother Dachen】
background
This is the second part of the three high topics , I thought for a long time about how to connect this topic , Later, I thought I would talk in the direction of traffic , From user request to server to user .
Suddenly 200 Million requests
Our server can bear 200 Ten thousand requests ? answer , Sure , But the condition can only be an empty link after three handshakes , We know linux All documents in , So one request for one linux It is also a file fd, Then just mine linux The number of files is large enough to receive 200 Million requests , A request defaults to 4k,200w * 4k however 8M There is no problem with the memory around , But the premise is that these are empty links , If the client sends a large amount of data to the server , The server needs to do cpu Do a lot of calculations , After processing, a large amount of data is returned to the client , Don't say that 2000 ten thousand ,1000 It's all hard .
For our secsha scene , A single machine cannot bear 200 Million requests , Therefore, it is necessary to introduce load balancing . Route requests to multiple places .
NGINX
First of all, I thought of nginx,nginx yes 7 Layer load balancing , The amount of concurrency is about 5w about , If you want to support 200 Million concurrent , Need to have 40 individual nginx Talent .
LVS perhaps F5 The server
a nginx 5 Million concurrent , So you need to nginx One more layer above 4 Layer load balancing , All say lvs Concurrent in hundreds of thousands , Assuming that 20 ten thousand , need 10 platform lvs.
DNS Load balancing
a lvs It still seems unbearable 200 Million concurrent , It seems that a layer is needed above him , This floor is DNS, adopt ip To do load balancing , One lvs One ip.
summary
Hundreds of millions of concurrency is also this routine , If one layer is not enough, add another layer ,ip If it's not enough, add a few more ip, If the machine room is not enough, add several more machine rooms .
Reference resources
边栏推荐
- When you go to the toilet, you can clearly explain the three Scheduling Strategies of scheduled tasks
- How to replace the backbone of the model
- Optimization of application startup speed
- input_ delay
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- C# Task拓展方法
- 25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
- unrecognized selector sent to instance 0x10b34e810
- An error in SQL tuning advisor ora-00600: internal error code, arguments: [kesqsmakebindvalue:obj]
- cocos3——8.实现初学者指南
猜你喜欢
Intelligent static presence detection scheme, 5.8G radar sensing technology, human presence inductive radar application
VHDL实现单周期CPU设计
Flutter3.0, the applet is not only run across mobile applications
leetcode
小程序能运行在自有App中,且实现直播和连麦?
Set static IP for raspberry pie
RestClould ETL 社区版六月精选问答
海思3559万能平台搭建:RTSP实时播放的支持
25.(arcgis api for js篇)arcgis api for js线修改线编辑(SketchViewModel)
Flink Task退出流程与Failover机制
随机推荐
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
函数重入、函数重载、函数重写自己理解
About Tolerance Intervals
VHDL实现任意大小矩阵加法运算
存储过程与函数(MySQL)
Laravel php artisan 自动生成Model+Migrate+Controller 命令大全
Codeforces Round #264 (Div. 2) C Gargari and Bishops 【暴力】
1200.Minimum Absolute Difference
海思3559万能平台搭建:RTSP实时播放的支持
【colmap】已知相机位姿情况下进行三维重建
qt-线程等01概念
制作(转换)ico图标
树莓派设置静态ip
Set static IP for raspberry pie
Ubuntu20 installation redisjson record
Mathematical induction and recursion
应用程序启动速度的优化
[Dameng database] after backup and recovery, two SQL statements should be executed
cocos3——8.实现初学者指南
【DPDK】dpdk样例源码解析之三:dpdk-l3fwd_001