当前位置:网站首页>Evaluation index of high concurrency software (website, server interface)
Evaluation index of high concurrency software (website, server interface)
2022-06-29 14:51:00 【Hebei qiangshang Network Technology Co., Ltd】
Evaluate the of a website “ size ”, In different perspectives , There are many ways to measure , Number of similar articles , Data such as the number of pages is very obvious , There is nothing to dispute . But for concurrency , There is a lot of controversy , Let's start from a technical point of view , Talk about a few Web The order of magnitude of the website .
I believe many people talk about the popularity of a website , It is inevitable to ask about the daily average PV, Number of people online at the same time 、 Operation data such as the number of registered users , To tell you the truth, from a technical point of view , None of these values can be compared together —— A static website PV With one SNS class /Web Game Website PV It's not the same thing . Because the Internet has a legendary “3 The law of seconds ”, Maybe there are more requirements for website technical indicators at present 1.5 Load the whole page in seconds , Or at least meet the standards of reading . If you want to be serious about something “ Online at the same time ”, Say it rudely , about HTTP For such short link network protocols , stay WebSocket It is not popular yet , It's bullshit to be able to count online , The only thing you can do is to take a time period , Calculate the access user . These can still be converted into QPS(Quest Per Second Requests per second ). In terms of concurrency , The only thing I admire is the theory QPS And pessimism QPS.
This is roughly based on the theory QPS, Make a few categories for the website
50QPS following —— Small website
There's nothing to say , It's just a simple little website , You can use the simplest way to quickly build , There are not many technical bottlenecks in the short term , As long as the server is not too bad .
50~100QPS——DB Limit type
In most relational databases, each request can be controlled in 0.01 About seconds , Even if your site has only one page per page DB request , Then the page request cannot be guaranteed in 1 In seconds 100 A request , At this stage, we should consider doing Cache Or more DB load . Either way , Website refactoring is inevitable .
300~800QPS—— Bandwidth limiting type
Current service Most servers are used IDC Provided “ 100 megabytes of bandwidth ”, this It means that the actual bandwidth of the website outlet is 8M Byte Left Right . Assume that each page has only 10K Byte, Under this concurrency condition , 100m bandwidth has been used up . The first consideration is CDN Speed up / Remote cache , Multi machine load and other technologies .
500~1000QPS—— Intranet bandwidth limit +Memcache Limit type
because Key/value Characteristics of , Each page faces memcache Your request is far greater than the direct request to DB Request ,Memcache The number of pessimistic concurrency in 2w about , It seems very high , But in fact, in most cases , First of all, it is possible that the bandwidth of the Intranet has been consumed before , Then in 8K QPS Left and right ,Memcache Has shown instability , If there is not enough optimization in the code , May directly transfer the pressure to DB On the floor , This eventually leads to the whole system reaching a certain threshold , Performance declines rapidly .
1000~2000QPS——FORK/SELECT, Lock mode limit type
ok , In a word : The thread model determines throughput . No matter what lock is the most common lock in your system , At this level , File system access locks are a disaster . This requires that there should be no central node in the system , All data must be stored in a distributed way , Data needs to be distributed . All in all , key word : Distribution
2000QPS above ——C10K limit
Although many applications have been implemented now C25K, But the short board theory tells us , It is always the most inefficient link that determines the overall concurrency of the website . I admit that I have never met in my life 2000QPS above , even to the extent that 1.5K The above websites , I hope that friends with this experience can communicate with each other .
边栏推荐
- Are the top ten domestic securities companies safe?
- NuScenes关于Radar的配置信息
- Chapter 9 of canvas: gradients and shadows
- 建立自己的网站(19)
- Analysis of istio -- observability
- JUC multithreading: creation and working principle of thread pool
- 我想在数仓的几百个节点里面 查找一个都有哪些sql里面用到了某张表 能查吗
- Class template case - array class encapsulation
- 中国二氧化硫脲行业研究与发展前景研究报告(2022版)
- Kubernetes pod troubleshooting guide
猜你喜欢

The 5th China software open source innovation competition | opengauss track live training

华曙高科冲刺科创板:拟募资6.6亿 实控人许小曙父子均为美国籍

Zhimeng dedecms resource material tutorial download website template source code (with mobile terminal) with installation tutorial

June 27 talk SofiE

MySQL 数据库 - 通用语法 DDL DML DQL DCL

网易严选离线数仓质量建设实践
![[top] blog instructions, bulletin board, message board, about bloggers](/img/3a/6100ae88874cad57305decce41c1e7.png)
[top] blog instructions, bulletin board, message board, about bloggers

单端口RAM实现FIFO

你还在用命令看日志?快用 Kibana 吧,一张图胜过千万行日志

Nuscenes configuration information about radar
随机推荐
国内十大券商,有哪些安全吗?
校园转转二手市场源码
自动注入@Resource和@Autowired注解的区别:
VeeamBackup&Replication简介
Redis transaction mechanism
《canvas》之第12章 其他应用
EMC-浪涌防护及退耦设计
Uniapp problem list and experience
Explanation on deployment and establishment of decentraland process
Interview shock 61: tell me about MySQL transaction isolation level?
【Try to Hack】vulnhub DC2
Redis installation in windows and Linux Environment
Chinese garbled code output from idea output station
宜明昂科冲刺港股:年内亏损7.3亿 礼来与阳光人寿是股东
织梦dedecms资源素材教程下载网站模板源码(带手机移动端)附安装教程
Whitelabel error page access
仿头条新闻资讯dz模板 Discuz新闻资讯商业版GBK模板源码
Redis master-slave replication principle
stm32 mbed 入门教程(四)---PWM
中国三氧化二砷行业研究与未来预测报告(2022版)