{"id":120746,"date":"2026-11-01T08:40:45","date_gmt":"2026-11-01T00:40:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120746.html"},"modified":"2026-11-01T08:40:45","modified_gmt":"2026-11-01T00:40:45","slug":"%e5%85%a8%e9%93%be%e8%b7%af%e5%8e%8b%e6%b5%8b%e5%ae%b9%e9%87%8f%e6%91%b8%e9%ab%98%e8%b4%a6%e6%9c%ac%e8%ae%a1%e7%ae%97%ef%bc%9a%e4%bb%8e%e5%8e%8b%e6%b5%8b-qps-%e5%88%b0%e5%a4%a7%e4%bf%83%e7%9c%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120746.html","title":{"rendered":"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101004044-6ae68a8c1fca7.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u6bcf\u5e74\u7684\u53cc 11 \u6280\u672f\u4fdd\u536b\u6218\u4e2d&#xff0c;\u67b6\u6784\u59d4\u5458\u4f1a\u6700\u8003\u9a8c\u4e13\u4e1a\u529f\u5e95\u3001\u4e5f\u6700\u5bb9\u6613\u5f15\u53d1\u4e0e\u4e1a\u52a1\u548c\u8d22\u52a1\u90e8\u95e8\u6fc0\u70c8\u535a\u5f08\u7684\u8bae\u9898&#xff0c;\u83ab\u8fc7\u4e8e**\u201c\u5927\u4fc3\u5bb9\u91cf\u89c4\u5212\u8d26\u672c&#xff08;Capacity Sizing Ledger&#xff09;\u201d**\u3002<\/p>\n<p>\u4e1a\u52a1\u56e2\u961f\u6839\u636e\u5168\u7f51\u9884\u552e\u5b9a\u91d1\u4e0e\u8425\u9500\u5927\u76d8\u7684\u63a8\u6f14&#xff0c;\u7ed9\u51fa\u4e86\u6781\u5176\u5b8f\u5927\u7684\u4e1a\u52a1\u9884\u671f&#xff1a;\u201c\u4eca\u5e74\u53cc 11 \u96f6\u70b9&#xff0c;\u6838\u5fc3\u4e0b\u5355\u94fe\u8def\u7684\u77ac\u65f6\u5cf0\u503c\u5c06\u8fbe\u5230 18 \u4e07 QPS&#xff01;\u201d<\/p>\n<p>\u6b64\u65f6&#xff0c;\u538b\u529b\u5168\u76d8\u7ed9\u5230\u4e86\u6280\u672f\u67b6\u6784\u5e08&#xff1a;<\/p>\n<ul>\n<li>\u538b\u6d4b\u56e2\u961f\u5728\u6df1\u591c\u7684\u5168\u94fe\u8def\u538b\u6d4b\u4e2d&#xff0c;\u6478\u51fa\u4e86\u4ea4\u6613\u4e0b\u5355\u5fae\u670d\u52a1\u5728\u5f53\u524d\u96c6\u7fa4\u4e0b\u7684\u541e\u5410\u4e0a\u9650\u662f 10 \u4e07 QPS&#xff0c;\u5355\u53f0 8 \u6838 16G \u7269\u7406\u5bb9\u5668\u5728\u6781\u9650\u538b\u69a8\u4e0b\u7684\u6700\u5927\u541e\u5410\u4e3a 1500 QPS\u3002<\/li>\n<li>\u8ddd\u79bb 18 \u4e07 QPS \u7684\u76ee\u6807\u8fd8\u6709\u6574\u6574 8 \u4e07\u7684\u7f3a\u53e3\u3002<\/li>\n<\/ul>\n<p>\u5f88\u591a\u7f3a\u4e4f\u6df1\u6c34\u533a\u7ecf\u9a8c\u7684\u5de5\u7a0b\u5e08&#xff0c;\u5f80\u5f80\u4f1a\u62ff\u51fa\u4e00\u4e2a\u6781\u5176\u6734\u7d20\u7684\u7b97\u672f\u516c\u5f0f\u53bb\u5411\u8d22\u52a1\u603b\u76d1\u8981\u94b1&#xff1a;\u201c\u7f3a\u53e3 8 \u4e07 QPS&#xff0c;\u5355\u673a 1500 QPS&#xff0c;80000 \/ 1500 \u2248 54 \u53f0\u3002\u6211\u4eec\u53ea\u9700\u8981\u7d27\u6025\u91c7\u8d2d\u6269\u5bb9 54 \u53f0\u670d\u52a1\u5668\u5c31\u4e07\u4e8b\u5927\u5409\u4e86&#xff01;\u201d<\/p>\n<p>\u5982\u679c\u771f\u6709\u67b6\u6784\u5e08\u6562\u8fd9\u4e48\u5e72&#xff0c;\u5927\u4fc3\u96f6\u70b9\u4ed6\u4e00\u5b9a\u4f1a\u6210\u4e3a\u5168\u7f51\u4e8b\u6545\u901a\u62a5\u7684\u4e3b\u89d2\u3002\u56e0\u4e3a\u8fd9\u79cd\u201c\u7eb8\u9762\u7b97\u672f\u6269\u5bb9\u201d&#xff0c;\u65e0\u60c5\u5730\u5ffd\u89c6\u4e86\u751f\u4ea7\u5b89\u5168\u8fd0\u884c\u6c34\u4f4d\u3001\u8de8\u673a\u623f\u5f02\u5730\u5bb9\u707e\u5197\u4f59\u3001\u4e0b\u6e38\u6570\u636e\u5e93\u8fde\u63a5\u6570\u5929\u82b1\u677f\u3001\u4ee5\u53ca\u670d\u52a1\u53d1\u73b0\u4e0e\u5fae\u670d\u52a1\u6ce8\u518c\u4e2d\u5fc3\u7684\u7f51\u7edc\u5e7f\u64ad\u98ce\u66b4\u3002<\/p>\n<p>\u6269\u5bb9\u4e0d\u662f\u7b80\u5355\u7684\u9664\u6cd5\u7b97\u672f&#xff0c;\u5b83\u662f\u4e00\u95e8\u5173\u4e8e\u5168\u94fe\u8def\u7269\u7406\u5e73\u8861\u7684\u4e25\u8c28\u8fd0\u7b79\u5b66\u3002\u672c\u6587\u5c06\u6df1\u5165\u62c6\u89e3\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212\u7684\u79d1\u5b66\u6a21\u578b&#xff0c;\u8be6\u89e3\u5982\u4f55\u7528\u6e05\u6670\u900f\u660e\u7684\u5bb9\u91cf\u8d26\u672c&#xff0c;\u65e2\u5b88\u4f4f\u9ad8\u53ef\u7528\u5e95\u7ebf&#xff0c;\u53c8\u675c\u7edd\u6570\u767e\u4e07\u9884\u7b97\u7684\u76f2\u76ee\u6d6a\u8d39\u3002<\/p>\n<hr \/>\n<h3>\u4e3a\u4ec0\u4e48\u76f2\u76ee\u7ebf\u6027\u6269\u5bb9\u662f\u67b6\u6784\u81ea\u6740&#xff1f;<\/h3>\n<p>\u8bb8\u591a\u4eba\u8bef\u4ee5\u4e3a&#xff1a;\u201c\u53ea\u8981\u52a0\u673a\u5668&#xff0c;\u7cfb\u7edf\u541e\u5410\u91cf\u5c31\u80fd\u65e0\u9650\u7ebf\u6027\u63d0\u5347\u3002\u201d\u5728\u771f\u5b9e\u7684\u5206\u5e03\u5f0f\u96c6\u7fa4\u4e2d&#xff0c;\u5355\u8282\u70b9\u6027\u80fd\u4e0e\u96c6\u7fa4\u603b\u541e\u5410\u4e4b\u95f4\u4ece\u6765\u4e0d\u662f\u7b80\u5355\u7684\u7ebf\u6027\u76f8\u4e58\u3002\u963f\u59c6\u8fbe\u5c14\u5b9a\u5f8b&#xff08;Amdahl&#039;s Law&#xff09;\u4e0e\u901a\u7528\u53ef\u4f38\u7f29\u6027\u5b9a\u5f8b&#xff08;USL&#xff09;\u65e9\u5df2\u8bc1\u660e&#xff1a;\u968f\u7740\u8282\u70b9\u6570\u91cf\u7684\u4e0d\u65ad\u6fc0\u589e&#xff0c;\u8282\u70b9\u95f4\u7684\u901a\u4fe1\u534f\u8c03\u5f00\u9500\u4e0e\u5171\u4eab\u8d44\u6e90\u4e89\u7528\u5c06\u5448\u4e8c\u6b21\u65b9\u6307\u6570\u7ea7\u81a8\u80c0&#xff01;<\/p>\n<p>\u96c6\u7fa4\u603b\u541e\u5410 (Throughput)<br \/>\n   \u25b2                                              [\u771f\u5b9e\u7684\u963f\u59c6\u8fbe\u5c14\u5929\u82b1\u677f]<br \/>\n   \u2502                                           \u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<br \/>\n   \u2502                                         \u256d\u256f<br \/>\n   \u2502                                       \u256d\u256f  [\u7ee7\u7eed\u76f2\u76ee\u52a0\u673a\u5668, \u541e\u5410\u4e0d\u5347\u53cd\u964d&#xff01;]<br \/>\n   \u2502                                     \u256d\u256f    &#8211; \u6570\u636e\u5e93\u8fde\u63a5\u6c60\u88ab\u6570\u5343\u4e2a\u7269\u7406\u8fde\u63a5\u6253\u7a7f<br \/>\n   \u2502                                   \u256d\u256f      &#8211; Nacos\/Consul \u5fc3\u8df3\u5e7f\u64ad\u628a\u7f51\u5361\u8dd1\u6ee1<br \/>\n   \u2502                                 \u256d\u256f        &#8211; \u7f13\u5b58\u7f51\u7edc\u5e26\u5bbd\u6253\u6b7b&#xff0c;\u9501\u7ade\u4e89\u52a0\u5267<br \/>\n   \u2502             [\u6734\u7d20\u7ebf\u6027\u5e7b\u60f3]     \u256d\u256f<br \/>\n   \u2502          \u256d\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256f<br \/>\n   \u2502        \u256d\u256f<br \/>\n   \u2502      \u256d\u256f<br \/>\n   \u2502    \u256d\u256f<br \/>\n   \u2514\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25ba \u673a\u5668\u5b9e\u4f8b\u6570 (Nodes)<\/p>\n<li>\u5171\u4eab\u5e95\u5ea7\u7684\u201c\u53cd\u566c\u6548\u5e94\u201d&#xff1a;\u5982\u679c\u4f60\u628a\u5e94\u7528\u670d\u52a1\u5668\u4ece 100 \u53f0\u65e0\u8111\u6269\u5bb9\u5230 500 \u53f0&#xff0c;\u6bcf\u4e2a\u5e94\u7528\u5b9e\u4f8b\u7684 HikariCP \u8fde\u63a5\u6c60\u4fdd\u6301 20 \u4e2a\u8fde\u63a5&#xff0c;\u5e95\u5c42 MySQL \u4e3b\u5e93\u77ac\u95f4\u5c31\u8981\u627f\u53d7 10,000 \u4e2a\u6d3b\u8dc3\u7269\u7406 TCP \u8fde\u63a5&#xff01;MySQL \u7684\u7ebf\u7a0b\u8c03\u5ea6\u5f00\u9500\u4f1a\u77ac\u95f4\u5c06\u6570\u636e\u5e93 CPU \u9501\u6b7b\u5728 100%&#xff0c;\u5f15\u53d1\u5168\u7f51\u96ea\u5d29&#xff1b;<\/li>\n<li>\u6ce8\u518c\u4e2d\u5fc3\u4e0e\u914d\u7f6e\u4e2d\u5fc3\u7684\u5e7f\u64ad\u98ce\u66b4&#xff1a;\u5728\u4e00\u4e2a\u62e5\u6709\u4e0a\u4e07\u4e2a\u5b9e\u4f8b\u7684\u5fae\u670d\u52a1\u7f51\u7edc\u4e2d&#xff0c;\u4efb\u4f55\u4e00\u4e2a\u5b9e\u4f8b\u7684\u4e0a\u4e0b\u7ebf\u6216\u7f51\u7edc\u6296\u52a8&#xff0c;\u90fd\u4f1a\u89e6\u53d1\u5168\u7f51\u5341\u4e07\u7ea7\u522b\u7684\u670d\u52a1\u53d1\u73b0\u5fc3\u8df3\u5e7f\u64ad&#xff0c;\u76f4\u63a5\u628a\u670d\u52a1\u53d1\u73b0\u96c6\u7fa4\u7684\u7f51\u5361\u6324\u7206&#xff1b;<\/li>\n<li>\u6781\u9650\u6c34\u4f4d\u7684\u8106\u5f31\u6027&#xff1a;\u538b\u6d4b\u6478\u9ad8\u6478\u51fa\u7684 1500 QPS&#xff0c;\u662f\u5728\u670d\u52a1\u5668 CPU \u8dd1\u5230 90%\u3001\u5185\u5b58\u5373\u5c06\u544a\u8b66\u7684\u201c\u4e34\u754c\u6fd2\u6b7b\u72b6\u6001\u201d\u3002\u5982\u679c\u751f\u4ea7\u73af\u5883\u6309\u7167\u6781\u9650\u6c34\u4f4d\u89c4\u5212\u673a\u5668&#xff0c;\u5927\u4fc3\u5f53\u665a\u53ea\u8981\u53d1\u751f\u4e00\u6b21\u8f7b\u5fae\u7684\u8de8\u5730\u57df\u4e13\u7ebf\u6296\u52a8\u6216\u4ee3\u7801\u7a81\u53d1\u6162\u67e5\u8be2&#xff0c;\u6574\u4e2a\u96c6\u7fa4\u5c31\u4f1a\u5728 1 \u79d2\u5185\u5168\u9762\u4f11\u514b\u3002<\/li>\n<hr \/>\n<h3>\u79d1\u5b66\u5bb9\u91cf\u89c4\u5212\u7684\u56db\u6b65\u6362\u7b97\u6a21\u578b<\/h3>\n<p>\u8981\u8ba1\u7b97\u51fa\u65e0\u53ef\u8fa9\u9a73\u7684\u7cbe\u51c6\u673a\u5668\u53f0\u6570&#xff0c;\u5fc5\u987b\u901a\u8fc7\u4ee5\u4e0b\u56db\u6b65\u9012\u8fdb\u6838\u7b97&#xff1a;<\/p>\n<p>[\u4e1a\u52a1\u76ee\u6807\u5cf0\u503c: 180,000 QPS]<br \/>\n            \u2502<br \/>\n            \u25bc<br \/>\n[\u6b65\u9aa4 1: \u5b89\u5168\u8fd0\u884c\u6c34\u4f4d\u6298\u7b97 (Safe Operating Headroom)]<br \/>\n  &#8211; \u751f\u4ea7\u4e25\u7981\u8dd1\u5728 90% \u6781\u9650&#xff01;\u5b89\u5168\u57fa\u7ebf\u5fc5\u987b\u9501\u5b9a\u5728 60% ~ 65% \u6c34\u4f4d<br \/>\n  &#8211; \u6709\u6548\u5355\u673a\u5b89\u5168\u5bb9\u91cf: Cap_safe &#061; Cap_limit * 0.65 (1500 * 0.65 &#061; 975 QPS)<br \/>\n            \u2502<br \/>\n            \u25bc<br \/>\n[\u6b65\u9aa4 2: \u5f02\u5730\u591a\u6d3b\u673a\u623f\u5bb9\u707e\u5197\u4f59 (N&#043;1 \/ N&#043;2 Redundancy)]<br \/>\n  &#8211; \u4e09\u673a\u623f\u591a\u6d3b\u67b6\u6784\u4e0b&#xff0c;\u5fc5\u987b\u5177\u5907\u201c\u4efb\u610f\u5355\u673a\u623f\u762b\u75ea&#xff0c;\u5269\u4f59\u673a\u623f\u63a5\u7ba1\u201d\u7684\u80fd\u529b<br \/>\n  &#8211; \u5197\u4f59\u7cfb\u6570: R &#061; N \/ (N &#8211; 1) &#061; 3 \/ 2 &#061; 1.5<br \/>\n            \u2502<br \/>\n            \u25bc<br \/>\n[\u6b65\u9aa4 3: \u8003\u8651\u7f13\u5b58\u7a7f\u900f\u4e0e\u957f\u5c3e\u6296\u52a8\u7684\u51b7\u542f\u52a8\u51b2\u51fb\u7cfb\u6570 (Cold Shock Buffer)]<br \/>\n  &#8211; \u5f15\u5165 1.15 \u7684\u4e1a\u52a1\u6bdb\u523a\u7f13\u51b2\u7cfb\u6570<br \/>\n            \u2502<br \/>\n            \u25bc<br \/>\n[\u6b65\u9aa4 4: \u6821\u9a8c\u4e0b\u6e38\u5b58\u50a8\u74f6\u9888\u5e76\u53cd\u5411\u63a8\u6f14]<br \/>\n  &#8211; \u6821\u9a8c MySQL IOPS\u3001\u8fde\u63a5\u6c60\u914d\u989d\u3001Redis \u5206\u7247\u5e26\u5bbd\u3001Kafka \u5206\u533a\u541e\u5410<\/p>\n<h4>\u6838\u5fc3\u6570\u5b66\u516c\u5f0f&#xff1a;<\/h4>\n<p>\u8bbe\u4e1a\u52a1\u89c4\u5212\u7684\u5cf0\u503c QPS \u4e3a $Q_{target}$&#xff0c;\u5355\u673a\u538b\u6d4b\u6478\u9ad8\u6781\u9650\u4e3a $Cap_{limit}$&#xff0c;\u5219\u6700\u7ec8\u6240\u9700\u7684\u76ee\u6807\u5b9e\u4f8b\u6570 $N_{target}$ \u4e25\u683c\u5b9a\u4e49\u4e3a&#xff1a;<\/p>\n<p>$$N_{target} &#061; \\\\left\\\\lceil \\\\frac{Q_{target}}{Cap_{limit} \\\\times \\\\eta_{safe}} \\\\times \\\\gamma_{dr} \\\\times \\\\alpha_{shock} \\\\right\\\\rceil$$<\/p>\n<ul>\n<li>$\\\\eta_{safe}$&#xff08;\u5b89\u5168\u6c34\u4f4d\u7cfb\u6570&#xff09;&#xff1a;\u901a\u5e38\u53d6 0.60 ~ 0.65&#xff08;\u4fdd\u969c\u5927\u4fc3\u5cf0\u503c\u65f6 CPU \u7ef4\u6301\u5728 60%~65% \u7684\u9ec4\u91d1\u7a33\u6001\u533a\u95f4&#xff09;&#xff1b;<\/li>\n<li>$\\\\gamma_{dr}$&#xff08;\u5f02\u5730\u5bb9\u707e\u5197\u4f59\u7cfb\u6570&#xff09;&#xff1a;\u540c\u57ce\u53cc\u6d3b\u53d6 2.0&#xff0c;\u4e09\u5730\u591a\u6d3b\u53d6 1.5&#xff1b;<\/li>\n<li>$\\\\alpha_{shock}$&#xff08;\u957f\u5c3e\u6bdb\u523a\u51b2\u6fc0\u7cfb\u6570&#xff09;&#xff1a;\u901a\u5e38\u53d6 1.10 ~ 1.15\u3002<\/li>\n<\/ul>\n<p>\u4ee3\u5165\u6211\u4eec\u7684\u771f\u5b9e\u5927\u4fc3\u6307\u6807&#xff1a;$$N_{target} &#061; \\\\left\\\\lceil \\\\frac{180,000}{1500 \\\\times 0.65} \\\\times 1.5 \\\\times 1.15 \\\\right\\\\rceil &#061; \\\\lceil 184.6 \\\\times 1.725 \\\\rceil \\\\approx 319 \\\\text{ \u53f0}$$<\/p>\n<p>\u4ece\u6700\u521d\u6734\u7d20\u8ba1\u7b97\u7684\u201c\u6269\u5bb9 54 \u53f0\u201d&#xff0c;\u5230\u79d1\u5b66\u63a8\u6f14\u51fa\u7684\u201c\u5168\u7f51\u603b\u8ba1\u9700\u8981 319 \u53f0\u5b9e\u4f8b&#xff08;\u5404\u591a\u6d3b\u673a\u623f\u5e73\u644a\u5206\u5e03&#xff09;\u201d&#xff0c;\u8fd9\u5176\u4e2d\u7684\u5dee\u8ddd&#xff0c;\u5c31\u662f\u4e00\u6b21\u91cd\u5927\u7ebf\u4e0a\u4e8b\u6545\u4e0e\u4e00\u6b21\u5b8c\u7f8e\u4fdd\u536b\u6218\u7684\u9e3f\u6c9f&#xff01;<\/p>\n<hr \/>\n<h3>\u751f\u4ea7\u7ea7\u5927\u4fc3\u5bb9\u91cf\u6838\u7b97\u4e0e\u6210\u672c\u8d26\u672c\u751f\u6210\u5668\u5b9e\u73b0<\/h3>\n<p>\u4ee5\u4e0b\u57fa\u4e8e Java \u5b9e\u73b0\u7684\u751f\u4ea7\u7ea7\u81ea\u52a8\u5316\u5bb9\u91cf\u63a8\u6f14\u4e0e\u8d44\u6e90\u914d\u7f6e\u6838\u7b97\u5668&#xff1a;<\/p>\n<p>package com.architect.capacity.planner;<\/p>\n<p>import org.slf4j.Logger;<br \/>\nimport org.slf4j.LoggerFactory;<\/p>\n<p>\/**<br \/>\n * \u751f\u4ea7\u7ea7\u5927\u4fc3\u5bb9\u91cf\u89c4\u5212\u4e0e\u8d44\u6e90\u6269\u5bb9\u7cbe\u7b97\u5f15\u64ce<br \/>\n *\/<br \/>\npublic class CapacitySizingEngine {<\/p>\n<p>    private static final Logger log &#061; LoggerFactory.getLogger(CapacitySizingEngine.class);<\/p>\n<p>    public record CapacityInputSpec(<br \/>\n        String serviceName,<br \/>\n        int targetQps,              \/\/ \u4e1a\u52a1\u9884\u671f\u51b2\u9876 QPS (\u5982 180,000)<br \/>\n        int singleNodeLimitQps,     \/\/ \u538b\u6d4b\u5355\u673a\u6781\u9650 QPS (\u5982 1500)<br \/>\n        double safeOperatingRatio,  \/\/ \u5b89\u5168\u6c34\u4f4d (\u63a8\u8350 0.65)<br \/>\n        double disasterRecoveryRatio,\/\/ \u5bb9\u707e\u7cfb\u6570 (\u4e09\u673a\u623f\u591a\u6d3b\u53d6 1.5)<br \/>\n        double shockBufferRatio,    \/\/ \u6bdb\u523a\u7cfb\u6570 (\u63a8\u8350 1.15)<br \/>\n        int dbMaxConnectionsLimit   \/\/ \u4e0b\u6e38\u6570\u636e\u5e93\u7269\u7406\u8fde\u63a5\u6570\u786c\u9876 (\u5982 4000)<br \/>\n    ) {}<\/p>\n<p>    public record CapacityPlanReport(<br \/>\n        String serviceName,<br \/>\n        int totalNodesNeeded,<br \/>\n        int nodesPerDataCenter,<br \/>\n        int estimatedDbConnections,<br \/>\n        boolean isStorageBottleneck,<br \/>\n        String recommendation<br \/>\n    ) {}<\/p>\n<p>    \/**<br \/>\n     * \u8ba1\u7b97\u5e76\u8f93\u51fa\u5927\u4fc3\u5bb9\u91cf\u89c4\u5212\u8d26\u672c<br \/>\n     *\/<br \/>\n    public CapacityPlanReport calculateCapacityPlan(CapacityInputSpec spec) {<br \/>\n        log.info(&#034;[CAPACITY_CALC] \u5f00\u59cb\u4e3a\u670d\u52a1 {} \u7cbe\u7b97\u5927\u4fc3\u5bb9\u91cf\u8d26\u672c&#8230;&#034;, spec.serviceName());<\/p>\n<p>        \/\/ 1. \u6838\u5fc3\u516c\u5f0f\u8ba1\u7b97\u6240\u9700\u603b\u5b9e\u4f8b\u6570<br \/>\n        double effectiveSingleNodeCap &#061; spec.singleNodeLimitQps() * spec.safeOperatingRatio();<br \/>\n        double baseNodes &#061; spec.targetQps() \/ effectiveSingleNodeCap;<br \/>\n        int totalNodes &#061; (int) Math.ceil(baseNodes * spec.disasterRecoveryRatio() * spec.shockBufferRatio());<\/p>\n<p>        \/\/ 2. \u591a\u6d3b\u5355\u5143\u5e73\u644a (\u4ee5\u4e09\u673a\u623f\u4e3a\u4f8b)<br \/>\n        int nodesPerDc &#061; (int) Math.ceil(totalNodes \/ 3.0);<br \/>\n        totalNodes &#061; nodesPerDc * 3; \/\/ \u5bf9\u9f50\u4e09\u673a\u623f\u5bf9\u79f0\u90e8\u7f72<\/p>\n<p>        \/\/ 3. \u53cd\u5411\u6821\u9a8c\u4e0b\u6e38\u6570\u636e\u5e93\u7269\u7406\u8fde\u63a5\u6570\u538b\u529b<br \/>\n        \/\/ \u5047\u8bbe\u6bcf\u4e2a\u5fae\u670d\u52a1\u5b9e\u4f8b\u914d\u7f6e HikariCP maxPoolSize &#061; 10<br \/>\n        int estimatedDbConnections &#061; totalNodes * 10;<br \/>\n        boolean storageExceeded &#061; estimatedDbConnections &gt; spec.dbMaxConnectionsLimit();<\/p>\n<p>        String recommendation;<br \/>\n        if (storageExceeded) {<br \/>\n            recommendation &#061; String.format(&#034;\u8b66\u544a&#xff1a;\u6269\u5bb9 %d \u53f0\u5fae\u670d\u52a1\u5c06\u4ea7\u751f %d \u4e2a\u6570\u636e\u5e93\u8fde\u63a5&#xff0c;\u7a81\u7834\u4e3b\u5e93\u786c\u9876 %d&#xff01;\u5fc5\u987b\u8c03\u5c0f\u5355\u5b9e\u4f8b\u8fde\u63a5\u6c60\u5927\u5c0f\u6216\u5f15\u5165\u6570\u636e\u5e93\u4e2d\u95f4\u4ef6\u8fde\u63a5\u590d\u7528&#xff01;&#034;,<br \/>\n                    totalNodes, estimatedDbConnections, spec.dbMaxConnectionsLimit());<br \/>\n            log.error(&#034;[STORAGE_RISK] {}&#034;, recommendation);<br \/>\n        } else {<br \/>\n            recommendation &#061; String.format(&#034;\u5bb9\u91cf\u6838\u7b97\u901a\u8fc7&#xff01;\u4e09\u673a\u623f\u5404\u90e8\u7f72 %d \u53f0\u5b9e\u4f8b&#xff0c;\u5cf0\u503c\u9884\u671f CPU \u7ef4\u6301\u5728 %.1f%% \u9ec4\u91d1\u5b89\u5168\u6c34\u4f4d\u3002&#034;,<br \/>\n                    nodesPerDc, spec.safeOperatingRatio() * 100);<br \/>\n            log.info(&#034;[CAPACITY_PASSED] {}&#034;, recommendation);<br \/>\n        }<\/p>\n<p>        return new CapacityPlanReport(<br \/>\n                spec.serviceName(),<br \/>\n                totalNodes,<br \/>\n                nodesPerDc,<br \/>\n                estimatedDbConnections,<br \/>\n                storageExceeded,<br \/>\n                recommendation<br \/>\n        );<br \/>\n    }<br \/>\n}<\/p>\n<hr \/>\n<h3>\u5bb9\u91cf\u89c4\u5212\u843d\u5730\u7684\u5927\u4fc3\u907f\u5751\u4e09\u5927\u539f\u5219<\/h3>\n<p>\u5728\u5c06\u5bb9\u91cf\u8d26\u672c\u63d0\u4ea4\u6280\u672f\u59d4\u5458\u4f1a\u4e0e\u8d22\u52a1\u90e8\u95e8\u5ba1\u6279\u65f6&#xff0c;\u5fc5\u987b\u606a\u5b88\u4ee5\u4e0b\u4e09\u6761\u539f\u5219&#xff1a;<\/p>\n<h4>1. \u5168\u9762\u91c7\u7528\u201c\u6309\u91cf\u4ed8\u8d39\u4e0e\u62a2\u5360\u5f0f\u5b9e\u4f8b&#xff08;Spot \/ Preemptible&#xff09;\u201d<\/h4>\n<p>\u5927\u4fc3\u6d2a\u5cf0\u901a\u5e38\u53ea\u6301\u7eed 4 \u5230 8 \u4e2a\u5c0f\u65f6&#xff08;\u5982 10\u670831\u65e5 20:00 \u81f3\u6b21\u65e5\u51cc\u6668 02:00&#xff09;\u3002\u4e25\u7981\u4e3a\u4e86\u5927\u4fc3\u51e0\u5c0f\u65f6\u7684\u5cf0\u503c\u53bb\u5305\u5e74\u5305\u6708\u91c7\u8d2d\u7269\u7406\u670d\u52a1\u5668&#xff01;\u6210\u719f\u67b6\u6784\u5fc5\u987b\u5168\u9762\u8054\u52a8\u516c\u6709\u4e91\u6216\u6df7\u5408\u4e91\u5f39\u6027\u80fd\u529b&#xff1a;\u5927\u4fc3\u524d 4 \u5c0f\u65f6\u52a8\u6001\u62c9\u8d77\u5f39\u6027\u4e91\u4e3b\u673a&#xff0c;\u5927\u4fc3\u5cf0\u503c\u5e73\u7a33\u5ea6\u8fc7\u540e\u7684\u51cc\u6668 4 \u70b9&#xff0c;\u901a\u8fc7\u81ea\u52a8\u5316\u811a\u672c\u4e00\u952e\u9500\u6bc1\u9000\u8ba2&#xff0c;\u5c06\u6269\u5bb9\u673a\u5668\u7684\u771f\u5b9e\u8d22\u52a1\u6210\u672c\u538b\u7f29 80% \u4ee5\u4e0a\u3002<\/p>\n<h4>2. \u5fc5\u987b\u8fdb\u884c\u201c\u4e0b\u6e38\u5b58\u50a8\u74f6\u9888\u7684\u53cd\u5411\u63a8\u6f14\u201d<\/h4>\n<p>\u5728\u5bb9\u91cf\u8bc4\u5ba1\u4f1a\u4e0a&#xff0c;\u67b6\u6784\u5e08\u6c47\u62a5\u7684\u4e0d\u80fd\u53ea\u6709\u201c\u6211\u9700\u8981 300 \u53f0\u8ba1\u7b97\u670d\u52a1\u5668\u201d\u3002\u5fc5\u987b\u540c\u5c4f\u5c55\u793a\u5e95\u5c42\u7684**\u201c\u5168\u94fe\u8def\u6c34\u575d\u5bf9\u5e94\u5173\u7cfb\u201d**&#xff1a;<\/p>\n<ul>\n<li>300 \u53f0\u8ba1\u7b97\u8282\u70b9\u6269\u5bb9\u540e&#xff0c;\u5e95\u5c42 Redis \u7684\u7f51\u5361\u6d41\u91cf\u4f1a\u4e0d\u4f1a\u6253\u6ee1&#xff1f;<\/li>\n<li>\u5e95\u5c42 MySQL \u7684\u6bcf\u79d2\u5199 IOPS \u4f1a\u4e0d\u4f1a\u7a81\u7834 NVMe \u78c1\u76d8\u9635\u5217\u7269\u7406\u6781\u9650&#xff1f;<\/li>\n<li>Kafka \u7684\u5355\u5206\u533a\u5199\u5165 TPS \u4f1a\u4e0d\u4f1a\u8d85\u51fa Broker \u627f\u8f7d&#xff1f;\u53ea\u6709\u5f53\u5168\u94fe\u8def\u7684\u6bcf\u4e00\u4e2a\u6c34\u9f99\u5934\u548c\u4e0b\u6c34\u9053\u90fd\u5bf9\u9f50\u4e86\u76f8\u540c\u7684\u5bb9\u91cf\u57fa\u7ebf&#xff0c;\u7cfb\u7edf\u624d\u914d\u79f0\u4f5c\u771f\u6b63\u7684\u9ad8\u53ef\u7528\u3002<\/li>\n<\/ul>\n<h4>3. \u538b\u6d4b\u6478\u9ad8\u5fc5\u987b\u4f7f\u7528\u771f\u5b9e\u7684\u201c\u5168\u91cf\u4e1a\u52a1\u7528\u4f8b\u201d<\/h4>\n<p>\u5f88\u591a\u56e2\u961f\u5728\u538b\u6d4b\u6478\u9ad8\u65f6&#xff0c;\u4e3a\u4e86\u6570\u636e\u597d\u770b&#xff0c;\u53ea\u538b\u6d4b\u4e86\u6700\u7b80\u5355\u7684\u201c\u65e0\u5e93\u5b58\u6821\u9a8c\u3001\u65e0\u4f18\u60e0\u5238\u8ba1\u7b97\u201d\u7684\u7eaf\u7a7a\u63a5\u53e3&#xff0c;\u6478\u51fa\u4e86\u5355\u673a 5000 QPS \u7684\u6f02\u4eae\u6570\u5b57\u3002\u62ff\u7740\u8fd9\u79cd\u865a\u5047\u7684\u5355\u673a\u6307\u6807\u53bb\u6298\u7b97\u5927\u4fc3\u5bb9\u91cf&#xff0c;\u65e0\u5f02\u4e8e\u6307\u9e7f\u4e3a\u9a6c\u3002\u538b\u6d4b\u7528\u4f8b\u5fc5\u987b 100% \u8986\u76d6\u771f\u5b9e\u751f\u4ea7\u94fe\u8def\u4e0a\u7684\u590d\u6742\u4e1a\u52a1\u8ba1\u7b97&#xff0c;\u6478\u51fa\u7684\u5355\u673a\u6781\u9650\u624d\u80fd\u4f5c\u4e3a\u5bb9\u91cf\u7cbe\u7b97\u7684\u57fa\u77f3\u3002<\/p>\n<p>\u7528\u6570\u5b66\u5bf9\u6297\u6050\u614c&#xff0c;\u7528\u8d26\u672c\u9a7e\u9a6d\u7b97\u529b\u3002\u4e25\u8c28\u79d1\u5b66\u7684\u5bb9\u91cf\u89c4\u5212&#xff0c;\u8ba9\u5927\u4fc3\u6269\u5bb9\u4e0d\u518d\u662f\u76f2\u4eba\u6478\u8c61\u7684\u8d4c\u535a&#xff0c;\u800c\u662f\u5927\u5382\u67b6\u6784\u5e08\u6210\u7af9\u5728\u80f8\u3001\u62a4\u822a\u5343\u4ebf\u4ea4\u6613\u7684\u7cbe\u786e\u6218\u672f\u64cd\u76d8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/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":[66,745,99,426,50],"topic":[],"class_list":["post-120746","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-go","tag-java","tag-jvm","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \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\/120746.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120746.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-01T00:40:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101004044-6ae68a8c1fca7.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120746.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120746.html\",\"name\":\"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-01T00:40:45+00:00\",\"dateModified\":\"2026-11-01T00:40:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120746.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120746.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120746.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212\"}]},{\"@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":"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \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\/120746.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/120746.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-01T00:40:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261101004044-6ae68a8c1fca7.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120746.html","url":"https:\/\/www.wsisp.com\/helps\/120746.html","name":"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-01T00:40:45+00:00","dateModified":"2026-11-01T00:40:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120746.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120746.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120746.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5168\u94fe\u8def\u538b\u6d4b\u5bb9\u91cf\u6478\u9ad8\u8d26\u672c\u8ba1\u7b97\uff1a\u4ece\u538b\u6d4b QPS \u5230\u5927\u4fc3\u771f\u5b9e\u7269\u7406\u670d\u52a1\u5668\u6269\u5bb9\u89c4\u5212"}]},{"@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\/120746","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=120746"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120746\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120746"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}