当前位置:网站首页>The biggest pain point of traffic management - the resource utilization rate cannot go up
The biggest pain point of traffic management - the resource utilization rate cannot go up
2022-07-06 21:00:00 【pythonxxoo】
Python Wechat ordering applet course video
https://edu.csdn.net/course/detail/36074
Python Actual quantitative transaction financial management system
https://edu.csdn.net/course/detail/35475
Hello everyone , I'm a ferry , This is the third in the traffic management series 9 Original articles , If there is harvest , Please share it with more friends .
I was once asked , Is there any pain in current limiting ? My answer at the time was : The current limiting threshold is not easy to evaluate and reduces the user experience , This is what I think is the pain point .
How to evaluate the current limiting threshold is still subject to the action of pressure measurement , Especially the current e-commerce platform , The full link voltage test will be carried out before the promotion , Expose the problem , See how much traffic you can handle . Then according to the business expectation , I know whether to expand the capacity , And the indicators of flow control , It's not hard to say , It needs a variety of means to prove .
Reducing the user experience is a must for current limiting , The user is placing an order , Then you will be prompted that the server is currently too crowded , Network anomalies , Please try again and wait , To put it simply, it reduces the user experience , Because the user needs to operate repeatedly . The serious point is that it affects the conversion rate of orders , Therefore, this is also the reason why pressure measurement is required before the promotion of e-commerce platform . It doesn't mean limiting the flow directly to a very low water level , User experience and system complexity must be weighed .
In fact, there is another more painful point is : Resource utilization is not going up .
When we go through the pressure test , When evaluating the maximum performance of a single node , The flow control threshold is 70% It's a safer approach . For example, you press a single machine to 1000 QPS, then CPU And memory 50% about , Then direct flow control 1000 that will do .
this 1000 It may also subdivide interfaces , The current limiting values of different interfaces are also different . For example, you have an interface configured 500 Current limiting , As long as the number of requests for this interface exceeds 500 Then the current must be limited , However, it is possible that only this interface has a large number of visits at this time , The others have little traffic , Mechanical CPU, Memory or something is still very low , The response, including the database, is also fast . At this time, it seems that it doesn't matter to limit the current , However, the current limit is configured with a fixed value , Can only limit .
In the face of this situation , A new current limiting method was born , Namely Adaptive current limiting . Adaptive current limiting means that there is no fixed current limiting threshold , The current limiting threshold will change , The factor of change is whether the dependent resources are sufficient , such as CPU, Memory and other resources .
Adaptive current limiting is still complex , The complexity lies in the need to collect all kinds of data in real time , Then through a lot of calculations , Then extract the decision , This decision is whether to limit the current , And the calculation speed is fast .
The general structure is as follows :

Of course, this calculation is a separate service , Embedded or embedded can be used in the current application , Depends on performance impact and whether cluster flow control .
With adaptive current limiting , The utilization of resources will be greatly improved . Because there is no need to set a more stable fixed value , Instead, it determines whether to limit the flow according to the use of resources , Maximum program utilization resources .
In the open source framework Sentinel It also has such an adaptive current limiting function , Those who are interested can learn :https://github.com/alibaba/Sentinel/wiki/%E7%B3%BB%E7%BB%9F%E8%87%AA%E9%80%82%E5%BA%94%E9%99%90%E6%B5%81
One of the advantages of adaptive current limiting is that it can improve the utilization of resources , There is also the ability to adapt to the impact of uncertain factors . Compared with the static current limiting configuration , We must configure it based on the results of pressure measurement , Even after pressure measurement , It's time for a really big traffic attack , No guarantee as like as two peas. . In case of an emergency , One slow Sql Put the database CPU It's full , Your current limit threshold is still so much QPS, slow SQL Increase hundreds of times , This current limiting is now inoperative .
Through adaptive current limiting , Decide whether to use flow control according to the results of real-time calculation , Ensure system stability . At the same time, it also avoids the cumbersome manual configuration process , The system automatically adjusts .
Another example : The current limit of single interface is 1000, Order details are 500. If the current is limited according to a fixed value , More than 1000 Will be limited , If the requested quantity of the order is greater than the quantity of the order details , Can adaptive current limiting first meet the traffic with higher business value , Let this part of the flow pass through , If there is other flow at this time, can it be automatically limited first . I don't need to say more about the value of this part , You know .
So adaptive current limiting can do a lot of things , Mainly intelligent , Intelligent algorithm level , It means a little artificial intelligence .
边栏推荐
- 【每周一坑】计算100以内质数之和 +【解答】输出三角形
- 2022 construction electrician (special type of construction work) free test questions and construction electrician (special type of construction work) certificate examination
- Why do novices often fail to answer questions in the programming community, and even get ridiculed?
- Value of APS application in food industry
- 1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
- Xcode6 error: "no matching provisioning profiles found for application"
- Deployment of external server area and dual machine hot standby of firewall Foundation
- PHP online examination system version 4.0 source code computer + mobile terminal
- OLED屏幕的使用
- 知识图谱构建流程步骤详解
猜你喜欢

OLED屏幕的使用

【mysql】游标的基本使用
![[diy] self designed Microsoft makecode arcade, official open source software and hardware](/img/a3/999c1d38491870c46f380c824ee8e7.png)
[diy] self designed Microsoft makecode arcade, official open source software and hardware

基于深度学习的参考帧生成

使用.Net驱动Jetson Nano的OLED显示屏

OneNote 深度评测:使用资源、插件、模版

Use of OLED screen

Deployment of external server area and dual machine hot standby of firewall Foundation

SAP Fiori应用索引大全工具和 SAP Fiori Tools 的使用介绍

(work record) March 11, 2020 to March 15, 2021
随机推荐
C language games - three chess
Summary of different configurations of PHP Xdebug 3 and xdebug2
'class file has wrong version 52.0, should be 50.0' - class file has wrong version 52.0, should be 50.0
Performance test process and plan
Detailed explanation of knowledge map construction process steps
R語言可視化兩個以上的分類(類別)變量之間的關系、使用vcd包中的Mosaic函數創建馬賽克圖( Mosaic plots)、分別可視化兩個、三個、四個分類變量的關系的馬賽克圖
Select data Column subset in table R [duplicate] - select subset of columns in data table R [duplicate]
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条
[weekly pit] positive integer factorization prime factor + [solution] calculate the sum of prime numbers within 100
7. Data permission annotation
Deployment of external server area and dual machine hot standby of firewall Foundation
OSPF多区域配置
3D人脸重建:从基础知识到识别/重建方法!
[asp.net core] set the format of Web API response data -- formatfilter feature
Swagger UI教程 API 文档神器
Review questions of anatomy and physiology · VIII blood system
[200 opencv routines] 220 Mosaic the image
#yyds干货盘点#重新梳理箭头函数的this
OneNote 深度评测:使用资源、插件、模版
快过年了,心也懒了