{"id":607,"date":"2021-09-02T16:42:36","date_gmt":"2021-09-02T08:42:36","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=607"},"modified":"2021-09-02T16:42:36","modified_gmt":"2021-09-02T08:42:36","slug":"clubhouse%e6%8a%80%e6%9c%af%e5%ae%9e%e8%b7%b5%ef%bc%9a%e5%a6%82%e4%bd%95%e6%89%a9%e5%a4%a7%e6%9c%8d%e5%8a%a1%e8%a7%84%e6%a8%a1%ef%bc%8c%e5%b9%b6%e4%bb%a53%e5%80%8d%e6%95%88%e7%8e%87%e8%bf%90%e8%a1%8cp","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2021\/09\/02\/607\/","title":{"rendered":"Clubhouse\u6280\u672f\u5b9e\u8df5\uff1a\u5982\u4f55\u6269\u5927\u670d\u52a1\u89c4\u6a21\uff0c\u5e76\u4ee53\u500d\u6548\u7387\u8fd0\u884cPython\u5de5\u4f5c\u8d1f\u8f7d\uff1f"},"content":{"rendered":"<section data-mpa-powered-by=\"yiban.io\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-611\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14.jpg\" width=\"510\" height=\"340\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14.jpg 510w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-14-300x200.jpg 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/section>\n<p>\u4f5c\u8005 | Luke Demi<\/p>\n<section>\u8bd1\u8005 | Flora<\/section>\n<section>\u7b56\u5212 | \u8521\u82b3\u82b3<\/section>\n<section>2021 \u5e74\u521d\uff0cClubhouse \u7ecf\u5386\u4e86\u4e00\u6b21\u7206\u70b8\u6027\u589e\u957f\u3002\u5728\u4e24\u4e2a\u6708\u7684\u65f6\u95f4\u91cc\uff0c\u4ed6\u4eec\u4ece\u6bcf\u5206\u949f\u4e0d\u5230 1 \u4e07\u6b21\u7684\u540e\u53f0\u8bf7\u6c42\u589e\u52a0\u5230\u8d85\u8fc7 100 \u4e07\u6b21\uff0c\u4ed6\u4eec\u7684\u670d\u52a1\u5668\u7ecf\u5386\u4e86\u60ca\u7fa4\u6548\u5e94\uff0c\u6027\u80fd\u53d7\u5230\u6781\u5927\u5a01\u80c1\u3002\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e Clubhouse \u7684\u5de5\u7a0b\u5e08\u5982\u4f55\u6291\u5236\u60ca\u7fa4\u6548\u5e94\uff0c\u6269\u5927\u670d\u52a1\u89c4\u6a21\u548c\u4ee5 3 \u500d\u6548\u7387\u8fd0\u884c Python \u5de5\u4f5c\u8d1f\u8f7d\u7684\u6545\u4e8b\u3002<\/section>\n<section>1\u8bf7\u6c42\u4ece\u6bcf\u5206\u949f 1 \u4e07\u4e2a\u4e0a\u5347\u5230 100 \u4e07\u4e2a<\/section>\n<p>2021 \u5e74\u521d\uff0cClubhouse \u7ecf\u5386\u4e86\u4e00\u6b21\u7206\u70b8\u6027\u589e\u957f\u3002\u5728\u4e24\u4e2a\u6708\u7684\u65f6\u95f4\u91cc\uff0c\u6211\u4eec\u4ece\u6bcf\u5206\u949f\u4e0d\u5230 1 \u4e07\u6b21\u7684\u540e\u53f0\u8bf7\u6c42\u589e\u52a0\u5230\u8d85\u8fc7 100 \u4e07\u6b21\uff0c\u8fd9\u8981\u6c42\u6211\u4eec\u5fc5\u987b\u8fc5\u901f\u9002\u5e94\uff0c\u4ee5\u5728\u73b0\u6709\u7684\u6280\u672f\u6808\u4e2d\u63d0\u4f9b\u6bcf\u5929\u6570\u5341\u4ebf\u6b21\u7684\u8bf7\u6c42\u3002\u800c\u4e14\u6211\u4eec\u53ea\u6709\u4e24\u540d\u5168\u804c\u7684\u540e\u53f0\u5de5\u7a0b\u5e08\uff08\u867d\u7136\u6211\u4eec\u4ecd\u7136\u5f88\u5c0f\u2014\u2014\u6211\u4eec\u73b0\u5728\u6709\u516d\u4e2a\u4eba\u2014\u2014\u6b22\u8fce\u52a0\u5165\u6211\u4eec\uff01\uff09\u3002\u8fd9\u662f\u4e00\u6bb5\u5173\u4e8e\u6211\u4eec\u70ed\u60c5\u65f6\u523b\u7684\u6545\u4e8b\uff0c\u5173\u4e8e\u6211\u4eec\u5982\u4f55\u6269\u5927\u670d\u52a1\u89c4\u6a21\u548c\u4ee5 3 \u500d\u6548\u7387\u8fd0\u884c Python \u8d1f\u8f7d\u7684\u6545\u4e8b\u3002<\/p>\n<p>\u6211\u4eec\u7684 Clubhouse \u6838\u5fc3 Web \u6808\u76f8\u5f53\u7b80\u964b\u2014\u2014\u8fd9\u4e5f\u662f\u6211\u4eec\u6545\u610f\u4e3a\u4e4b\u3002\u6211\u4eec\u7528\u7684\u662f\u57fa\u4e8e Gunicorn \u548c NGINX \u7684 Python\/Django \u8fd0\u7ef4\u3002\u5f53\u5f00\u59cb\u6ce8\u610f\u5230\u8fd9\u79cd\u589e\u957f\u65f6\uff0c\u6211\u4eec\u6ca1\u6709\u592a\u591a\u7684\u65f6\u95f4\u8c03\u6574\u6548\u7387\uff0c\u53ea\u80fd\u4e0d\u65ad\u589e\u52a0 Web \u8282\u70b9\u3002\u6211\u4eec\u4e00\u76f4\u90fd\u5bb9\u5fcd\u7684\u4e00\u4e2a\u4e8b\u5b9e\u662f\uff0cDjango \u5355\u4f53\u53ea\u80fd\u5728\u6bcf\u4e2a\u5b9e\u4f8b 30-35%CPU \u5229\u7528\u7387\u7684\u6761\u4ef6\u4e0b\u624d\u80fd\u771f\u6b63\u81ea\u52a8\u6269\u5c55\uff08\u5c31\u50cf\u8bb8\u591a\u5176\u4ed6\u4eba\u6240\u8bb0\u5f55\u7684\u90a3\u6837\uff09\uff0c\u6ce8\u5b9a\u5f88\u6d6a\u8d39\uff08\u8fd9\u8981\u602a\u6211\u4eec\u7684\u8054\u5408\u521b\u59cb\u4eba\u7684\u9009\u62e9\uff01\uff09\u3002\u8fd9\u662f\u4e00\u4e2a\u4ee4\u4eba\u82e6\u607c\u7684\u5047\u8bbe\u548c\u9650\u5236\uff0c\u4f46\u4e0e\u5176\u4ed6\u5fc5\u987b\u6269\u5c55\u548c\u5fc5\u987b\u6551\u706b\u7684\u4e8b\u60c5\u76f8\u6bd4\uff0c\u5b83\u5e76\u4e0d\u503c\u5f97\u82b1\u65f6\u95f4\u53bb\u8c03\u67e5\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u4eec\u589e\u52a0\u4e86\u66f4\u591a\u7684 Web \u8282\u70b9\u2014\u2014\u800c\u4e14\u662f\u8d8a\u6765\u8d8a\u591a\u7684 Web \u8282\u70b9\u3002\u5728\u8d85\u8fc7 1,000 \u4e2a Web \u5b9e\u4f8b\u4e4b\u524d\uff0c\u4e0d\u65ad\u6295\u5165\u673a\u5668\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u65b9\u6cd5\u8fd8\u662f\u53ef\u884c\u7684\u3002\u4f46\u662f\uff0c\u5f53\u6211\u4eec\u7a81\u7136\u5728\u6211\u4eec\u7684 Web \u4e3b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a\u8f83\u5927\u7684\u90e8\u7f72\u65f6\uff0c\u56e0\u4e3a\u6709\u4e86\u90a3\u4e48\u591a\u7684\u5b9e\u4f8b\uff0c\u6211\u4eec\u7684\u8d1f\u8f7d\u5e73\u8861\u5668\u5f00\u59cb\u95f4\u6b47\u6027\u5730\u8d85\u65f6\uff0c\u5e76\u4e14\u84dd \/ \u7eff\u90e8\u7f72\u671f\u95f4\u7684\u7ffb\u8f6c\u6d41\u91cf\u8ba9\u90e8\u7f72 &#8220;\u5361\u4f4f&#8221;\u4e86\u3002\u6211\u4eec\u8bd5\u56fe\u4e0e\u6211\u4eec\u7684\u4e91\u8ba1\u7b97\u4f9b\u5e94\u5546\u4e00\u8d77\u8ffd\u5bfb\u8d85\u65f6\u7684\u539f\u56e0\uff0c\u4f46\u4ed6\u4eec\u4e5f\u65e0\u6cd5\u627e\u5230\u53d1\u751f\u8fd9\u79cd\u60c5\u51b5\u7684\u6839\u672c\u539f\u56e0\u3002<\/p>\n<section>2\u4e00\u4e2a\u7b80\u5355\u7684\u89e3\u51b3\u65b9\u6848\u662f\u8fd0\u884c\u66f4\u5927\u7684\u5b9e\u4f8b<\/section>\n<p>\u8fd9\u5c31\u662f\u6211\u4eec\u7acb\u5373\u8981\u505a\u7684\u4e8b\u60c5\u3002\u4f46\u662f\uff0c\u5f53\u6211\u4eec\u5207\u6362\u5230\u975e\u5e38\u5927\u7684\uff0c\u6709 96 \u4e2a vCPU \u7684\u5b9e\u4f8b\u7c7b\u578b\u2014\u2014\u6bcf\u4e2a\u8282\u70b9\u4e0a\u8fd0\u884c 144 \u4e2a Gunicorn worker \u4e4b\u540e\uff0c\u6211\u4eec\u60ca\u5947\u5730\u53d1\u73b0\uff0c\u5728 CPU \u5229\u7528\u7387\u4ec5\u4ec5\u53ea\u6709 25% \u65f6\uff0c\u5ef6\u8fdf\u5c31\u5f00\u59cb\u81a8\u80c0\u3002\u5728\u8fd9\u4e2a\u4ee4\u4eba\u5c34\u5c2c\u7684\u4f4e\u9608\u503c\u4e0b\uff0c\u6211\u4eec\u7684 p50 \u5ef6\u8fdf\u6025\u5267\u4e0a\u5347\uff0c\u8282\u70b9\u53d8\u5f97\u4e0d\u7a33\u5b9a\u3002<\/p>\n<p>\u6211\u4eec\u88ab\u96be\u4f4f\u4e86\u3002\u6211\u4eec\u82b1\u4e86\u51e0\u4e2a\u5c0f\u65f6\u53bb\u5bfb\u627e\u7cfb\u7edf\u7ea7\u7684\u9650\u5236\uff08\u65e0\u7591\uff0c\u662f\u4e00\u4e9b\u968f\u673a\u7684\u5185\u6838\u9650\u5236\u6216\u8d44\u6e90\u88ab\u6211\u4eec\u6084\u6084\u5730\u649e\u4e0a\u4e86&#8230;&#8230;\uff09\u3002\u7ed3\u679c\u6211\u4eec\u7684\u53d1\u73b0\u66f4\u4ee4\u4eba\u9707\u60ca\uff1a\u5728\u8fd9\u4e9b\u5de8\u5927\uff08\u548c\u6602\u8d35\uff09\u7684\u673a\u5668\u4e0a\uff0c\u6211\u4eec\u7684 144 \u4e2a Gunicorn \u8fdb\u7a0b\u4e2d\u53ea\u6709 29 \u4e2a\u5728\u63a5\u6536\u8bf7\u6c42\uff01\u800c\u5176\u4ed6 115 \u4e2a\u8fdb\u7a0b\u90fd\u5904\u4e8e\u95f2\u7f6e\u72b6\u6001\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-612\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-4.png\" width=\"1080\" height=\"779\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-4.png 1080w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-4-300x216.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-4-1024x739.png 1024w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2021\/09\/4ffce04d92a4d6cb21c1494cdfcd6dc1-4-768x554.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/p>\n<p>\u8fd9\u771f\u662f&#8230;&#8230; \u4ee4\u4eba\u607c\u706b\u3002<\/p>\n<p>\u4e8b\u5b9e\u8bc1\u660e\uff0c\u8fd9\u662f\u60ca\u7fa4\u6548\u5e94\uff08thundering herd\uff09 \u95ee\u9898\u7684\u4e00\u4e2a\u4f8b\u5b50\u2014\u2014\u5f53\u5927\u91cf\u7684\u8fdb\u7a0b\u8bd5\u56fe\u7b49\u5f85\u540c\u4e00\u4e2a\u5957\u63a5\u5b57\u4ee5\u5904\u7406\u4e0b\u4e00\u4e2a\u8bf7\u6c42\u65f6\uff0c\u5b83\u5c31\u4f1a\u53d1\u751f\u3002\u9664\u975e\u4f60\u76f4\u9762\u8fd9\u4e2a\u95ee\u9898\uff0c\u5426\u5219\u4f60\u6700\u7ec8\u4f1a\u505a\u4e00\u4e9b\u5e7c\u7a1a\u7684\u4e8b\u60c5\u2014\u2014\u6240\u6709\u8fdb\u7a0b\u90fd\u5728\u4e89\u593a\u5904\u7406\u4e0b\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u6d6a\u8d39\u4e86\u5927\u91cf\u7684\u8d44\u6e90\u3002\u4e8b\u5b9e\u8bc1\u660e\uff0c\u8fd9\u662f Gunicorn \u7684\u4e00\u4e2a\u6709\u636e\u53ef\u67e5\u7684\u9650\u5236\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u4e00\u4e2a\u6210\u957f\u4e2d\u7684 Web \u670d\u52a1\u8be5\u600e\u4e48\u505a\u5462\uff1f\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u5feb\u901f\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u8fd9\u4e2a\u65b9\u6848\u5e94\u8be5\u53ea\u9700\u8981\u5f88\u5c11\u7684\u5de5\u7a0b\u65f6\u95f4\u3002<\/p>\n<section>3\u5c1d\u8bd5 #1\uff1auWSGI<\/section>\n<p>\u6211\u4eec\u7684\u7b2c\u4e00\u4e2a\u5c1d\u8bd5\u662f\u5c06\u6211\u4eec\u7684 Python \u5e94\u7528\u670d\u52a1\u5668\u4ece Gunicorn \u5207\u6362\u5230 uWSGI\uff0c\u5b83\u9488\u5bf9\u6211\u4eec\u7684\u8fd9\u4e2a\u95ee\u9898\u6709\u4e2a\u7cbe\u5fc3\u8bbe\u8ba1\u7684\u5185\u7f6e\u89e3\u51b3\u65b9\u6848\uff08\u5173\u4e8e\u5b83\u7684\u6587\u6863 \u503c\u5f97\u4e00\u8bfb\uff01\uff09\u3002\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848\u662f\u4e00\u4e2a\u53eb\u505a&#8221;&#8211;thunder-lock &#8220;\u7684\u6807\u5fd7\uff0c\u5b83\u5728\u5185\u6838\u4e2d\u505a\u4e86\u4e00\u4e2a\u975e\u5e38\u5de7\u5999\u7684\u4e8b\u60c5\uff0c\u5c06\u8d1f\u8f7d\u5747\u5300\u5730\u5206\u6563\u5230\u6211\u4eec\u6240\u6709\u7684 144 \u4e2a\u8fdb\u7a0b\u4e2d\u3002<\/p>\n<p>\u6211\u4eec\u8fc5\u901f\u90e8\u7f72\u4e86 uWSGI \u6765\u53d6\u4ee3 Gunicorn\uff0c\u4ee4\u6211\u4eec\u9ad8\u5174\u7684\u662f\uff0c\u5e73\u5747\u5ef6\u8fdf\u4e0b\u964d\u5230\u4e86\u4e00\u534a\uff01\u73b0\u5728\u8d1f\u8f7d\u88ab\u5747\u5300\u5730\u5206\u6563\u5230\u6240\u6709 144 \u4e2a\u8fdb\u7a0b\u4e2d\u3002\u4e00\u5207\u90fd\u770b\u8d77\u6765\u90fd\u5f88\u597d\u3002Slack \u4e0a\u79f0\u8d5e\u58f0\u4e0d\u7edd\u4e8e\u8033\u3002\u8fd9\u5f20\u56fe\u770b\u8d77\u6765\u5f88\u7f8e\u597d!<\/p>\n<p><img decoding=\"async\" class=\"img_loading\" src=\"data:image\/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-ratio=\"0.51\" data-type=\"png\" data-w=\"1000\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/YriaiaJPb26VMvkcjrwRuC1NicJAeGfZLUDJvna2uj5ewB7dVRqJH1FL4OAYdcrt76b6tVzJDl5fwvzglCSuvPxsA\/640?wx_fmt=png\" \/><\/p>\n<p>\u4f46\u8fd8\u6709\u4e00\u4e2a\u5927\u95ee\u9898\u6ca1\u6709\u89e3\u51b3\u3002\uff08\u5f53\u7136\u4f1a\u6709\u4e00\u4e2a\u95ee\u9898\uff09\u3002<\/p>\n<p>\u5f53\u6211\u4eec\u5f00\u59cb\u589e\u52a0\u6d41\u91cf\uff0c\u8d85\u8fc7 Gunicorn \u65f6\u4ee3\u795e\u79d8\u7684 25% \u7684 CPU \u9608\u503c\u65f6\uff0c\u6211\u4eec\u5f00\u59cb\u9047\u5230\u4e00\u4e2a\u66f4\u5927\u7684\u95ee\u9898\u3002uWSGI \u5957\u63a5\u5b57\u4f1a\u5728\u4e00\u4e9b\u673a\u5668\u4e0a\u4ee5\u4e0d\u53ef\u9884\u6d4b\u7684\u65f6\u95f4\u95f4\u9694\u9501\u5b9a\u3002\u5f53 uWSGI \u88ab\u9501\u4f4f\u7684\u65f6\u5019\uff0cWeb \u670d\u52a1\u5668\u4f1a\u5728\u51e0\u79d2\u949f\u5185\u62d2\u7edd\u6240\u6709\u7684\u8bf7\u6c42\u2014\u2014\u5728\u8fd9\u671f\u95f4\u6211\u4eec\u4f1a\u770b\u5230\u5927\u91cf\u7684\u5ef6\u8fdf\u5cf0\u503c\u548c 500 \u62a5\u544a\u3002\u8fd9\u6709\u70b9\u574f\u4e8b\uff0c\u5bf9\u5427\uff1f<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\u6709\u4e9b\u795e\u79d8\u3002\u6211\u4eec\u5728 uWSGI \u6587\u6863\u548c StackOverflow \u7684\u5e16\u5b50\u4e2d\u5339\u914d\u795e\u79d8\u95ee\u9898\u7684\u65e5\u5fd7\u884c\uff0c\u751a\u81f3\u7ffb\u8bd1\u4e86\u5fb7\u8bed\u548c\u4fc4\u8bed\u7684\u5e16\u5b50\uff0c\u4f46\u662f\u6ca1\u6709\u627e\u5230\u4e00\u4e2a\u5408\u9002\u7684\u8bc1\u636e\u3002<\/p>\n<p>\u8fd9\u52a0\u5267\u4e86\u53e6\u4e00\u4e2a\u95ee\u9898\uff1auWSGI \u592a\u8ba9\u4eba\u56f0\u60d1\u4e86\u3002\u6beb\u65e0\u7591\u95ee\uff0c\u5b83\u662f\u4e00\u4e2a\u4e86\u4e0d\u8d77\u7684\u8f6f\u4ef6\uff0c\u4f46\u5b83\u6709\u51e0\u5341\u4e2a\u53ef\u4ee5\u8c03\u6574\u7684\u9009\u9879\u3002\u8fd9\u4e48\u591a\u7684\u9009\u9879\u610f\u5473\u7740\u6709\u5927\u91cf\u7684\u6760\u6746\u53ef\u4ee5\u626d\u52a8\uff0c\u4f46\u7531\u4e8e\u7f3a\u4e4f\u6e05\u6670\u7684\u6587\u6863\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u731c\u6d4b\u67d0\u4e2a\u6807\u5fd7\u7684\u771f\u6b63\u610f\u56fe\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u65e0\u6cd5\u53ef\u9760\u5730\u91cd\u73b0\u6216\u7f13\u89e3\u8fd9\u4e2a\u95ee\u9898\u3002\u6211\u4eec\u53d1\u73b0 GitHub \u4e0a\u6709\u5f88\u591a\u7c7b\u4f3c\u8fd9\u4e2a\u7684\u95ee\u9898\uff0c\u8fd9\u4e9b\u95ee\u9898\u90fd\u662f\u968f\u673a\u51fa\u73b0\u7684\u3002<\/p>\n<p>\u6240\u4ee5 uWSGI \u4e0d\u9002\u5408\u6211\u4eec\u3002\u6211\u4eec\u53c8\u56de\u5230\u4e86\u539f\u70b9\uff1a\u6211\u4eec\u600e\u6837\u624d\u80fd 100% \u7684\u5229\u7528\u6211\u4eec\u5e94\u7528\u670d\u52a1\u5668\u7684 CPU \u5462\uff1f<\/p>\n<section>4\u5c1d\u8bd5 #2\uff1aNGINX<\/section>\n<p>\u6211\u4eec\u6df1\u5ea6\u6d4b\u8bd5\u4e86\u6211\u4eec\u7684 uWSGI \u95ee\u9898\uff0c\u5c31\u662f\u5728\u6bcf\u4e2a\u5e94\u7528\u670d\u52a1\u5668\u4e0a\u8fd0\u884c 10 \u4e2a\u4e0d\u540c\u7248\u672c\u7684 uWSGI \u6765\u51cf\u5c11\u5f71\u54cd\uff0c\u5e76\u901a\u8fc7 NGINX\uff08\u6211\u4eec\u73b0\u6709\u7684 Web \u4ee3\u7406\uff09\u6765\u5e73\u8861\u5b83\u4eec\u7684\u8d1f\u8f7d\u3002\u6211\u4eec\u7684\u60f3\u6cd5\u662f\uff0c\u5982\u679c\u5176\u4e2d\u4e00\u4e2a\u5957\u63a5\u5b57\u88ab\u9501\u5b9a\u6216\u5d29\u6e83\uff0c\u6211\u4eec\u81f3\u5c11\u53ea\u4f1a\u906d\u53d7 10% \u7684\u635f\u5931\u3002<\/p>\n<p>\u8fd9\u88ab\u8bc1\u660e\u662f\u9519\u8bef\u7684\uff0c\u56e0\u4e3a NGINX \u7684\u8d1f\u8f7d\u5e73\u8861\u529f\u80fd\u53d7\u5230\u4e25\u91cd\u7684\u9650\u5236\u3002\u6ca1\u6709\u4efb\u4f55\u9009\u9879\u53ef\u4ee5\u9650\u5236\u6bcf\u4e2a\u5957\u63a5\u5b57\u7684\u5e76\u53d1\u6570\uff0c\u4e5f\u6ca1\u6709\u4efb\u4f55\u9009\u9879\u53ef\u4ee5\u9632\u6b62\u88ab\u6302\u8d77\u7684\u5957\u63a5\u5b57\u63a5\u6536\u65b0\u7684\u8bf7\u6c42\u3002<\/p>\n<p>\u8fd9\u4f7f\u6211\u4eec\u4ea7\u751f\u4e86\u4e00\u4e2a\u95ee\u9898\uff1a\u6211\u4eec\u5230\u5e95\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528 NGINX\uff1f\u8bb8\u591a\u771f\u6b63\u6709\u7528\u7684\u8d1f\u8f7d\u5e73\u8861\u529f\u80fd\u662f\u7531 &#8220;NGINX Plus &#8220;\u63a7\u5236\u7684\uff0c\u4f46\u6211\u4eec\u4e0d\u786e\u5b9a\u8fd9\u4e9b\u529f\u80fd\u662f\u5426\u80fd\u5e2e\u52a9\u6211\u4eec\u3002<\/p>\n<p>\u5c31\u5728\u90a3\u65f6\uff0c\u6211\u4eec\u6709\u4e86\u4e00\u4e2a\u75af\u72c2\u7684\u60f3\u6cd5\u3002<\/p>\n<p>\u6211\u4eec\u77e5\u9053 Gunicorn \u672c\u8eab\u8868\u73b0\u5730\u8db3\u591f\u597d\uff0c\u4f46\u5b83\u5728\u8de8 worker \u7684\u8d1f\u8f7d\u5e73\u8861\u8bf7\u6c42\u65b9\u9762\u5374\u975e\u5e38\u5dee\u3002(\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u6211\u4eec\u4e00\u5f00\u59cb\u5c31\u770b\u5230\u4e86 115 \u4e2a\u95f2\u7f6e\u7684 worker \u8fdb\u7a0b\uff09\u3002<\/p>\n<p>\u5982\u679c\u6211\u4eec\u4e0d\u5728\u6bcf\u53f0\u670d\u52a1\u5668\u4e0a\u8fd0\u884c 10 \u4e2a Gunicorn \u670d\u52a1\u5668\uff0c\u800c\u662f\u5168\u529b\u4ee5\u8d74\u5730\u8fd0\u884c\u6574\u6574 144 \u4e2a\u72ec\u7acb\u7684 Gunicorn \u4e3b\u8fdb\u7a0b\uff0c\u6bcf\u4e2a\u8fdb\u7a0b\u53ea\u6709\u4e00\u4e2a Web worker\uff0c\u4f1a\u600e\u4e48\u6837\u5462\uff1f\u5982\u679c\u6211\u4eec\u80fd\u627e\u5230\u4e00\u79cd\u65b9\u6cd5\uff0c\u5728\u8fd9\u4e9b worker \u4e4b\u95f4\u771f\u6b63\u5b9e\u73b0\u8d1f\u8f7d\u5e73\u8861\uff0c\u80af\u5b9a\u4f1a\u4ea7\u751f\u5b8c\u7f8e\u5747\u8861\u8fd0\u884c\u7684\u8d85\u5927\u578b Web \u8282\u70b9\u3002<\/p>\n<section>5\u5c1d\u8bd5\u4e4b\u4e09\uff1aHAProxy \u6765\u62ef\u6551\u6211\u4eec!<\/section>\n<p>\u5e78\u8fd0\u7684\u662f\uff0cHAProxy \u53ef\u4ee5\u505a NGINX \u6240\u80fd\u505a\u7684\u4e00\u5207\uff0c\u800c\u4e14\u5bf9\u6211\u4eec\u7684\u7528\u4f8b\u6765\u8bf4\u8fd8\u66f4\u5408\u9002\u3002\u5b83\u5c06\u4f7f\u6211\u4eec\u80fd\u591f\uff1a<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>\u5728 144 \u4e2a\u540e\u7aef\uff08Gunicorn \u5957\u63a5\u5b57\uff09\u4e0a\u5747\u5300\u5730\u5206\u914d\u8bf7\u6c42\u3002<\/li>\n<li>\u4ee5\u6bcf\u4e2a\u540e\u7aef\u4e3a\u5355\u4f4d\u9650\u5236\u5e76\u53d1\u91cf\u2014\u2014\u8fd9\u6837\uff0c\u6211\u4eec\u53ea\u5411\u6bcf\u4e2a Gunicorn \u5957\u63a5\u5b57\u53d1\u9001\u4e00\u4e2a\u8bf7\u6c42\uff0c\u4ee5\u907f\u514d\u7ed9\u5b83\u5e26\u6765\u538b\u529b\u3002<\/li>\n<li>\u5728\u4e00\u4e2a\u5730\u65b9\u6392\u961f\u8bf7\u6c42\u2014\u2014HAProxy \u524d\u7aef\u2014\u2014\u800c\u4e0d\u662f\u5728\u6bcf\u4e2a Gunicorn \u8fdb\u7a0b\u4e2d\u5355\u72ec\u7684 backlog \u4e0a\u3002<\/li>\n<li>\u5728\u5e94\u7528\u670d\u52a1\u5668\u548c Gunicorn \u5957\u63a5\u5b57\u7684\u57fa\u7840\u4e0a\u76d1\u63a7\u5e76\u53d1\u6027\u3001\u9519\u8bef\u7387\u548c\u5ef6\u8fdf\u3002<\/li>\n<\/ol>\n<p>\u6211\u4eec\u4f7f\u7528 supervisord \u6765\u542f\u52a8\u6bcf\u4e2a Gunicorn \u5957\u63a5\u5b57\uff0c\u5e76\u7b80\u5355\u5730\u5217\u51fa\u6211\u4eec HAProxy \u540e\u7aef\u4e2d\u7684 144 \u4e2a Gunicorn \u5957\u63a5\u5b57\u3002<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"properties\"><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">[supervisord]<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">nodaemon<\/span>=<span class=\"code-snippet__string\">true<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__meta\">[program<\/span>:<span class=\"code-snippet__string\">app]<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">user<\/span>=<span class=\"code-snippet__string\">djangouser<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">directory<\/span>=<span class=\"code-snippet__string\">\/app<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">command<\/span>=<span class=\"code-snippet__string\">ddtrace-run gunicorn main.wsgi --workers=1 --timeout 15 -b unix:\/var\/shared\/gunicorn%(process_num)03d.sock --log-file -<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">numprocs<\/span>=<span class=\"code-snippet__string\">%(ENV_WORKERS)s<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">process_name<\/span>=<span class=\"code-snippet__string\">%(program_name)s_%(process_num)03d<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">    # give processes 180s before killing<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">stopwaitsecs<\/span>=<span class=\"code-snippet__string\">180<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">    # process needs to run at least 5s before we mark it as \"successful\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">startsecs<\/span>=<span class=\"code-snippet__string\">5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">    # log redirect all log output to stdout<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">stdout_logfile<\/span>=<span class=\"code-snippet__string\">\/dev\/fd\/1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">stdout_logfile_maxbytes<\/span>=<span class=\"code-snippet__string\">0<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__attr\">redirect_stderr<\/span>=<span class=\"code-snippet__string\">true<\/span><\/span><\/code><\/pre>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\">      backend api<\/span><\/code><code><span class=\"code-snippet_outer\">      balance roundrobin<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">      option httpchk GET \/health<\/span><\/code><code><span class=\"code-snippet_outer\">      timeout <span class=\"code-snippet__keyword\">check<\/span> <span class=\"code-snippet__number\">1000<\/span>ms<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># maxconn 1 - only one concurrent connection per gunicorn<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># maxqueue 1 - only queue one request per socket before attempting other sockets<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># iter 10s - one health check every 10 seconds<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># downinter 1s - faster health checks if the socket is marked down<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># fall 5 - 5 failed health checks (50s) to remove socket<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__comment\"># rise 1 - one successful health check adds socket<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">default<\/span>-<span class=\"code-snippet__keyword\">server<\/span> <span class=\"code-snippet__keyword\">check<\/span> maxconn <span class=\"code-snippet__number\">1<\/span> maxqueue <span class=\"code-snippet__number\">1<\/span> inter <span class=\"code-snippet__number\">10<\/span>s downinter <span class=\"code-snippet__number\">1<\/span>s fall <span class=\"code-snippet__number\">5<\/span> rise <span class=\"code-snippet__number\">1<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn000 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn000.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn001 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn001.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn002 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn002.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn003 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn003.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn004 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn004.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn005 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn005.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn006 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn006.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn007 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn007.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn008 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn008.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn009 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn009.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn010 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn010.sock<\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__keyword\">server<\/span> gunicorn011 \/<span class=\"code-snippet__keyword\">var<\/span>\/<span class=\"code-snippet__keyword\">shared<\/span>\/gunicorn011.sock<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__comment\">#\u00a0and\u00a0so\u00a0on...<\/span><\/span><\/code><\/pre>\n<\/section>\n<p>\u6211\u4eec\u9a8c\u8bc1\u4e86\u8fd9\u4e2a\u5047\u8bbe\uff0c\u5e76\u6324\u538b\u6d4b\u8bd5\u4e86\u5355\u4e2a 96 \u6838\u7684\u5b9e\u4f8b\uff0c\u76f4\u5230 CPU \u9971\u548c\u3002\u5728\u5b9e\u8df5\u4e2d\uff0c\u6211\u4eec\u7684\u8d1f\u8f7d\u610f\u5473\u7740\u6211\u4eec\u5728 80% \u5de6\u53f3\u7684 CPU \u5229\u7528\u7387\u65f6\u5f00\u59cb\u7ecf\u5386\u66f4\u9ad8\u7684\u5ef6\u8fdf\uff0c\u7531\u4e8e\u4e0d\u5747\u5300\u7684\u8d1f\u8f7d\u5bfc\u81f4\u7684\u4e34\u65f6\u9ad8\u5cf0\u4f7f\u673a\u5668\u9971\u548c\u3002\uff08\u4eca\u5929\uff0c\u6211\u4eec\u9009\u62e9\u4e86\u6bd4\u8fd9\u66f4\u4f4e\u7684\u89c4\u6a21\uff0c\u4ee5\u786e\u4fdd\u6211\u4eec\u5728\u81ea\u52a8\u7f29\u653e\u542f\u52a8\u4e4b\u524d\u80fd\u591f\u627f\u53d7 2 \u500d\u7684\u7206\u53d1 \u2014\u2014\u4f46\u6211\u4eec\u5f88\u559c\u6b22\u7559\u4e00\u4e9b\u5197\u4f59\u7a7a\u95f4\uff01\uff09<\/p>\n<p>\u8fd9\u4e2a\u89e3\u51b3\u65b9\u6848\u4e4d\u4e00\u770b\u6709\u70b9\u8352\u5510\uff0c\u4f46\u5728 Gunicorn \u5185\u90e8\u505a\u8d1f\u8f7d\u5747\u8861\uff0c\u662f\u4e0d\u662f\u5c31\u4e0d\u90a3\u4e48\u8352\u5510\u4e86\uff1f\u9009\u62e9\u8bb8\u591a\u8f83\u5c0f\u7684 Web \u8282\u70b9\u4e5f\u4f1a\u9020\u6210\u8fde\u63a5\u6c60\u51fa\u73b0\u5404\u79cd\u5404\u6837\u7684\u95ee\u9898\u2014\u2014\u4e8b\u5b9e\u8bc1\u660e\uff0c\u9664\u4e86\u66f4\u597d\u7684 CPU \u5229\u7528\u7387\uff0c\u62e5\u6709\u771f\u6b63\u7684\u5927\u5b9e\u4f8b\u5bf9\u4e8e\u8bb8\u591a\u5916\u56f4\u539f\u56e0\u6765\u8bf4\u4e5f\u5f88\u597d\u3002<\/p>\n<p>\u6211\u4eec\u4ece\u4e2d\u5f97\u5230\u7684\u4e3b\u8981\u542f\u793a\u662f\u4ec0\u4e48\uff1f<\/p>\n<ol class=\"list-paddingleft-2\">\n<li>\u5982\u679c uwsgi thunder-lock \u4ece\u4e00\u5f00\u59cb\u5c31\u5f88\u597d\u7528\u2014\u2014\u4e5f\u8bb8\u53ef\u4ee5\u8bd5\u4e00\u8bd5\uff01\u5b83\u662f\u4e00\u4e2a\u4e86\u4e0d\u8d77\u7684\u8f6f\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u5728\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u524d\u4f7f\u7528 NGINX \u4f5c\u4e3a sidecar \u4ee3\u7406\uff0c\u8003\u8651\u8c03\u6574\u4f60\u7684\u914d\u7f6e\u4ee5\u4f7f\u7528 HAProxy\u3002\u4f5c\u4e3a\u56de\u62a5\uff0c\u4f60\u4f1a\u56e0\u6b64\u5f97\u5230\u4ee4\u4eba\u6b23\u559c\u7684\u76d1\u63a7\u548c\u961f\u5217\u529f\u80fd\u3002<\/li>\n<li>Python \u4e3a\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c N \u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\u7684\u6a21\u5f0f\u5e76\u4e0d\u50cf\u4eba\u4eec\u8ba4\u4e3a\u7684\u90a3\u6837\u4e0d\u5408\u7406\uff01\u53ea\u8981\u7a0d\u52a0\u94bb\u7814\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u83b7\u5f97\u5408\u7406\u7684\u7ed3\u679c\u3002<\/li>\n<\/ol>\n<p>\u8c22\u8c22\u4f60\u7684\u9605\u8bfb\uff01<\/p>\n<p>\u4f60\u559c\u6b22\u540c\u4e00\u4e2a\u5c0f\u800c\u654f\u6377\u7684\u56e2\u961f\u6765\u8c03\u8bd5\u8fd9\u6837\u7684\u95ee\u9898\u5417\uff1f\u6216\u8005\u4f60\u751a\u81f3\u60f3\u5e2e\u52a9\u6211\u4eec\u91cd\u65b0\u6784\u5efa\u6574\u4e2a\u8be5\u6b7b\u7684\u4e1c\u897f\u7684\u8bdd\u2014\u2014\u8bf7\u67e5\u770b\u6211\u4eec\u7684\u62db\u8058\u7f51\u7ad9\u6216\u7ed9\u6211\u53d1\u7535\u5b50\u90ae\u4ef6\uff1aluke@clubhouse.com\u3002<\/p>\n<p>\u2014\u2014 Luke Demi\uff0c\u8f6f\u4ef6\u5de5\u7a0b\u5e08<\/p>\n<p><strong>\u539f\u6587\u94fe\u63a5\uff1a<\/strong><\/p>\n<p>https:\/\/blog.clubhouse.com\/reining-in-the-thundering-herd-with-django-and-gunicorn\/<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_607\" class=\"pvc_stats total_only  \" data-element-id=\"607\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005 | Luke Demi \u8bd1\u8005 | Flora \u7b56\u5212 | \u8521\u82b3\u82b3 2021 \u5e74\u521d\uff0cClubhouse \u7ecf\u5386 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_607\" class=\"pvc_stats total_only  \" data-element-id=\"607\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":611,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-607","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":613,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/607\/revisions\/613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/611"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}