楂樺苟鍙戣В鍐虫柟妗

棣栧厛锛屾槑纭嚑涓蹇

骞跺彂锛屽湪鎿嶄綔绯荤粺涓紝鏄寚涓涓椂闂存涓湁鍑犱釜绋嬪簭閮藉浜庡凡鍚姩杩愯鍒拌繍琛屽畬姣曚箣闂达紝涓旇繖鍑犱釜绋嬪簭閮芥槸鍦ㄥ悓涓涓鐞嗘満涓婅繍琛岋紝浣嗕换涓涓椂鍒荤偣涓婂彧鏈変竴涓▼搴忓湪澶勭悊鏈轰笂杩愯銆

QPS锛圱PS锛夛細姣忕閽 request/浜嬪姟 鏁伴噺锛屽湪浜掕仈缃戦鍩燂紝鎸囨瘡绉掑搷搴旇姹傛暟锛堟寚http璇锋眰锛夛紱

鍚炲悙閲忥細鍗曚綅鏃堕棿鍐呭鐞嗙殑璇锋眰鏁伴噺锛堥氬父鐢盦PS涓庡苟鍙戞暟鍐冲畾锛夛紱

鍝嶅簲鏃堕棿锛氱郴缁熷涓涓姹傚仛鍑哄搷搴旂殑骞冲潎鏃堕棿銆備緥濡傜郴缁熷鐞嗕竴涓狧TTP璇锋眰闇瑕200ms锛岃繖涓200ms灏辨槸绯荤粺鐨勫搷搴旀椂闂达紙鎴戣涓鸿繖閲屽簲璇ヤ粎鍖呭惈澶勭悊鏃堕棿锛岀綉缁滀紶杈撴椂闂村拷鐣ワ級銆

PV 缁煎悎娴忚閲忥紝0-24鐐规父瀹㈡祻瑙堥噺锛屽悓涓涓父瀹㈡祻瑙堝悓涓涓綉椤电畻鏄竴涓祻瑙堥噺銆

UV 鐩稿悓璁垮澶氭娴忚绠楁槸涓涓猆V

鏃ョ綉绔欏甫瀹 PV/缁熻鏃堕棿(鎹㈢畻鎴愮)骞冲潎椤甸潰澶у皬(kb)8

QPS涓嶇瓑浜庡苟鍙戣繛鎺ユ暟锛孮PS鏄瘡绉抙ttp璇锋眰鏁伴噺锛屽苟鍙戣繛鎺ユ暟閲忔槸绯荤粺鍚屾椂澶勭悊鐨勮繛鎺ユ暟閲

宄板糛PS = 鎬籔V鏁 * 80% / 6灏忔椂绉掓暟 * 20%

楂樺苟鍙戠綉绔欙紝闇瑕佹敞鎰忎粈涔

棣栧厛瑕佺煡閬撴棩QPS鏄灏 鐒跺悗娴嬪崟鍙版湇鍔″櫒鎵鑳芥壙鍙楃殑QPS 涔熷氨鏄帇鍔涙祴璇曚簡

甯歌娴嬭瘯宸ュ叿

ab,wrk,http_load,Web Bench, Siege, Apache JMeter

ab -c 100 -n 5000 https://www.liguoqi.site/

鎴愬姛鐨勮瘽锛屼粬浼氳繑鍥炲椤甸潰澶у皬锛孯equests per second锛堣繖涓氨鏄疩PS浜嗭級锛 鎴愬姛璇锋眰鐨勬鏁帮紝澶辫触璇锋眰鐨勬鏁扮瓑绛

QPS杈惧埌50

灏忓瀷缃戠珯锛屼竴鑸殑鏈嶅姟鍣ㄥ氨鍙互搴斾粯

QPS杈惧埌100

鍋囪鍏崇郴鍨嬫暟鎹簱鐨勬瘡娆¤姹傚湪0.01绉掑畬鎴愶紝鍋囪鍗曚釜椤甸潰鍙湁涓涓猻ql鏌ヨ锛岄偅涔100QPS鎰忓懗鐫涓绉掗挓瀹屾垚100娆¤姹傦紝浣嗘槸姝ゆ椂鎴戜滑骞朵笉鑳戒繚璇佹暟鎹簱鏌ヨ鑳藉畬鎴100娆
浼樺寲鏂规 锛氭暟鎹簱缂撳瓨灞傦紝鏁版嵁搴撶殑璐熻浇鍧囪 

QPS杈惧埌800

鍋囪鎴戜滑浣跨敤鐧惧厗甯﹀锛岀綉绔欏疄闄呭嚭鍙e甫瀹戒负8鍏嗭紝鍋囪姣忎釜椤甸潰鍙湁10K锛屽湪杩欎釜骞跺彂鏉′欢涓嬶紝鐧惧厗甯﹀涔熸妸甯﹀鍚冨厜浜嗐
浼樺寲鏂规锛欳DN鍔犻燂紝璐熻浇鍧囪 

QPS杈惧埌1000

鍋囪浣跨敤Memcache缂撳瓨鏁版嵁搴撴煡璇㈡暟鎹紝姣忎釜椤甸潰瀵筂emcache鐨勮姹傚ぇ浜庣洿鎺ュDB鐨勮姹傘
Memcache鐨勬偛瑙傚苟鍙戞暟鍦2W宸﹀彸锛屼絾鏈夊彲鑳藉湪涔嬪墠鍐呯綉鐨勫甫瀹藉凡缁忓悆鍏変簡锛屼細琛ㄧ幇鍑轰笉绋冲畾

浼樺寲鏂规锛氶潤鎬乭tml椤甸潰缂撳瓨銆

QPS杈惧埌2000

杩欎釜绾у埆涓嬶紝鏂囦欢绯荤粺璁块棶閿侀兘鎴愪负浜嗙伨闅
浼樺寲鏂规锛氬仛涓氬姟鍒嗙锛屽垎甯冨紡瀛樺偍

All posts

Other pages


Deprecated: 鏂囦欢 娌℃湁 comments.php 鐨勪富棰 鑷増鏈 3.0.0 璧峰凡寮冪敤锛屼笖娌℃湁鍙敤鐨勬浛浠c 璇峰湪鎮ㄧ殑涓婚涓寘鍚竴涓 comments.php 妯℃澘銆 in /www/wwwroot/liguoqi.site/wp-includes/functions.php on line 6078

銆“楂樺苟鍙戣В鍐虫柟妗”銆 鏈 1 鏉¤瘎璁

  1. niro璇撮亾锛

    灏忎紮瀛愬啓鐨勪笉閿

鍙戣〃鍥炲

鎮ㄧ殑鐢靛瓙閭鍦板潃涓嶄細琚叕寮銆 蹇呭~椤瑰凡鐢 * 鏍囨敞