{"id":109468,"date":"2026-09-24T08:56:51","date_gmt":"2026-09-24T00:56:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109468.html"},"modified":"2026-09-24T08:56:51","modified_gmt":"2026-09-24T00:56:51","slug":"maas-%e5%b9%b3%e5%8f%b0%e6%9e%b6%e6%9e%84%e8%90%bd%e5%9c%b0%ef%bc%9a%e4%bb%8e%e5%8d%95%e7%a7%9f%e6%88%b7%e7%bd%91%e5%85%b3%e5%88%b0%e5%a4%9a%e7%a7%9f%e6%88%b7%e6%a8%a1%e5%9e%8b%e8%b7%af%e7%94%b1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109468.html","title":{"rendered":"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb"},"content":{"rendered":"<h3>1. \u95ee\u9898\u80cc\u666f&#xff1a;\u6a21\u578b\u7f51\u5173\u6210\u4e86\u65b0\u7684\u6027\u80fd\u74f6\u9888<\/h3>\n<p>2025 \u5e74\u6211\u4eec\u56e2\u961f\u8d1f\u8d23\u67d0\u4e91\u5382\u5546\u5185\u90e8 MaaS&#xff08;Model as a Service&#xff09;\u5e73\u53f0\u7684\u67b6\u6784\u5347\u7ea7\u3002\u5e73\u53f0\u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u7684\u6a21\u578b\u63a8\u7406 API&#xff0c;\u5185\u90e8\u5bf9\u63a5\u4e86 12 \u4e2a\u5f00\u6e90\u5927\u6a21\u578b&#xff08;Qwen2.5-72B\u3001Llama-3.1-70B\u3001DeepSeek-V3 \u7b49&#xff09;&#xff0c;\u65e5\u5747\u63a8\u7406\u8bf7\u6c42\u7ea6 380 \u4e07\u6b21&#xff0c;\u5cf0\u503c QPS \u7ea6 4200\u3002<\/p>\n<p>\u4e1a\u52a1\u4fa7\u53cd\u9988\u7684\u6838\u5fc3\u75db\u70b9\u662f&#xff1a;P95 \u5ef6\u8fdf\u4ece 1.2 \u79d2\u6076\u5316\u5230 3.8 \u79d2&#xff0c;\u6a21\u578b\u8def\u7531\u9519\u8bef\u7387\u4ece 0.3% \u4e0a\u5347\u5230 2.1%\u3002\u5ba2\u6237\u6295\u8bc9\u96c6\u4e2d\u5728\u4e24\u4e2a\u573a\u666f&#xff1a;\u4e00\u662f\u9ad8\u5cf0\u671f\u90e8\u5206\u8bf7\u6c42\u88ab\u9519\u8bef\u8def\u7531\u5230\u8d1f\u8f7d\u8fc7\u9ad8\u7684\u6a21\u578b\u5b9e\u4f8b&#xff1b;\u4e8c\u662f\u65b0\u4e0a\u7ebf\u7684\u6a21\u578b\u65e0\u6cd5\u7070\u5ea6&#xff0c;\u53ea\u80fd\u5168\u91cf\u5207\u6362&#xff0c;\u5bfc\u81f4\u7ebf\u4e0a\u4e8b\u6545\u9891\u53d1\u3002<\/p>\n<p>\u6211\u4eec\u6700\u521d\u7684\u8bbe\u8ba1\u662f\u4e00\u4e2a\u5355\u79df\u6237\u7684 Nginx &#043; Lua \u7f51\u5173&#xff0c;\u6309\u6a21\u578b\u540d\u505a\u9759\u6001\u54c8\u5e0c\u8def\u7531\u3002\u8fd9\u4e2a\u65b9\u6848\u5728\u65e5\u5747 50 \u4e07\u8bf7\u6c42\u65f6\u8fd0\u884c\u826f\u597d&#xff0c;\u4f46\u6d41\u91cf\u589e\u957f 7 \u500d\u540e&#xff0c;\u95ee\u9898\u96c6\u4e2d\u7206\u53d1\u3002<\/p>\n<h3>2. \u6839\u56e0\u5206\u6790&#xff1a;\u9759\u6001\u8def\u7531\u4e0e\u5171\u4eab\u7f51\u5173\u7684\u53cc\u91cd\u5931\u6548<\/h3>\n<p>\u6392\u67e5\u4e86\u4e09\u5929&#xff0c;\u6211\u4eec\u628a\u95ee\u9898\u6536\u655b\u5230\u4e09\u4e2a\u6839\u56e0&#xff1a;<\/p>\n<ul>\n<li>\u9759\u6001\u54c8\u5e0c\u65e0\u6cd5\u611f\u77e5\u5b9e\u4f8b\u5065\u5eb7\u5ea6&#xff1a;Nginx \u6309\u6a21\u578b\u540d\u54c8\u5e0c\u5230\u56fa\u5b9a\u5b9e\u4f8b&#xff0c;\u67d0\u5b9e\u4f8b\u663e\u5b58\u88ab\u6253\u6ee1\u540e&#xff0c;\u8bf7\u6c42\u4ecd\u7136\u6301\u7eed\u6d8c\u5165&#xff0c;\u5bfc\u81f4\u6392\u961f\u548c\u8d85\u65f6\u3002<\/li>\n<li>\u5355\u79df\u6237\u7f51\u5173\u7f3a\u4e4f\u914d\u989d\u9694\u79bb&#xff1a;\u4e00\u4e2a\u4e1a\u52a1\u65b9\u7684\u5927\u6279\u91cf\u4efb\u52a1&#xff08;\u5982\u79bb\u7ebf\u6279\u91cf\u63a8\u7406&#xff09;\u4f1a\u5360\u6ee1\u8fde\u63a5\u6c60&#xff0c;\u6324\u5360\u5728\u7ebf\u63a8\u7406\u8bf7\u6c42\u7684\u5e26\u5bbd\u3002<\/li>\n<li>\u6a21\u578b\u7248\u672c\u7ba1\u7406\u7f3a\u5931&#xff1a;\u65b0\u6a21\u578b\u4e0a\u7ebf\u53ea\u80fd\u901a\u8fc7\u4fee\u6539 Nginx \u914d\u7f6e\u5e76 reload \u5b8c\u6210&#xff0c;\u65e0\u6cd5\u6309\u79df\u6237\u6216\u6309\u6d41\u91cf\u6bd4\u4f8b\u7070\u5ea6\u3002<\/li>\n<\/ul>\n<p>\u4e00\u4e2a\u5178\u578b\u7684\u6545\u969c\u65e5\u5fd7\u7247\u6bb5\u5982\u4e0b&#xff1a;<\/p>\n<p>2025-06-18 14:32:07 ERROR gateway: upstream timed out (110: Connection timed out)<br \/>\nwhile connecting to upstream, client: 10.20.3.15, request: &#034;POST \/v1\/models\/qwen2.5-72b\/completions&#034;<br \/>\nupstream: &#034;http:\/\/10.0.8.21:8001&#034;, host: &#034;maas.internal.example.com&#034;<br \/>\n2025-06-18 14:32:08 ERROR gateway: no live upstreams while connecting to upstream, client: 10.20.3.15<\/p>\n<p>10.0.8.21 \u8fd9\u53f0 A100 \u5b9e\u4f8b\u7684\u663e\u5b58\u5229\u7528\u7387\u5df2\u8fbe 98%&#xff0c;\u4f46\u7f51\u5173\u4ecd\u7136\u628a\u65b0\u8bf7\u6c42\u8def\u7531\u8fc7\u53bb&#xff0c;\u76f4\u5230\u8fde\u63a5\u8d85\u65f6\u3002<\/p>\n<h3>3. \u65b9\u6848\u5bf9\u6bd4\u4e0e\u9009\u578b&#xff1a;\u81ea\u7814\u8def\u7531\u5c42 vs \u5f15\u5165 API \u7f51\u5173<\/h3>\n<p>\u6211\u4eec\u8bc4\u4f30\u4e86\u4e24\u4e2a\u65b9\u5411&#xff1a;<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u65b9\u6848 A&#xff1a;\u81ea\u7814 Go \u8def\u7531\u670d\u52a1\u65b9\u6848 B&#xff1a;\u57fa\u4e8e Apache APISIX 3.9 \u6269\u5c55<\/tr>\n<tbody>\n<tr>\n<td>\u8def\u7531\u7075\u6d3b\u6027<\/td>\n<td>\u5b8c\u5168\u53ef\u63a7&#xff0c;\u53ef\u6df1\u5ea6\u5b9a\u5236\u6a21\u578b\u4eb2\u548c\u6027\u7b56\u7565<\/td>\n<td>\u4f9d\u8d56\u63d2\u4ef6\u673a\u5236&#xff0c;\u590d\u6742\u7b56\u7565\u9700\u5199 Lua \u63d2\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u591a\u79df\u6237\u914d\u989d<\/td>\n<td>\u9700\u81ea\u884c\u5b9e\u73b0\u4ee4\u724c\u6876\u4e0e\u914d\u989d\u5b58\u50a8<\/td>\n<td>\u5185\u7f6e consumer \u7ea7\u9650\u6d41\u9650\u901f\u63d2\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u7070\u5ea6\u53d1\u5e03<\/td>\n<td>\u9700\u81ea\u884c\u5b9e\u73b0\u6743\u91cd\u8def\u7531\u4e0e\u7248\u672c\u7ba1\u7406<\/td>\n<td>\u5185\u7f6e traffic-split \u63d2\u4ef6&#xff0c;\u652f\u6301\u6309\u6743\u91cd\u5206\u6d41<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u7ef4\u6210\u672c<\/td>\n<td>\u9700\u7ef4\u62a4\u72ec\u7acb\u670d\u52a1\u4e0e\u5b58\u50a8<\/td>\n<td>\u590d\u7528\u5df2\u6709 APISIX \u96c6\u7fa4&#xff0c;\u8fd0\u7ef4\u6210\u672c\u4f4e<\/td>\n<\/tr>\n<tr>\n<td>\u56e2\u961f\u719f\u6089\u5ea6<\/td>\n<td>Go \u6808\u719f\u6089&#xff0c;\u4f46\u9700 2-3 \u5468\u5f00\u53d1<\/td>\n<td>\u5df2\u6709 APISIX \u8fd0\u7ef4\u7ecf\u9a8c&#xff0c;1 \u5468\u53ef\u4e0a\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u7ec8\u6211\u4eec\u9009\u62e9\u65b9\u6848 B&#xff1a;\u57fa\u4e8e APISIX 3.9 \u6269\u5c55\u3002\u6838\u5fc3\u8003\u91cf\u662f&#xff1a;\u56e2\u961f\u5df2\u6709 APISIX \u751f\u4ea7\u8fd0\u7ef4\u7ecf\u9a8c&#xff0c;\u4e14 traffic-split \u548c consumer \u9650\u6d41\u63d2\u4ef6\u80fd\u76f4\u63a5\u8986\u76d6\u7070\u5ea6\u4e0e\u914d\u989d\u4e24\u4e2a\u6838\u5fc3\u8bc9\u6c42&#xff0c;\u4e0d\u9700\u8981\u4ece\u96f6\u5f00\u53d1\u3002\u81ea\u7814\u65b9\u6848\u867d\u7136\u7075\u6d3b&#xff0c;\u4f46\u5728 3 \u5468\u5185\u5b8c\u6210\u5e76\u4fdd\u8bc1\u7a33\u5b9a\u6027\u98ce\u9669\u8fc7\u9ad8\u3002<\/p>\n<h3>4. \u5b9e\u64cd\u6b65\u9aa4&#xff1a;\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u843d\u5730\u5b9e\u73b0<\/h3>\n<p>\u6574\u4f53\u67b6\u6784\u8c03\u6574\u4e3a&#xff1a;\u5ba2\u6237\u7aef\u8bf7\u6c42 \u2192 APISIX \u7f51\u5173&#xff08;\u8def\u7531 &#043; \u9650\u6d41 &#043; \u7070\u5ea6&#xff09;\u2192 \u6a21\u578b\u8def\u7531\u670d\u52a1&#xff08;\u5b9e\u4f8b\u5065\u5eb7\u5ea6\u611f\u77e5&#xff09;\u2192 \u63a8\u7406\u5b9e\u4f8b\u6c60\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65&#xff0c;\u5728 APISIX \u4e2d\u914d\u7f6e\u591a\u79df\u6237 consumer \u4e0e\u914d\u989d\u9650\u6d41\u3002\u4ee5\u4e0b\u662f\u5173\u952e\u914d\u7f6e\u7247\u6bb5&#xff08;APISIX 3.9&#xff0c;etcd 3.5&#xff09;&#xff1a;<\/p>\n<p>consumers:<br \/>\n  &#8211; username: tenant_alpha<br \/>\n    plugins:<br \/>\n      key-auth:<br \/>\n        key: alpha-secret-key<br \/>\n      limit-count:<br \/>\n        count: 2000        # \u6bcf\u5206\u949f 2000 \u6b21<br \/>\n        time_window: 60<br \/>\n        rejected_code: 429<br \/>\n        policy: local<br \/>\n      limit-conn:<br \/>\n        conn: 50           # \u5355\u79df\u6237\u6700\u5927\u5e76\u53d1\u8fde\u63a5<br \/>\n        burst: 10<br \/>\n        default_conn_delay: 0.1<\/p>\n<p>\u7b2c\u4e8c\u6b65&#xff0c;\u901a\u8fc7 traffic-split \u63d2\u4ef6\u5b9e\u73b0\u65b0\u6a21\u578b\u7070\u5ea6\u3002\u4ee5 Qwen2.5-72B \u4ece v1 \u5347\u7ea7\u5230 v2 \u4e3a\u4f8b&#xff0c;\u5148\u5207 10% \u6d41\u91cf\u9a8c\u8bc1&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;uri&#034;: &#034;\/v1\/models\/qwen2.5-72b\/completions&#034;,<br \/>\n  &#034;plugins&#034;: {<br \/>\n    &#034;traffic-split&#034;: {<br \/>\n      &#034;rules&#034;: [<br \/>\n        {<br \/>\n          &#034;weighted_upstreams&#034;: [<br \/>\n            { &#034;upstream&#034;: { &#034;type&#034;: &#034;roundrobin&#034;, &#034;nodes&#034;: { &#034;10.0.8.21:8001&#034;: 1 } }, &#034;weight&#034;: 10 },<br \/>\n            { &#034;upstream&#034;: { &#034;type&#034;: &#034;roundrobin&#034;, &#034;nodes&#034;: { &#034;10.0.9.14:8001&#034;: 1 } }, &#034;weight&#034;: 90 }<br \/>\n          ]<br \/>\n        }<br \/>\n      ]<br \/>\n    }<br \/>\n  }<br \/>\n}<\/p>\n<p>\u7b2c\u4e09\u6b65&#xff0c;\u6a21\u578b\u8def\u7531\u670d\u52a1\u6bcf 5 \u79d2\u4ece Prometheus \u62c9\u53d6\u5404\u5b9e\u4f8b\u7684\u663e\u5b58\u5229\u7528\u7387\u3001GPU \u5229\u7528\u7387\u3001\u961f\u5217\u6df1\u5ea6\u4e09\u4e2a\u6307\u6807&#xff0c;\u8ba1\u7b97\u7efc\u5408\u5065\u5eb7\u5206&#xff0c;\u4f4e\u4e8e\u9608\u503c&#xff08;\u5982\u663e\u5b58\u5229\u7528\u7387 &gt; 92%&#xff09;\u7684\u5b9e\u4f8b\u4ece APISIX \u4e0a\u6e38\u8282\u70b9\u4e2d\u4e34\u65f6\u6458\u9664\u3002\u6838\u5fc3\u903b\u8f91\u5982\u4e0b&#xff08;Go 1.22&#xff09;&#xff1a;<\/p>\n<p>\/\/ health_score \u8ba1\u7b97\u5b9e\u4f8b\u5065\u5eb7\u5206&#xff0c;\u4f4e\u4e8e 60 \u5206\u5219\u6458\u9664<br \/>\nfunc healthScore(gpuUtil, memUtil, queueDepth float64) float64 {<br \/>\n    score :&#061; 100.0<br \/>\n    if memUtil &gt; 92 { score -&#061; 40 }        \/\/ \u663e\u5b58\u8d85 92% \u6263 40 \u5206<br \/>\n    if gpuUtil &gt; 95 { score -&#061; 30 }        \/\/ GPU \u6253\u6ee1\u6263 30 \u5206<br \/>\n    if queueDepth &gt; 8 { score -&#061; 20 }      \/\/ \u961f\u5217\u6df1\u5ea6\u8d85 8 \u6263 20 \u5206<br \/>\n    return score<br \/>\n}<\/p>\n<p>\u8def\u7531\u670d\u52a1\u901a\u8fc7 APISIX Admin API \u52a8\u6001\u8c03\u6574 upstream \u8282\u70b9\u6743\u91cd&#xff0c;\u5b9e\u73b0\u79d2\u7ea7\u6458\u9664\u4e0e\u6062\u590d\u3002<\/p>\n<h3>5. \u8e29\u5751\u4e0e\u6392\u9519&#xff1a;\u4e09\u4e2a\u771f\u5b9e\u95ee\u9898<\/h3>\n<p>\u5751\u4e00&#xff1a;traffic-split \u6743\u91cd\u4e0d\u751f\u6548\u3002\u7070\u5ea6\u4e0a\u7ebf\u7b2c\u4e00\u5929&#xff0c;10% \u7684\u6743\u91cd\u5b9e\u9645\u53d8\u6210\u4e86 50%\u3002\u6392\u67e5\u53d1\u73b0 APISIX 3.9 \u7684 traffic-split \u5728\u591a\u4e2a rule \u540c\u65f6\u5b58\u5728\u65f6\u4f1a\u53e0\u52a0\u6743\u91cd&#xff0c;\u800c\u4e0d\u662f\u6309\u6bd4\u4f8b\u5206\u914d\u3002\u89e3\u51b3\u65b9\u6cd5\u662f\u53ea\u4fdd\u7559\u4e00\u4e2a rule&#xff0c;\u5185\u90e8\u7528 weighted_upstreams \u6570\u7ec4\u8868\u8fbe\u591a\u7248\u672c\u6743\u91cd\u3002<\/p>\n<p>\u5751\u4e8c&#xff1a;\u9650\u6d41\u63d2\u4ef6\u8bef\u4f24\u5728\u7ebf\u63a8\u7406\u3002limit-count \u7684 policy \u8bbe\u4e3a local \u65f6&#xff0c;\u6bcf\u4e2a APISIX \u8282\u70b9\u72ec\u7acb\u8ba1\u6570&#xff0c;3 \u8282\u70b9\u96c6\u7fa4\u5bfc\u81f4\u5b9e\u9645\u914d\u989d\u653e\u5927 3 \u500d\u3002\u6539\u4e3a policy: redis \u5e76\u6307\u5b9a Redis 7.0 \u96c6\u7fa4\u540e&#xff0c;\u914d\u989d\u7edf\u8ba1\u624d\u51c6\u786e\u3002<\/p>\n<p>\u5751\u4e09&#xff1a;\u5065\u5eb7\u68c0\u67e5\u6458\u9664\u6296\u52a8\u3002\u8def\u7531\u670d\u52a1\u6bcf 5 \u79d2\u62c9\u53d6\u6307\u6807&#xff0c;\u67d0\u5b9e\u4f8b\u663e\u5b58\u5229\u7528\u7387\u5728 91%-93% \u4e4b\u95f4\u6ce2\u52a8\u65f6&#xff0c;\u4f1a\u88ab\u53cd\u590d\u6458\u9664\u548c\u6062\u590d&#xff0c;\u5bfc\u81f4\u8fde\u63a5\u9891\u7e41\u91cd\u5efa\u3002\u6700\u7ec8\u52a0\u5165 30 \u79d2\u7684\u51b7\u5374\u65f6\u95f4&#xff08;hysteresis&#xff09;&#xff0c;\u8fde\u7eed\u4e24\u6b21\u4f4e\u4e8e\u9608\u503c\u624d\u6458\u9664&#xff0c;\u8fde\u7eed\u4e24\u6b21\u9ad8\u4e8e\u6062\u590d\u9608\u503c\u624d\u91cd\u65b0\u4e0a\u7ebf\u3002<\/p>\n<h3>6. \u9a8c\u8bc1\u6570\u636e\u4e0e\u6548\u679c<\/h3>\n<p>\u4e0a\u7ebf\u4e24\u5468\u540e&#xff0c;\u6211\u4eec\u5bf9\u6bd4\u4e86\u6539\u9020\u524d\u540e\u7684\u6838\u5fc3\u6307\u6807&#xff1a;<\/p>\n<table>\n<tr>\u6307\u6807\u6539\u9020\u524d\u6539\u9020\u540e\u53d8\u5316<\/tr>\n<tbody>\n<tr>\n<td>P95 \u63a8\u7406\u5ef6\u8fdf<\/td>\n<td>3.8 \u79d2<\/td>\n<td>1.4 \u79d2<\/td>\n<td>\u4e0b\u964d 63%<\/td>\n<\/tr>\n<tr>\n<td>\u8def\u7531\u9519\u8bef\u7387<\/td>\n<td>2.1%<\/td>\n<td>0.2%<\/td>\n<td>\u4e0b\u964d 90%<\/td>\n<\/tr>\n<tr>\n<td>GPU \u5e73\u5747\u5229\u7528\u7387<\/td>\n<td>61%<\/td>\n<td>78%<\/td>\n<td>\u63d0\u5347 17 \u4e2a\u767e\u5206\u70b9<\/td>\n<\/tr>\n<tr>\n<td>\u65b0\u6a21\u578b\u7070\u5ea6\u5468\u671f<\/td>\n<td>2 \u5929&#xff08;\u5168\u91cf\u5207\u6362&#xff09;<\/td>\n<td>4 \u5c0f\u65f6&#xff08;10%\u219250%\u2192100%&#xff09;<\/td>\n<td>\u7f29\u77ed 80%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5cf0\u503c QPS 4200 \u65f6&#xff0c;\u7f51\u5173\u5c42\u65b0\u589e\u5ef6\u8fdf\u7ea6 8ms&#xff0c;\u53ef\u5ffd\u7565\u4e0d\u8ba1\u3002\u591a\u79df\u6237\u914d\u989d\u751f\u6548\u540e&#xff0c;\u79bb\u7ebf\u6279\u91cf\u4efb\u52a1\u4e0d\u518d\u6324\u5360\u5728\u7ebf\u63a8\u7406&#xff0c;\u5728\u7ebf\u8bf7\u6c42\u7684\u8d85\u65f6\u7387\u4ece 1.8% \u964d\u5230 0.15%\u3002<\/p>\n<h3>7. \u590d\u76d8&#xff1a;\u4ec0\u4e48\u573a\u666f\u8be5\u7528&#xff0c;\u4ec0\u4e48\u573a\u666f\u4e0d\u8be5\u7528<\/h3>\n<p>\u8fd9\u5957\u65b9\u6848\u9002\u5408\u6a21\u578b\u6570\u91cf\u591a&#xff08;&gt;5 \u4e2a&#xff09;\u3001\u79df\u6237\u591a&#xff08;&gt;3 \u4e2a&#xff09;\u3001\u6d41\u91cf\u6ce2\u52a8\u5927\u7684 MaaS \u5e73\u53f0\u3002APISIX \u7684\u63d2\u4ef6\u751f\u6001\u8ba9\u6211\u4eec\u7528\u8f83\u4f4e\u6210\u672c\u89e3\u51b3\u4e86\u7070\u5ea6\u3001\u9650\u6d41\u3001\u5065\u5eb7\u8def\u7531\u4e09\u4e2a\u6838\u5fc3\u95ee\u9898\u3002<\/p>\n<p>\u4f46\u4e5f\u8981\u8bf4\u6e05\u695a\u8fb9\u754c&#xff1a;\u5982\u679c\u53ea\u6709 1-2 \u4e2a\u6a21\u578b\u3001\u65e5\u5747\u8bf7\u6c42\u4f4e\u4e8e 10 \u4e07&#xff0c;\u76f4\u63a5\u7528 Nginx \u9759\u6001\u8def\u7531\u52a0\u7b80\u5355\u7684\u5065\u5eb7\u68c0\u67e5\u5c31\u591f&#xff0c;\u5f15\u5165 APISIX \u548c\u8def\u7531\u670d\u52a1\u53cd\u800c\u589e\u52a0\u8fd0\u7ef4\u590d\u6742\u5ea6\u3002\u53e6\u5916&#xff0c;\u5982\u679c\u56e2\u961f\u5bf9 OpenResty\/Lua \u4e0d\u719f\u6089&#xff0c;\u4e14\u6ca1\u6709\u73b0\u6210\u7684 APISIX \u8fd0\u7ef4\u80fd\u529b&#xff0c;\u81ea\u7814 Go \u8def\u7531\u670d\u52a1&#xff08;\u65b9\u6848 A&#xff09;\u5728\u957f\u671f\u53ef\u7ef4\u62a4\u6027\u4e0a\u53ef\u80fd\u66f4\u4f18\u2014\u2014APISIX \u7684\u63d2\u4ef6\u8c03\u8bd5\u5728\u590d\u6742\u7b56\u7565\u4e0b\u786e\u5b9e\u6bd4\u8f83\u75db\u82e6\u3002<\/p>\n<p>\u6700\u540e\u4e00\u70b9&#xff1a;\u5065\u5eb7\u8def\u7531\u4f9d\u8d56 Prometheus \u6307\u6807\u7684\u5b9e\u65f6\u6027&#xff0c;\u6307\u6807\u91c7\u96c6\u5ef6\u8fdf\u8d85\u8fc7 10 \u79d2\u65f6&#xff0c;\u6458\u9664\u52a8\u4f5c\u4f1a\u6ede\u540e&#xff0c;\u5efa\u8bae\u5728\u63a8\u7406\u5b9e\u4f8b\u4fa7\u540c\u65f6\u505a\u4e00\u5c42\u672c\u5730\u9650\u6d41\u515c\u5e95&#xff0c;\u907f\u514d\u7f51\u5173\u6458\u9664\u4e0d\u53ca\u65f6\u5bfc\u81f4\u5b9e\u4f8b OOM\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u95ee\u9898\u80cc\u666f&#xff1a;\u6a21\u578b\u7f51\u5173\u6210\u4e86\u65b0\u7684\u6027\u80fd\u74f6\u98882025 \u5e74\u6211\u4eec\u56e2\u961f\u8d1f\u8d23\u67d0\u4e91\u5382\u5546\u5185\u90e8 MaaS&#xff08;Model as a Service&#xff09;\u5e73\u53f0\u7684\u67b6\u6784\u5347\u7ea7\u3002\u5e73\u53f0\u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u7684\u6a21\u578b\u63a8\u7406 API&#xff0c;\u5185\u90e8\u5bf9\u63a5\u4e86 12 \u4e2a\u5f00\u6e90\u5927\u6a21\u578b&#xff08;Qwen2.5-72B\u3001Llama-3.1-70B\u3001DeepSeek-V3 \u7b49&#xff09;&#xff0c;\u65e5\u5747\u63a8\u7406\u8bf7\u6c42\u7ea6 380 \u4e07\u6b21&#xff0c;\u5cf0\u503c QPS \u7ea6 4200\u3002\u4e1a\u52a1\u4fa7\u53cd\u9988\u7684\u6838\u5fc3\u75db<\/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":[50,125,427],"topic":[],"class_list":["post-109468","post","type-post","status-publish","format-standard","hentry","category-server","tag-50","tag-125","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \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\/109468.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u95ee\u9898\u80cc\u666f&#xff1a;\u6a21\u578b\u7f51\u5173\u6210\u4e86\u65b0\u7684\u6027\u80fd\u74f6\u98882025 \u5e74\u6211\u4eec\u56e2\u961f\u8d1f\u8d23\u67d0\u4e91\u5382\u5546\u5185\u90e8 MaaS&#xff08;Model as a Service&#xff09;\u5e73\u53f0\u7684\u67b6\u6784\u5347\u7ea7\u3002\u5e73\u53f0\u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u7684\u6a21\u578b\u63a8\u7406 API&#xff0c;\u5185\u90e8\u5bf9\u63a5\u4e86 12 \u4e2a\u5f00\u6e90\u5927\u6a21\u578b&#xff08;Qwen2.5-72B\u3001Llama-3.1-70B\u3001DeepSeek-V3 \u7b49&#xff09;&#xff0c;\u65e5\u5747\u63a8\u7406\u8bf7\u6c42\u7ea6 380 \u4e07\u6b21&#xff0c;\u5cf0\u503c QPS \u7ea6 4200\u3002\u4e1a\u52a1\u4fa7\u53cd\u9988\u7684\u6838\u5fc3\u75db\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109468.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-24T00:56:51+00:00\" \/>\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\/109468.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109468.html\",\"name\":\"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-24T00:56:51+00:00\",\"dateModified\":\"2026-09-24T00:56:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109468.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109468.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109468.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb\"}]},{\"@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":"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \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\/109468.html","og_locale":"zh_CN","og_type":"article","og_title":"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u95ee\u9898\u80cc\u666f&#xff1a;\u6a21\u578b\u7f51\u5173\u6210\u4e86\u65b0\u7684\u6027\u80fd\u74f6\u98882025 \u5e74\u6211\u4eec\u56e2\u961f\u8d1f\u8d23\u67d0\u4e91\u5382\u5546\u5185\u90e8 MaaS&#xff08;Model as a Service&#xff09;\u5e73\u53f0\u7684\u67b6\u6784\u5347\u7ea7\u3002\u5e73\u53f0\u5bf9\u5916\u63d0\u4f9b\u7edf\u4e00\u7684\u6a21\u578b\u63a8\u7406 API&#xff0c;\u5185\u90e8\u5bf9\u63a5\u4e86 12 \u4e2a\u5f00\u6e90\u5927\u6a21\u578b&#xff08;Qwen2.5-72B\u3001Llama-3.1-70B\u3001DeepSeek-V3 \u7b49&#xff09;&#xff0c;\u65e5\u5747\u63a8\u7406\u8bf7\u6c42\u7ea6 380 \u4e07\u6b21&#xff0c;\u5cf0\u503c QPS \u7ea6 4200\u3002\u4e1a\u52a1\u4fa7\u53cd\u9988\u7684\u6838\u5fc3\u75db","og_url":"https:\/\/www.wsisp.com\/helps\/109468.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-24T00:56:51+00:00","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\/109468.html","url":"https:\/\/www.wsisp.com\/helps\/109468.html","name":"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-24T00:56:51+00:00","dateModified":"2026-09-24T00:56:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109468.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109468.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109468.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"MaaS \u5e73\u53f0\u67b6\u6784\u843d\u5730\uff1a\u4ece\u5355\u79df\u6237\u7f51\u5173\u5230\u591a\u79df\u6237\u6a21\u578b\u8def\u7531\u7684\u6f14\u8fdb"}]},{"@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\/109468","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=109468"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109468\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109468"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}