当前位置:网站首页>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
边栏推荐
- How to replace the backbone of the model
- 枚举通用接口&枚举使用规范
- cocos3——8. Implementation Guide for beginners
- 制作(转换)ico图标
- 1200.Minimum Absolute Difference
- 19. (ArcGIS API for JS) ArcGIS API for JS line acquisition (sketchviewmodel)
- Huawei and Xiaomi "copy each other"
- Cryptography series: detailed explanation of online certificate status protocol OCSP
- 1200.Minimum Absolute Difference
- 源代码保密的意义和措施
猜你喜欢
Experience design details
21.(arcgis api for js篇)arcgis api for js矩形采集(SketchViewModel)
Do you know the five most prominent advantages of E-bidding?
Appx code signing Guide
Ubuntu20 installation redisjson record
U.S. Air Force Research Laboratory, "exploring the vulnerability and robustness of deep learning systems", the latest 85 page technical report in 2022
Mathematical induction and recursion
Leetcode-02 (linked list question)
CVPR 2022 best paper candidate | pip: six inertial sensors realize whole body dynamic capture and force estimation
腾讯云原生数据库TDSQL-C入选信通院《云原生产品目录》
随机推荐
Flink task exit process and failover mechanism
Codeforces round 264 (Div. 2) C gargari and Bishop [violence]
Basic concepts of Huffman tree
【达梦数据库】添加自动收集统计信息的任务
数学归纳与递归
Lab1 configuration script
【C语言】 题集 of Ⅸ
[colmap] 3D reconstruction with known camera pose
cocos3——8.实现初学者指南
Jerry's phonebook acquisition [chapter]
Not All Points Are Equal Learning Highly Efficient Point-based Detectors for 3D LiDAR Point
HDU 4337 King Arthur's Knights 它输出一个哈密顿电路
Set WiFi automatic connection for raspberry pie
pip只下载不安装
Depth analysis of compilation constants, classloader classes, and system class loaders
[dream database] add the task of automatically collecting statistical information
Tencent cloud native database tdsql-c was selected into the cloud native product catalog of the Academy of communications and communications
PIP download only, not install
C# Task拓展方法
Function reentry, function overloading and function rewriting are understood by yourself