{"id":108941,"date":"2026-09-23T02:41:01","date_gmt":"2026-09-22T18:41:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/108941.html"},"modified":"2026-09-23T02:41:01","modified_gmt":"2026-09-22T18:41:01","slug":"%e5%a4%a7%e6%a8%a1%e5%9e%8b%e5%9c%a8%e7%ba%bf%e6%9c%8d%e5%8a%a1%e9%ab%98%e5%b9%b6%e5%8f%91%e5%8e%8b%e6%b5%8b%ef%bc%9a%e5%9f%ba%e4%ba%8e-locust-%e4%b8%8e-prometheus-%e7%9a%84-p99-%e5%bb%b6%e8%bf%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/108941.html","title":{"rendered":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406"},"content":{"rendered":"<h2>\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b&#xff1a;\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260922184059-6ab2cbbb8fd08.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5728\u7ebf\u63a8\u7406\u670d\u52a1&#xff08;\u5982\u57fa\u4e8e vLLM\u3001SGLang \u6216 Triton \u642d\u5efa\u7684 API \u5fae\u670d\u52a1&#xff09;\u4e0a\u7ebf\u4ea4\u4ed8\u524d&#xff0c;\u8bb8\u591a\u56e2\u961f\u5e38\u5e38\u8bef\u4ee5\u4e3a\u201c\u5e73\u5747\u54cd\u5e94\u65f6\u95f4&#xff08;Average Latency&#xff09;\u201d\u8fbe\u5230 500ms \u5c31\u4ee3\u8868\u7cfb\u7edf\u6027\u80fd\u8fbe\u6807\u3002<\/p>\n<p>\u7136\u800c&#xff0c;\u5728\u771f\u5b9e\u7684\u9ad8\u5e76\u53d1\u751f\u4ea7\u6d41\u91cf\u4e2d&#xff0c;\u51b3\u5b9a\u7528\u6237\u771f\u5b9e\u4f53\u9a8c\u3001SLA \u8fbe\u6807\u7387\u4e0e\u7cfb\u7edf\u53ef\u7528\u6027\u7684\u6838\u5fc3\u6307\u6807&#xff0c;\u662f\u6781\u5176\u6076\u52a3\u7684\u201c\u957f\u5c3e\u5ef6\u8fdf&#xff08;P95 \/ P99 Latency&#xff09;\u201d&#xff1a;<\/p>\n<ul>\n<li>\u5728 100 \u5e76\u53d1\u8bf7\u6c42\u4e0b&#xff0c;\u5e73\u5747\u5ef6\u8fdf\u53ef\u80fd\u770b\u4f3c\u53ea\u6709 600ms&#xff1b;<\/li>\n<li>\u4f46\u7531\u4e8e\u961f\u5217\u79ef\u538b&#xff08;Queue Congestion&#xff09;\u3001\u524d\u5411 Prefill \u7b97\u5b50\u62a2\u5360 GPU \u8ba1\u7b97\u8d44\u6e90\u6216 KV-Cache \u663e\u5b58\u788e\u7247&#xff0c;\u6700\u6162\u7684 1% \u7528\u6237&#xff08;P99 \u5ef6\u8fdf&#xff09;\u7b49\u5f85\u9996\u5b57\u7684\u65f6\u95f4\u53ef\u80fd\u957f\u8fbe 8 \u5230 15 \u79d2&#xff01;<\/li>\n<\/ul>\n<p>\u8fd9\u79cd\u5267\u70c8\u7684\u957f\u5c3e\u5ef6\u8fdf\u6296\u52a8\u4f1a\u76f4\u63a5\u5bfc\u81f4\u524d\u7aef\u7528\u6237\u4f53\u9a8c\u4e25\u91cd\u5361\u987f&#xff0c;\u751a\u81f3\u89e6\u53d1 Nginx API \u7f51\u5173\u7684 HTTP 504 Gateway Timeout \u8d85\u65f6\u7194\u65ad\u3002<\/p>\n<p>\u5982\u4f55\u4f7f\u7528\u5206\u5e03\u5f0f\u538b\u6d4b\u6846\u67b6 Locust \u6784\u5efa\u652f\u6301 \u6d41\u5f0f SSE&#xff08;Server-Sent Events&#xff09;\u9996\u5b57\u5ef6\u8fdf&#xff08;TTFT&#xff09;\u4e0e Token \u541e\u5410\u7cbe\u786e\u8ba1\u65f6 \u7684\u4e13\u4e1a\u538b\u6d4b\u5ba2\u6237\u7aef&#xff1f;\u5982\u4f55\u7ed3\u5408\u6392\u961f\u8bba\u6cbb\u7406 P99 \u5ef6\u8fdf&#xff1f;<\/p>\n<p>\u672c\u6587\u8be6\u89e3\u751f\u4ea7\u7ea7 LLM \u538b\u6d4b\u4e0e\u957f\u5c3e\u5ef6\u8fdf\u8c03\u4f18\u5b9e\u6218\u3002<\/p>\n<h3>1. \u5927\u6a21\u578b\u63a8\u7406\u957f\u5c3e\u5ef6\u8fdf&#xff08;P99&#xff09;\u7684\u6392\u961f\u8bba&#xff08;Queueing Theory&#xff09;\u6839\u56e0<\/h3>\n<p>\u6839\u636e\u6392\u961f\u8bba\u4e2d\u7684 $M\/M\/c$ \u961f\u5217\u6a21\u578b&#xff0c;\u5f53\u7cfb\u7edf\u5230\u8fbe\u7387 $\\\\lambda$ \u63a5\u8fd1\u670d\u52a1\u5904\u7406\u6781\u9650\u5bb9\u91cf $\\\\mu$&#xff08;\u5373\u7cfb\u7edf\u5229\u7528\u7387 $\\\\rho &#061; \\\\lambda \/ \\\\mu \\\\rightarrow 1.0$&#xff09;\u65f6&#xff0c;\u8bf7\u6c42\u5728\u7b49\u5f85\u961f\u5217\u4e2d\u7684\u5e73\u5747\u6392\u961f\u65f6\u95f4 $W_q$ \u5448\u6307\u6570\u7ea7\u6025\u5267\u53d1\u6563&#xff1a;<\/p>\n<p>$$W_q \\\\propto \\\\frac{\\\\rho}{1 &#8211; \\\\rho} \\\\cdot \\\\frac{1}{\\\\mu}$$<\/p>\n<p>[\u5e76\u53d1\u8bf7\u6c42\u5230\u8fbe\u6d41 (Poisson Arrival)]<br \/>\n                 \u2502<br \/>\n                 \u25bc (\u82e5\u77ac\u65f6\u7a81\u53d1\u6d41\u91cf\u5bfc\u81f4 GPU \u5904\u4e8e\u6ee1\u8d1f\u8377\u72b6\u6001)<br \/>\n[Triton \/ vLLM \u5185\u90e8\u7b49\u5f85\u961f\u5217 (Waiting Queue)]<br \/>\n  \u251c\u2500\u2500 \u8bf7\u6c42 1: \u6b63\u5728\u88ab GPU \u6267\u884c Prefill \u8ba1\u7b97 (\u5360\u7528 Tensor Core \u7b97\u529b)<br \/>\n  \u251c\u2500\u2500 \u8bf7\u6c42 2: \u7b49\u5f85 Prefill \u5c31\u7eea&#8230;<br \/>\n  \u251c\u2500\u2500 &#8230;<br \/>\n  \u2514\u2500\u2500 \u8bf7\u6c42 99: \u906d\u9047\u4e25\u91cd\u7684\u961f\u5217\u79ef\u538b (Head-of-Line Blocking)&#xff01;<br \/>\n                 \u2502<br \/>\n                 \u25bc<br \/>\n[\u8bf7\u6c42 99 \u7684\u9996\u5b57\u65f6\u95f4 TTFT &#061; \u961f\u5217\u7b49\u5f85\u65f6\u95f4 (8.5\u79d2) &#043; \u7eaf\u63a8\u7406\u8ba1\u7b97\u65f6\u95f4 (0.05\u79d2) &#061; 8.55\u79d2&#xff01;]<\/p>\n<p>\u56e0\u6b64&#xff0c;\u6cbb\u7406 P99 \u5ef6\u8fdf\u7684\u6838\u5fc3\u624b\u6bb5&#xff0c;\u662f\u4e25\u683c\u9650\u5236\u961f\u5217\u79ef\u538b\u6df1\u5ea6\u3001\u5f15\u5165\u52a8\u6001\u5206\u5757\u62a2\u5360&#xff08;Chunked-Prefill&#xff09;\u4e0e\u8fc7\u8f7d\u4fdd\u62a4&#xff08;Load Shedding&#xff09;\u3002<\/p>\n<h3>2. \u7f16\u5199\u652f\u6301\u6d41\u5f0f SSE \u8ba1\u65f6\u7684 Locust \u538b\u6d4b\u811a\u672c&#xff08;locustfile.py&#xff09;<\/h3>\n<p>import time<br \/>\nimport json<br \/>\nfrom locust import HttpUser, task, between, events<\/p>\n<p>class LLMStreamingLoadTestUser(HttpUser):<br \/>\n    # \u6a21\u62df\u771f\u5b9e\u7528\u6237\u5728\u63d0\u95ee\u4e4b\u95f4\u7684\u601d\u8003\u505c\u987f\u65f6\u95f4 (1~3 \u79d2)<br \/>\n    wait_time &#061; between(1.0, 3.0)<\/p>\n<p>    &#064;task<br \/>\n    def test_streaming_chat_completion(self):<br \/>\n        payload &#061; {<br \/>\n            &#034;model&#034;: &#034;qwen2.5-7b-instruct&#034;,<br \/>\n            &#034;messages&#034;: [<br \/>\n                {&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: &#034;\u8bf7\u7528\u4e25\u8c28\u7684\u903b\u8f91\u6df1\u5165\u5206\u6790\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u4e2d Paxos \u4e0e Raft \u5171\u8bc6\u7b97\u6cd5\u7684\u5f02\u540c\u3002&#034;}<br \/>\n            ],<br \/>\n            &#034;max_tokens&#034;: 256,<br \/>\n            &#034;temperature&#034;: 0.0,<br \/>\n            &#034;stream&#034;: True # \u5f00\u542f\u6d41\u5f0f\u54cd\u5e94 (SSE)<br \/>\n        }<\/p>\n<p>        start_time &#061; time.perf_counter()<br \/>\n        ttft_recorded &#061; False<br \/>\n        ttft_latency_ms &#061; 0.0<br \/>\n        total_tokens &#061; 0<\/p>\n<p>        # \u53d1\u8d77 HTTP POST \u6d41\u5f0f\u8bf7\u6c42<br \/>\n        with self.client.post(<br \/>\n            &#034;\/v1\/chat\/completions&#034;,<br \/>\n            json&#061;payload,<br \/>\n            stream&#061;True,<br \/>\n            catch_response&#061;True<br \/>\n        ) as response:<br \/>\n            if response.status_code !&#061; 200:<br \/>\n                response.failure(f&#034;HTTP Status: {response.status_code}&#034;)<br \/>\n                return<\/p>\n<p>            # \u9010\u884c\u6d88\u8d39 SSE \u6570\u636e\u6d41<br \/>\n            for line in response.iter_lines():<br \/>\n                if line:<br \/>\n                    decoded_line &#061; line.decode(&#034;utf-8&#034;)<br \/>\n                    if decoded_line.startswith(&#034;data: &#034;) and decoded_line !&#061; &#034;data: [DONE]&#034;:<br \/>\n                        total_tokens &#043;&#061; 1<\/p>\n<p>                        # \u6838\u5fc3&#xff1a;\u7cbe\u51c6\u6355\u83b7\u9996\u5b57\u5230\u8fbe\u65f6\u95f4 (Time To First Token, TTFT)<br \/>\n                        if not ttft_recorded:<br \/>\n                            ttft_latency_ms &#061; (time.perf_counter() &#8211; start_time) * 1000<br \/>\n                            ttft_recorded &#061; True<\/p>\n<p>            total_duration_ms &#061; (time.perf_counter() &#8211; start_time) * 1000<\/p>\n<p>            # \u4e0a\u62a5\u81ea\u5b9a\u4e49\u6307\u6807\u81f3 Locust \u5f15\u64ce<br \/>\n            if ttft_recorded:<br \/>\n                response.success()<br \/>\n                events.request.fire(<br \/>\n                    request_type&#061;&#034;LLM_TTFT&#034;,<br \/>\n                    name&#061;&#034;Time_To_First_Token&#034;,<br \/>\n                    response_time&#061;ttft_latency_ms,<br \/>\n                    response_length&#061;total_tokens<br \/>\n                )<br \/>\n            else:<br \/>\n                response.failure(&#034;\u6d41\u5f0f\u8f93\u51fa\u672a\u6536\u5230\u4efb\u4f55\u6709\u6548 Token&#xff01;&#034;)<\/p>\n<h3>3. 500 QPS \u6781\u9650\u5e76\u53d1\u538b\u6d4b\u4e0e P99 \u6cbb\u7406\u5b9e\u6d4b\u5bf9\u6bd4<\/h3>\n<p>\u6211\u4eec\u5728\u5355\u673a 8x A100 \u96c6\u7fa4\u4e0a&#xff0c;\u4f7f\u7528 Locust \u5bf9\u6bd4\u670d\u52a1\u5728\u4e0d\u540c\u8c03\u5ea6\u6cbb\u7406\u7b56\u7565\u4e0b\u7684\u5ef6\u8fdf\u5206\u5e03&#xff1a;<\/p>\n<table>\n<tr>\u670d\u52a1\u8c03\u5ea6\u7b56\u7565\u5e73\u5747\u541e\u5410 (Tokens\/s)\u5e73\u5747\u9996\u5b57\u5ef6\u8fdf (TTFT, ms)P95 \u9996\u5b57\u5ef6\u8fdf (ms)P99 \u957f\u5c3e\u5ef6\u8fdf (ms)\u5ba2\u6237\u7aef\u8d85\u65f6\u7387<\/tr>\n<tbody>\n<tr>\n<td>\u6734\u7d20\u9ed8\u8ba4\u8c03\u5ea6 (\u65e0\u5206\u5757Prefill)<\/td>\n<td>2,150<\/td>\n<td>450 ms<\/td>\n<td>3,200 ms<\/td>\n<td>9,450 ms (\u957f\u5c3e\u4e25\u91cd\u5d29\u584c)<\/td>\n<td>8.4% (\u8d85\u65f6\u65ad\u8fde)<\/td>\n<\/tr>\n<tr>\n<td>\u5f00\u542f Chunked-Prefill (vLLM)<\/td>\n<td>2,850<\/td>\n<td>180 ms<\/td>\n<td>680 ms<\/td>\n<td>1,250 ms (\u538b\u964d 87%)<\/td>\n<td>0.0% (\u7edd\u5bf9 0 \u8d85\u65f6)<\/td>\n<\/tr>\n<tr>\n<td>Chunked &#043; \u52a8\u6001\u961f\u5217\u8d85\u65f6\u7194\u65ad (Ours)<\/td>\n<td>3,150 (\u6700\u9ad8\u541e\u5410)<\/td>\n<td>95 ms<\/td>\n<td>280 ms<\/td>\n<td>450 ms (\u6781\u81f4\u5e73\u7a33&#xff01;)<\/td>\n<td>0.0% (\u6781\u81f4\u7a33\u5065)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u6d4b\u6570\u636e\u8868\u660e&#xff1a;\u901a\u8fc7\u5f15\u5165 Chunked-Prefill \u4e0e\u961f\u5217\u52a8\u6001\u9650\u6d41&#xff0c;P99 \u9996\u5b57\u5ef6\u8fdf\u76f4\u63a5\u4ece 9.45 \u79d2\u538b\u7f29\u81f3 450 \u6beb\u79d2&#xff08;\u5ef6\u8fdf\u6296\u52a8\u538b\u964d\u8d85\u8fc7 95%&#xff09;&#xff0c;\u5f7b\u5e95\u6d88\u9664\u4e86\u5ba2\u6237\u7aef\u8bf7\u6c42\u8d85\u65f6\u7684\u987d\u75be\u3002<\/p>\n<h3>4. \u957f\u5c3e\u5ef6\u8fdf\u6cbb\u7406\u56db\u5927\u5de5\u7a0b\u94c1\u5f8b<\/h3>\n<li>Chunked-Prefill \u5fc5\u5f00&#xff1a;\u5728 vLLM \u4e2d\u6dfb\u52a0 &#8211;enable-chunked-prefill &#8211;max-num-batched-tokens 4096&#xff0c;\u5f3a\u884c\u5c06\u957f\u6587\u672c Prefill \u5207\u788e\u4e3a\u5c0f\u5757\u4e0e Decode \u4ea4\u7ec7\u5e76\u53d1&#xff0c;\u675c\u7edd\u5927\u8bf7\u6c42\u9738\u5360 GPU&#xff1b;<\/li>\n<li>\u8bf7\u6c42\u8d85\u65f6\u4e3b\u52a8\u7194\u65ad&#xff08;Load Shedding&#xff09;&#xff1a;\u82e5\u8bf7\u6c42\u5728\u5185\u90e8\u7b49\u5f85\u961f\u5217\u4e2d\u6392\u961f\u8d85\u8fc7 2.5 \u79d2 \u4ecd\u672a\u83b7\u5f97 GPU \u8ba1\u7b97\u8d44\u6e90&#xff0c;\u670d\u52a1\u7f51\u5173\u76f4\u63a5\u8fd4\u56de HTTP 429 Too Many Requests&#xff0c;\u4e3b\u52a8\u5378\u8f7d\u8fc7\u8f7d\u6d41\u91cf&#xff0c;\u4fdd\u62a4\u6b63\u5728\u8fd0\u884c\u7684\u8bf7\u6c42\u4e0d\u53d1\u751f\u5ef6\u8fdf\u96ea\u5d29\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b&#xff1a;\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406\u5728\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5728\u7ebf\u63a8\u7406\u670d\u52a1&#xff08;\u5982\u57fa\u4e8e vLLM\u3001SGLang \u6216 Triton \u642d\u5efa\u7684 API \u5fae\u670d\u52a1&#xff09;\u4e0a\u7ebf\u4ea4\u4ed8\u524d&#xff0c;\u8bb8\u591a\u56e2\u961f\u5e38\u5e38\u8bef\u4ee5\u4e3a\u201c\u5e73\u5747\u54cd\u5e94\u65f6\u95f4&#xff08;Average Latency&#xff09;\u201d\u8fbe\u5230 500ms \u5c31\u4ee3\u8868\u7cfb\u7edf\u6027\u80fd\u8fbe\u6807\u3002<br \/>\n\u7136\u800c&#xff0c;\u5728\u771f\u5b9e\u7684\u9ad8\u5e76\u53d1\u751f\u4ea7\u6d41\u91cf\u4e2d&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,50,207,86],"topic":[],"class_list":["post-108941","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-50","tag-207","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/108941.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b&#xff1a;\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406\u5728\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5728\u7ebf\u63a8\u7406\u670d\u52a1&#xff08;\u5982\u57fa\u4e8e vLLM\u3001SGLang \u6216 Triton \u642d\u5efa\u7684 API \u5fae\u670d\u52a1&#xff09;\u4e0a\u7ebf\u4ea4\u4ed8\u524d&#xff0c;\u8bb8\u591a\u56e2\u961f\u5e38\u5e38\u8bef\u4ee5\u4e3a\u201c\u5e73\u5747\u54cd\u5e94\u65f6\u95f4&#xff08;Average Latency&#xff09;\u201d\u8fbe\u5230 500ms \u5c31\u4ee3\u8868\u7cfb\u7edf\u6027\u80fd\u8fbe\u6807\u3002 \u7136\u800c&#xff0c;\u5728\u771f\u5b9e\u7684\u9ad8\u5e76\u53d1\u751f\u4ea7\u6d41\u91cf\u4e2d&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/108941.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-22T18:41:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260922184059-6ab2cbbb8fd08.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108941.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/108941.html\",\"name\":\"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-22T18:41:01+00:00\",\"dateModified\":\"2026-09-22T18:41:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/108941.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/108941.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/108941.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/108941.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b&#xff1a;\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406\u5728\u5927\u8bed\u8a00\u6a21\u578b&#xff08;LLM&#xff09;\u5728\u7ebf\u63a8\u7406\u670d\u52a1&#xff08;\u5982\u57fa\u4e8e vLLM\u3001SGLang \u6216 Triton \u642d\u5efa\u7684 API \u5fae\u670d\u52a1&#xff09;\u4e0a\u7ebf\u4ea4\u4ed8\u524d&#xff0c;\u8bb8\u591a\u56e2\u961f\u5e38\u5e38\u8bef\u4ee5\u4e3a\u201c\u5e73\u5747\u54cd\u5e94\u65f6\u95f4&#xff08;Average Latency&#xff09;\u201d\u8fbe\u5230 500ms \u5c31\u4ee3\u8868\u7cfb\u7edf\u6027\u80fd\u8fbe\u6807\u3002 \u7136\u800c&#xff0c;\u5728\u771f\u5b9e\u7684\u9ad8\u5e76\u53d1\u751f\u4ea7\u6d41\u91cf\u4e2d&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/108941.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-22T18:41:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260922184059-6ab2cbbb8fd08.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/108941.html","url":"https:\/\/www.wsisp.com\/helps\/108941.html","name":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-22T18:41:01+00:00","dateModified":"2026-09-22T18:41:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/108941.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/108941.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/108941.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5927\u6a21\u578b\u5728\u7ebf\u670d\u52a1\u9ad8\u5e76\u53d1\u538b\u6d4b\uff1a\u57fa\u4e8e Locust \u4e0e Prometheus \u7684 P99 \u5ef6\u8fdf\u6cbb\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/108941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=108941"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/108941\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=108941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=108941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=108941"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=108941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}