{"id":10735,"date":"2024-09-20T16:31:57","date_gmt":"2024-09-20T08:31:57","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=10735"},"modified":"2024-09-20T16:31:57","modified_gmt":"2024-09-20T08:31:57","slug":"%e4%ba%91%e6%9d%89%e7%bd%91%e7%bb%9c%e5%8f%af%e8%a7%82%e6%b5%8b%e6%80%a7%e6%9c%8d%e5%8a%a1%e5%bf%ab%e8%ae%af-2024%e5%b9%b48%e6%9c%88","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/10735.html","title":{"rendered":"\u4e91\u6749\u7f51\u7edc\u53ef\u89c2\u6d4b\u6027\u670d\u52a1\u5feb\u8baf( 2024\u5e748\u6708)"},"content":{"rendered":"\n\t\t\t\t<![CDATA[\n<p class=\"has-large-font-size\"><strong>01\uff5c\u67d0\u7701\u7535\u529b\u516c\u53f8\ufeff<\/strong><\/p>\n\n\n\n<p><strong>\u4e1a\u52a1<\/strong><strong>\u65e0\u54cd\u5e94<\/strong><\/p>\n\n\n\n<p>\u80fd\u6e90\u4e92\u8054\u7f51\u8425\u9500\u670d\u52a1\u7cfb\u7edf\u96c6\u7fa4\u67d0\u8282\u70b9\u4e1a\u52a1\u65e0\u54cd\u5e94\uff0c\u5728 DeepFlow \u4e2d\u53d1\u73b0\u8be5\u8282\u70b9\u7684 TCP \u8fde\u63a5\u90fd\u88ab\u670d\u52a1\u7aef\u76f4\u63a5\u91cd\u7f6e\uff0c\u6839\u636e\u7ecf\u9a8c\u5224\u65ad\u662f\u78c1\u76d8\u6545\u969c\u5bfc\u81f4\uff0c\u901a\u8fc7 DeepFlow \u7684\u6587\u4ef6\u8bfb\u5199\u76d1\u63a7\u53d1\u73b0\u4ece\u6545\u969c\u65f6\u95f4\u70b9\u5f00\u59cb\u5c31\u6ca1\u6709\u78c1\u76d8\u5199\u5165\u64cd\u4f5c\uff0c\u5ba2\u6237\u901a\u77e5\u76f8\u5173\u4e1a\u52a1\u8fd0\u7ef4\u4fee\u590d\u78c1\u76d8\u95ee\u9898\u540e\u4e1a\u52a1\u6062\u590d\u6b63\u5e38\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>02 | \u67d0\u4e92\u8054\u7f51\u91d1\u878d\u516c\u53f8<\/strong><\/p>\n\n\n\n<p><strong>\u5173\u952e\u670d\u52a1<\/strong><strong>\u76d1\u63a7\u89c6\u56fe<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u53cd\u9988 k8s \u5bf9\u5916\u670d\u52a1\u5e94\u7528\u62a5\u4e86\u5927\u91cf\u7ebf\u7a0b\u6c60\u6ee1\uff0c\u65e0\u6cd5\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u3002\u5ba2\u6237\u4fa7\u6392\u67e5 1-2 \u5c0f\u65f6\u540e\u624d\u786e\u8ba4\u5177\u4f53\u51fa\u73b0\u6545\u969c\u7684\u670d\u52a1\u70b9\u3002\u540e\u7eed\u901a\u8fc7 DeepFlow \u521b\u5efa k8s \u5bf9\u5916\u670d\u52a1\u76d1\u63a7\u89c6\u56fe\uff0c\u53ef\u4ee5\u76f4\u89c2\u770b\u5230\u5177\u4f53\u67d0\u4e2a\u65f6\u95f4\u70b9\uff0c\u670d\u52a1\u6545\u969c\u54cd\u5e94\u8017\u65f6\u7684\u53d8\u5316\uff0c\u5feb\u901f\u6392\u67e5\u6545\u969c\u70b9\u53ca\u6545\u969c\u539f\u56e0\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>03 | \u67d0\u6c7d\u8f66\u4f01\u4e1a<\/strong><\/p>\n\n\n\n<p><strong>\u5173\u952e\u4e1a\u52a1<\/strong><strong>\u5076\u53d1\u8d85\u65f6<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u67d0\u6ce8\u518c\u4e2d\u5fc3\u4e1a\u52a1\u957f\u671f\u5b58\u5728\u4f4e\u9891\u5076\u53d1\u8d85\u65f6\u60c5\u51b5\uff0c\u7ecf\u591a\u6b21\u6392\u67e5\u53d1\u73b0\u5f02\u5e38 reset \u8bf7\u6c42\uff0c\u4f46\u59cb\u7ec8\u65e0\u6cd5\u754c\u5b9a\u5177\u4f53\u6545\u969c\u70b9\u3002\u901a\u8fc7 DeepFlow \u4e0d\u540c\u4f4d\u7f6e\u6d41\u65e5\u5fd7\uff0c\u7ed3\u5408\u65f6\u5e8f\u56fe\u5feb\u901f\u53d1\u73b0\uff0c\u5728\u95ee\u9898\u53d1\u751f\u65f6\u5ba2\u6237\u7aef\u5bb9\u5668\u8282\u70b9\u5904\u5b58\u5728\u4e00\u4e2a\u672a\u7ecf SNAT \u76f4\u63a5\u8bf7\u6c42\u5bf9\u7aef Pod \u7684\u60c5\u51b5\uff0c\u5e76\u4e14 ACK \u00a0\u5e8f\u5217\u53f7\u5b8c\u5168\u76f8\u540c\uff0c\u521d\u6b65\u5224\u65ad\u4e3a\u5bb9\u5668 CNI \u5f02\u5e38 BUG\uff0c\u5ba2\u6237\u7acb\u5373\u901a\u77e5\u4e91\u670d\u52a1\u56e2\u961f\u505a\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>04 | \u67d0\u6c7d\u8f66\u4f01\u4e1a<\/strong><\/p>\n\n\n\n<p><strong>\u4e1a\u52a1<\/strong><strong>\u6d41\u91cf\u6cbb\u7406\u4e0e\u4f18\u5316<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u6210\u7acb\u6d41\u91cf\u6cbb\u7406\u56e2\u961f\uff0c\u901a\u8fc7\u8c03\u7528 DeepFlow \u5e94\u7528 RED \u6307\u6807\uff0c\u5d4c\u5165 DeepFlow \u4e1a\u52a1\u62d3\u6251\u56fe\uff0c\u5229\u7528 DeepFlow \u5f3a\u5927\u7684 AutoTagging \u80fd\u529b\uff0c\u5b9e\u73b0\u4e1a\u52a1 K8s label \u4e2d\u7684\u4e1a\u52a1\u540d\u79f0\u3001\u73af\u5883\u8fc7\u6ee4\u53ca\u5206\u7ec4\uff0c\u5feb\u901f\u5b9e\u73b0\u4e86\u6d41\u91cf\u6cbb\u7406\u5e73\u53f0\uff0c\u4e3a\u4e1a\u52a1\u63d0\u4f9b\u5e94\u7528\u89c6\u89d2\u7684\u89c2\u6d4b\u80fd\u529b\uff0c\u4f18\u5316\u4e1a\u52a1\u67b6\u6784\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>05 | \u67d0\u94f6\u884c<\/strong><\/p>\n\n\n\n<p><strong>\u670d\u52a1\u7aef<\/strong><strong>\u8bbf\u95ee\u5f02\u5e38<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u53cd\u9988\u5361\u4e2d\u5fc3\u4e91\u684c\u9762\u65e0\u6cd5\u8bbf\u95ee\u5bb9\u5668\u5316\u90e8\u7f72\u7684\u6587\u6863\u7cfb\u7edf\uff0c\u901a\u8fc7 DeepFlow \u7f51\u7edc\u6d41\u65e5\u5fd7\u5206\u6790\u53d1\u73b0\u6709\u5927\u91cf\u670d\u52a1\u7aef\u5f02\u5e38\uff08\u4f20\u8f93-\u8d85\u65f6\uff09\u548c\u5ba2\u6237\u7aef\u5f02\u5e38\uff08\u4f20\u8f93-\u5ba2\u6237\u7aef\u91cd\u7f6e\uff09\uff0c\u7ecf\u5224\u65ad\u662f\u7531\u4e8e\u6570\u636e\u4f20\u8f93\u9636\u6bb5\u670d\u52a1\u7aef\u54cd\u5e94\u7684\u6570\u636e\u65e0\u6cd5\u9001\u8fbe\u5ba2\u6237\u7aef\u5bfc\u81f4\uff0c\u5efa\u8bae\u6392\u67e5 ELB \u7684\u914d\u7f6e\uff0c\u5ba2\u6237\u6392\u67e5\u540e\u53d1\u73b0\u95ee\u9898\u6839\u56e0\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>06 | \u67d0\u94f6\u884c<\/strong><\/p>\n\n\n\n<p><strong>\u5076\u53d1\u6570\u636e<\/strong><strong>\u4f20\u8f93\u4e2d\u65ad<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u4fa7 prometheus \u76d1\u63a7\u4e2d\u91c7\u96c6\u5230 node-exporter \u6570\u636e\u5076\u6709\u4e2d\u65ad\uff0c\u901a\u8fc7 DeepFlow \u6307\u6807\u6570\u636e\u3001\u6d41\u65e5\u5fd7\u548c\u5e94\u7528\u65e5\u5fd7\u5206\u6790\uff0c\u5728\u6570\u636e\u4e2d\u65ad\u65f6\u95f4\u70b9 node-exporter \u548c prometheus \u4e4b\u95f4\u7684\u7f51\u7edc\u8fde\u63a5\u5ba2\u6237\u7aef\u7aef\u53e3\u6ca1\u6709\u53d8\u5316\uff0c\u6ca1\u6709\u65ad\u8fde\uff0c\u4ec5\u6570\u636e bps \u6709\u4e0b\u964d\uff0c\u6545\u6392\u9664\u4e86\u7f51\u7edc\u4f20\u8f93\u65b9\u9762\u7684\u95ee\u9898\uff0c\u521d\u6b65\u5224\u65ad\u662f node-exporter \u6ca1\u6709\u91c7\u96c6\u5230\u6570\u636e\u6240\u81f4\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>07 | \u67d0\u94f6\u884c<\/strong><\/p>\n\n\n\n<p><strong>\u538b\u6d4b<\/strong><strong>\u9ad8\u65f6\u5ef6<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u5904\u65b0\u6838\u5fc3\u4e1a\u52a1\u975e\u529f\u80fd\u538b\u6d4b\u5076\u53d1 2s \u9ad8\u65f6\u5ef6\u54cd\u5e94\uff0c\u901a\u8fc7 DeepFlow \u5206\u5e03\u5f0f\u8c03\u7528\u94fe\u8ffd\u8e2a\u7b49\u529f\u80fd\uff0c\u5feb\u901f\u5b9a\u754c\u670d\u52a1\u7aef\u7f51\u5361\u54cd\u5e94\u65f6\u5ef6\u4e3a 2s\uff0c\u670d\u52a1\u7aef\u8fdb\u7a0b\u54cd\u5e94\u65f6\u5ef6\u4e3a 300ms\uff0c\u548c\u4e1a\u52a1\u5f00\u53d1\u5546\u8ba8\u8bba\u540e\u5224\u65ad\u4e3a java netty \u6a21\u5757\u7ebf\u7a0b\u8c03\u5ea6\u5f02\u5e38\uff0c\u589e\u52a0\u7ebf\u7a0b\u8c03\u5ea6\u6570\u91cf\u540e\u7cfb\u7edf\u6062\u590d\u6b63\u5e38\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>08 | \u67d0\u7701\u7535\u4fe1\u8fd0\u8425\u5546<\/strong><\/p>\n\n\n\n<p><strong>\u4e1a\u52a1\u53ef\u89c2\u6d4b\u6027<\/strong><\/p>\n\n\n\n<p>\u4e91\u5e73\u53f0\u8fd0\u7ef4\u56e2\u961f\u5bf9\u4e8e\u4e91\u8d44\u6e90\u7684\u589e\u5220\u6539\u67e5\u7b49\u884c\u4e3a\u5904\u4e8e\u9ed1\u76d2\u72b6\u6001\uff0c\u65e0\u6cd5\u77e5\u6653\u4e1a\u52a1\u65b9\u7684\u4f7f\u7528\u60c5\u51b5\uff0c\u540c\u65f6\u9047\u5230\u64cd\u4f5c\u5931\u8d25\u7b49\u5f02\u5e38\u65f6\u53ea\u80fd\u4ece\u591a\u4e2a\u670d\u52a1\u7684\u6d77\u91cf\u65e5\u5fd7\u4e2d\u8fc7\u6ee4\u6709\u6548\u4fe1\u606f\uff0c\u6548\u7387\u975e\u5e38\u4f4e\u3002\u901a\u8fc7 DeepFlow \u63d0\u4f9b\u7684 WASM \u63d2\u4ef6\u63d0\u53d6 body \u4e2d\u7684 traceid\uff0c\u5b9e\u73b0\u591a\u4e2a\u670d\u52a1\u4e4b\u95f4\u7684\u8c03\u7528\u94fe\u8ffd\u8e2a\uff0c\u89e3\u51b3\u67d0\u6b21\u64cd\u4f5c\u5931\u8d25\u540e\u7684\u5feb\u901f\u5b9a\u4f4d\u9700\u6c42\uff1b\u540c\u65f6\u8fd8\u63d0\u53d6\u4e86 body \u4e2d\u7684\u7528\u6237 ID\uff0c\u5b9e\u73b0\u5bf9\u7528\u6237\u884c\u4e3a\u7684\u76d1\u63a7\u5206\u6790\uff0c\u5982\u7528\u6237\u8bbf\u95ee\u7684 API \u53ca API \u8fd4\u56de\u72b6\u6001\u7b49\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>09 | \u67d0\u91d1\u878d\u79d1\u6280\u516c\u53f8<\/strong><\/p>\n\n\n\n<p><strong>\u6570\u636e\u5e93\u670d\u52a1\u544a\u8b66\u5f02\u5e38<\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u53cd\u9988\u6570\u636e\u5e93\u670d\u52a1\u544a\u8b66\u5f02\u5e38\uff0c\u901a\u8fc7 DeepFlow \u7f51\u7edc\u6d41\u65e5\u5fd7\u53d1\u73b0\u8ba1\u7b97\u8282\u70b9 MySQL \u5230 Ceph \u5b58\u50a8\u5f02\u5e38\uff0cTCP \u65f6\u5e8f\u56fe\u663e\u793a\u5728\u56db\u6b21\u6325\u624b\u9636\u6bb5\u6709\u5f02\u5e38\uff0c\u865a\u62df\u673a\uff08\u6570\u636e\u5e93\uff09\u4e3b\u8282\u70b9\u8fde\u63a5 Ceph osd \u6709\u8d85\u65f6\u7684\u60c5\u51b5\uff0c\u95ee\u9898\u70b9\u57fa\u672c\u9501\u5b9a\u4e3a Ceph \u96c6\u7fa4\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>10 | \u67d0\u7701\u7535\u4fe1\u8fd0\u8425\u5546<\/strong><\/p>\n\n\n\n<p><strong>\u8282\u70b9\u95f4<\/strong><strong>\u65e0\u6cd5\u8bbf\u95ee<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u67d0\u533a\u57df\u201c\u4e2d\u5fc3\u91c7\u63a7\u4e1a\u52a1\u201d\u8282\u70b9\u65e0\u6cd5\u8bbf\u95ee\u201c\u4e2d\u5fc3\u7f13\u5b58\u7ba1\u7406\u670d\u52a1\u201d\u5bfc\u81f4\u4e1a\u52a1\u5f02\u5e38\u3002\u901a\u8fc7 DeepFlow \u6d41\u91cf\u62d3\u6251\u529f\u80fd\u786e\u5b9a\u6545\u969c\u94fe\u8def\u8def\u5f84\uff0c\u5728\u6d41\u65e5\u5fd7\u5206\u6790\u4e2d\u53d1\u73b0\u6570\u636e\u6d41\u5f02\u5e38\u7ec8\u7ed3\uff0c\u5e76\u5728\u65f6\u5e8f\u56fe\u529f\u80fd\u4e2d\u786e\u5b9a TCP-SYN \u8fdb\u884c\u91cd\u4f20\uff0c\u6700\u7ec8\u5b9a\u4f4d\u4e3a\u670d\u52a1\u7aef\u672a\u54cd\u5e94\u6240\u81f4\uff0c\u5206\u949f\u7ea7\u5b9a\u754c\u6781\u5927\u63d0\u5347\u6392\u969c\u534f\u8c03\u6548\u7387\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;&#x2b50;&#xfe0f;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"has-large-font-size\"><strong>11 | \u67d0\u91d1\u878d\u79d1\u6280\u516c\u53f8<\/strong><\/p>\n\n\n\n<p><strong>\u4e1a\u52a1\u5bb9\u5668<\/strong><strong>\u5efa\u8fde\u5931\u8d25<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u5ba2\u6237\u53cd\u9988\u4e1a\u52a1\u5bb9\u5668\u51fa\u73b0\u5efa\u8fde\u5931\u8d25\uff0c\u901a\u8fc7 DeepFlow \u8def\u5f84\u5206\u6790\u529f\u80fd\u5feb\u901f\u5b9a\u4f4d\u5230\u6545\u969c\u7684 pod \u8282\u70b9\uff0c\u4e0b\u94bb\u81f3\u6d41\u65e5\u5fd7\u53d1\u73b0\u6709 4 \u6761\u201c\u5ba2\u6237\u7aef\u5efa\u8fde SYN \u7ed3\u675f\u201d\uff0c\u5206\u949f\u7ea7\u5b9a\u754c\u5efa\u8fde\u5931\u8d25\u6545\u969c\u53ef\u80fd\u4e3a\u670d\u52a1\u7aef\u9632\u706b\u5899\u6216\u7aef\u53e3\u672a\u76d1\u542c\uff0c\u5b9e\u73b0\u5feb\u901f\u5b9a\u4f4d\u6781\u5927\u7f29\u77ed\u4e86\u6392\u969c\u6548\u7387\u3002<\/p>\n\n\n\n<p>\u96be\u5ea6&#x2b50;&#xfe0f;<\/p>\n]]>\t\t","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":5,"featured_media":10736,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,3,7],"tags":[20,69,102],"class_list":["post-10735","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ys-news","category-technology","category-top","tag-deepflow","tag-69","tag-102"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/10735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=10735"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/10735\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/10736"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=10735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=10735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=10735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}