当前位置:网站首页>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
边栏推荐
- 迷失在MySQL的锁世界
- cocos3——8. Implementation Guide for beginners
- Jerry's ble exiting Bluetooth mode card machine [chapter]
- Numpy中排序操作partition,argpartition,sort,argsort
- PIP download only, not install
- pip只下载不安装
- Jericho is in non Bluetooth mode. Do not jump back to Bluetooth mode when connecting the mobile phone [chapter]
- [Dameng database] after backup and recovery, two SQL statements should be executed
- Significance and measures of source code confidentiality
- Jerry's question about DAC output power [chapter]
猜你喜欢

Restcloud ETL Community Edition June featured Q & A

Appx code signing Guide

Set static IP for raspberry pie

Sub pixel corner detection opencv cornersubpix

About Confidence Intervals

About Tolerance Intervals

24. (ArcGIS API for JS) ArcGIS API for JS point modification point editing (sketchviewmodel)
![[tools] basic concept of database and MySQL installation](/img/9c/626e42097050517a13a2ce7cdab1bb.jpg)
[tools] basic concept of database and MySQL installation

Experience design details

源代码保密的意义和措施
随机推荐
Numpy中排序操作partition,argpartition,sort,argsort
cocos3——8.实现初学者指南
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
如何替换模型的骨干网络(backbone)
20.(arcgis api for js篇)arcgis api for js面采集(SketchViewModel)
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
Enumeration general interface & enumeration usage specification
迷失在MySQL的锁世界
.net中 接口可以有默认实现了
19.(arcgis api for js篇)arcgis api for js线采集(SketchViewModel)
Decoration design enterprise website management system source code (including mobile source code)
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
装饰设计企业网站管理系统源码(含手机版源码)
Principle of attention mechanism
Code quality management
20. (ArcGIS API for JS) ArcGIS API for JS surface collection (sketchviewmodel)
存储过程与函数(MySQL)
Optimization of application startup speed
About Estimation Statistics
CMB's written test - quantitative relationship