当前位置:网站首页>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 .
边栏推荐
- Chapter 11 of canvas canvas status
- [shell] Jenkins shell realizes automatic deployment
- Chapter 13 event operation of canvas
- word如何自动生成目录
- 校园转转二手市场源码
- [QT tutorial] QPushButton key and double click effect
- Deploy redis sentry in k8s
- 华曙高科冲刺科创板:拟募资6.6亿 实控人许小曙父子均为美国籍
- China soft ice cream market forecast and investment prospect research report (2022 Edition)
- Redis的缓存雪崩、缓存击穿、缓存穿透与缓存预热、缓存降级
猜你喜欢
随机推荐
The first lesson on cloud - how easy is it to build a small broken station? The old driver of cloud computing will take you one hour to finish it
第五届中国软件开源创新大赛 | openGauss赛道直播培训
【jenkins】pipeline控制多job顺序执行,进行定时持续集成
delphi7中 url的编码
Chinese garbled code output from idea output station
June 27 talk SofiE
Kubernetes Pod 排错指南
How does a two character name become a three character name with spaces
期货开户可以线下开户吗?在网上开户安全吗?
Redis为什么这么快?Redis是单线程还是多线程?
[top] blog instructions, bulletin board, message board, about bloggers
传输层 选择性确认 SACK
Differences between @resource and @autowired annotations automatically injected:
Can Ruida futures open an account? Is it safe and reliable?
Chapter 6 picture operation of canvas
Transport layer user datagram protocol (UDP)
阿里云体验有奖:使用PolarDB-X与Flink搭建实时数据大屏
Are you still reading the log by command? Use kibana, one picture is better than ten thousand lines of log
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
VQA needs not only pictures, but also external knowledge! University of Washington & Microsoft proposed revive, using gpt-3 and wikidata to help answer questions

![[important notice] the 2022 series of awards and recommendations of China graphics society were launched](/img/ae/2fe0cf9964e5fd3b18e5f295638d8b.png)







