{"id":4505,"date":"2024-04-29T23:17:27","date_gmt":"2024-04-29T15:17:27","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/%e9%9d%a2%e8%af%95\/%e8%9a%82%e8%9a%81%e9%9d%a2%e8%af%95%ef%bc%9aspringcloud%e6%a0%b8%e5%bf%83%e7%bb%84%e4%bb%b6%e7%9a%84%e5%ba%95%e5%b1%82%e5%8e%9f%e7%90%86%ef%bc%8c%e4%bd%a0%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%ef%bc%9f\/"},"modified":"2024-04-29T23:17:27","modified_gmt":"2024-04-29T15:17:27","slug":"%e8%9a%82%e8%9a%81%e9%9d%a2%e8%af%95%ef%bc%9aspringcloud%e6%a0%b8%e5%bf%83%e7%bb%84%e4%bb%b6%e7%9a%84%e5%ba%95%e5%b1%82%e5%8e%9f%e7%90%86%ef%bc%8c%e4%bd%a0%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/%e9%9d%a2%e8%af%95\/%e8%9a%82%e8%9a%81%e9%9d%a2%e8%af%95%ef%bc%9aspringcloud%e6%a0%b8%e5%bf%83%e7%bb%84%e4%bb%b6%e7%9a%84%e5%ba%95%e5%b1%82%e5%8e%9f%e7%90%86%ef%bc%8c%e4%bd%a0%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%ef%bc%9f\/","title":{"rendered":"\u8682\u8681\u9762\u8bd5\uff1aSpringcloud\u6838\u5fc3\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406\uff0c\u4f60\u77e5\u9053\u591a\u5c11\uff1f"},"content":{"rendered":"<div class='wxsyncmain'>\n<fieldset style=\"margin: 0.8em 33.5px 0.3em;color: rgb(62, 62, 62);font-size: 16px;text-wrap: wrap;line-height: 25.6px;border-width: initial;border-style: initial;border-color: currentcolor;text-align: center;background-color: rgb(255, 255, 255);visibility: visible;\" data-mpa-powered-by=\"yiban.io\">\n<section data-brushtype=\"text\" style=\"padding: 10px 1.2em 10px 0.8em;color: rgb(255, 192, 0);line-height: 1.2;font-size: 18px;font-weight: bold;vertical-align: top;display: inline-block;background-color: rgb(0, 0, 0);visibility: visible;\">FSAC\u672a\u6765\u8d85\u7ea7\u67b6\u6784\u5e08<\/section>\n<p style=\"padding: 9px 4px 10px;border-radius: 8px;border-width: 4px;border-style: solid;border-color: rgb(0, 0, 0);color: rgb(0, 0, 0);font-weight: bold;letter-spacing: 3px;font-size: 20px;visibility: visible;\">\u67b6\u6784\u5e08\u603b\u52a8\u5458<span style=\"letter-spacing: normal;font-size: 18px;visibility: visible;\">\u5b9e\u73b0\u67b6\u6784\u8f6c\u578b\uff0c\u518d\u65e0\u4e2d\u5e74\u5371\u673a<\/span><\/p>\n<p style=\"margin-right: auto;margin-left: auto;width: 0px;height: 10px;border-top: 0.6em solid rgb(0, 0, 0);border-bottom-color: rgb(255, 100, 80);visibility: visible;border-right: 0.7em solid transparent !important;border-left: 0.7em solid transparent !important;\">\n<\/fieldset>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"MzkxNzIyMTM1NQ==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/xlgvgPaib7WMRF8xl7G3f8DbazOdeA6STL9f3BBk1D0Hsq3L29NS17lH5kUTgicdSuTpjGI4ulMLiaVof6O1nuKXQ\/0?wx_fmt=png\" data-nickname=\"\u6280\u672f\u81ea\u7531\u5708\" data-alias=\"\" data-signature=\"\u75af\u72c2\u521b\u5ba2\u5708\uff08\u6280\u672f\u81ea\u7531\u67b6\u6784\u5708\uff09\uff1a\u4e00\u4e2a \u6280\u672f\u72c2\u4eba\u3001\u6280\u672f\u5927\u795e\u3001\u9ad8\u6027\u80fd \u53d1\u70e7\u53cb \u5708\u5b50\u3002\u5708\u5185\u4e00\u5927\u6ce2\u9876\u7ea7\u9ad8\u624b\u3001\u67b6\u6784\u5e08\u3001\u53d1\u70e7\u53cb\u5df2\u7ecf\u5b9e\u73b0\u6280\u672f\u81ea\u7531\uff1b\u53e6\u5916\u4e00\u5927\u6ce2\u5377\u738b\uff0c\u6b63\u5728\u72e0\u72e0\u5377\uff0c\u5954\u5411\u6280\u672f\u81ea\u7531\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top: 1px solid rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u5c3c\u6069\u8bf4\u5728\u524d\u9762<\/span><\/h2>\n<p data-sourcepos=\"3:1-3:267\" style=\"margin-bottom: 16px;white-space: normal;font-size: 16px;letter-spacing: normal;text-align: start;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\u572840\u5c81\u8001\u67b6\u6784\u5e08 \u5c3c\u6069\u7684<strong>\u8bfb\u8005\u4ea4\u6d41\u7fa4<\/strong>(50+)\u4e2d\uff0c\u6700\u8fd1\u6709\u5c0f\u4f19\u4f34\u62ff\u5230\u4e86\u4e00\u7ebf\u4e92\u8054\u7f51\u4f01\u4e1a\u5982\u5f97\u7269\u3001\u963f\u91cc\u3001\u6ef4\u6ef4\u3001\u6781\u5154\u3001\u6709\u8d5e\u3001\u5e0c\u97f3\u3001\u767e\u5ea6\u3001\u7f51\u6613\u3001\u7f8e\u56e2\u3001\u8682\u8681\u3001\u5f97\u7269\u7684\u9762\u8bd5\u8d44\u683c\uff0c\u9047\u5230\u5f88\u591a\u5f88\u91cd\u8981\u7684\u76f8\u5173\u9762\u8bd5\u9898\uff1a<\/p>\n<blockquote data-sourcepos=\"5:1-7:62\" style=\"margin-top: 0px;margin-bottom: 16px;padding-top: 0.5em;padding-right: 10px;padding-bottom: 0.5em;border-left-width: 0.25em;border-left-color: rgb(223, 226, 229);color: rgb(106, 115, 125);font-size: 16px;white-space: normal;letter-spacing: normal;text-align: start;background-color: rgb(249, 249, 249);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\n<p data-sourcepos=\"5:3-5:100\" style=\"margin-bottom: 16px;\">\u8bf4\u8bf4\uff1a\u8682\u8681\u9762\u8bd5\uff1aSpringcloud\u6838\u5fc3\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406\uff0c\u4f60\u77e5\u9053\u591a\u5c11\uff1f\u8d8a\u591a\u8d8a\u597d\u3002<\/p>\n<p data-sourcepos=\"7:3-7:62\">\u8bf4\u8bf4\uff1aSpringcloud \u751f\u6001\u7684\u57fa\u7840\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406\uff1f<\/p>\n<\/blockquote>\n<p data-sourcepos=\"9:1-9:97\" style=\"margin-bottom: 16px;white-space: normal;font-size: 16px;letter-spacing: normal;text-align: start;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\"><strong>\u6700\u8fd1\u6709\u5c0f\u4f19\u4f34\u5728\u9762\u8bd5\u8682\u8681\uff0c\u95ee\u5230\u4e86\u76f8\u5173\u7684\u9762\u8bd5\u9898\uff0c\u53ef\u4ee5\u8bf4\u662f\u9022\u9762\u5fc5\u95ee\u3002<\/strong><\/p>\n<p data-sourcepos=\"11:1-11:117\" style=\"margin-bottom: 16px;white-space: normal;font-size: 16px;letter-spacing: normal;text-align: start;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\u5c0f\u4f19\u4f34\u6ca1\u6709\u7cfb\u7edf\u7684\u53bb\u68b3\u7406\u548c\u603b\u7ed3\uff0c\u6240\u4ee5\u652f\u652f\u543e\u543e\u7684\u8bf4\u4e86\u51e0\u53e5\uff0c\u9762\u8bd5\u5b98\u4e0d\u6ee1\u610f\uff0c\u9762\u8bd5\u6302\u4e86\u3002<\/p>\n<p data-sourcepos=\"13:1-13:245\" style=\"margin-bottom: 16px;white-space: normal;font-size: 16px;letter-spacing: normal;text-align: start;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\u6240\u4ee5\uff0c\u5c3c\u6069\u7ed9\u5927\u5bb6\u505a\u4e00\u4e0b\u7cfb\u7edf\u5316\u3001\u4f53\u7cfb\u5316\u7684\u68b3\u7406\uff0c\u4f7f\u5f97\u5927\u5bb6\u5185\u529b\u731b\u589e\uff0c\u53ef\u4ee5\u5145\u5206\u5c55\u793a\u4e00\u4e0b\u5927\u5bb6\u96c4\u539a\u7684 \u201c\u6280\u672f\u808c\u8089\u201d\uff0c<strong>\u8ba9\u9762\u8bd5\u5b98\u7231\u5230 \u201c\u4e0d\u80fd\u81ea\u5df2\u3001\u53e3\u6c34\u76f4\u6d41\u201d<\/strong>\uff0c\u7136\u540e\u5b9e\u73b0\u201doffer\u76f4\u63d0\u201d\u3002<\/p>\n<p data-sourcepos=\"15:1-15:266\" style=\"margin-bottom: 16px;white-space: normal;font-size: 16px;letter-spacing: normal;text-align: start;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\u5f53\u7136\uff0c\u8fd9\u9053\u9762\u8bd5\u9898\uff0c\u4ee5\u53ca\u53c2\u8003\u7b54\u6848\uff0c\u4e5f\u4f1a\u6536\u5165\u54b1\u4eec\u7684 \u300a\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178PDF\u300bV175\u7248\u672c\uff0c\u4f9b\u540e\u9762\u7684\u5c0f\u4f19\u4f34\u53c2\u8003\uff0c\u63d0\u5347\u5927\u5bb6\u7684 3\u9ad8 \u67b6\u6784\u3001\u8bbe\u8ba1\u3001\u5f00\u53d1\u6c34\u5e73\u3002<\/p>\n<blockquote data-sourcepos=\"17:1-17:139\" style=\"margin-top: 0px;margin-bottom: 16px;padding-top: 0.5em;padding-right: 10px;padding-bottom: 0.5em;border-left-width: 0.25em;border-left-color: rgb(223, 226, 229);color: rgb(106, 115, 125);font-size: 16px;white-space: normal;letter-spacing: normal;text-align: start;background-color: rgb(249, 249, 249);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\n<p data-sourcepos=\"17:3-17:139\">\u300a\u5c3c\u6069 \u67b6\u6784\u7b14\u8bb0\u300b\u300a\u5c3c\u6069\u9ad8\u5e76\u53d1\u4e09\u90e8\u66f2\u300b\u300a\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178\u300b\u7684PDF\uff0c\u8bf7\u5230\u6587\u672b\u516c\u53f7\u3010\u6280\u672f\u81ea\u7531\u5708\u3011\u83b7\u53d6<\/p>\n<\/blockquote>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top: 1px solid rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u672c\u6587\u76ee\u5f55<\/span><\/h2>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;letter-spacing: 0.034em;\"><strong style=\"white-space: normal;\"><span style=\"font-size: 14px;\">- \u5c3c\u6069\u8bf4\u5728\u524d\u9762<\/span><\/strong><\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;letter-spacing: 0.44200000166893005px;white-space: normal;\"><span style=\"font-size: 14px;\">-<\/span><\/strong>\u603b\u7ed3: Springcloud\u4f53\u7cfb\u7684\u51e0\u4e2a\u6838\u5fc3\u7ec4\u4ef6<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>Nacos \u6ce8\u518c\u4e2d\u5fc3\u7684\u5e95\u5c42\u539f\u7406<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>AP \u6a21\u5f0f\u7684 Distro \u5206\u5e03\u5f0f\u534f\u8bae<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>CP \u6a21\u5f0f\u7684 Raft \u5206\u5e03\u5f0f\u534f\u8bae<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Raft\u7b97\u6cd5\u9009\u4e3b\u6d41\u7a0b<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">1.\u57fa\u7840\u6982\u5ff5\u4e4b Term \u4efb\u671f<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">2.\u57fa\u7840\u6982\u5ff5\u4e4b Log Entry \u65e5\u5fd7\u6761\u76ee<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">3.\u57fa\u7840\u6982\u5ff5\u4e4b RPC<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Raft \u9009\u4e3e\u6d41\u7a0b\uff08Election\uff09<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u6295\u7968\u9009\u4e3e\u6d41\u7a0b\u56fe\u89e3<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Raft \u65e5\u5fd7\u590d\u5236<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">Leader Append-Only \u539f\u5219<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">Log Matching \u7279\u6027<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u5f3a\u5236\u590d\u5236<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u89e3\u51b3\u51b2\u7a81\u7684\u6027\u80fd\u4f18\u5316<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Nacos \u5982\u4f55\u5b9e\u73b0Raft\u7b97\u6cd5<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u542f\u52a8\u9009\u4e3e<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u9009\u4e3e\u6d41\u7a0b<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u5fc3\u8df3\u673a\u5236<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>sentinel\u9ad8\u53ef\u7528\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>Sentinel\u7194\u65ad\u964d\u7ea7\uff0c\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff1f<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\uff0cSentinel\u4e3b\u8981\u529f\u80fd\uff1a<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u7b2c\u4e8c\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u57fa\u672c\u7ec4\u4ef6\uff1a<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u7b2c\u4e09\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u6d41\u91cf\u6cbb\u7406\u51e0\u4e2a\u6838\u5fc3\u6b65\u9aa4\uff1a<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u7b2c\u56db\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u6e90\u7801\u67b6\u6784\u7ef4\u5ea6\uff1a<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Sentinel \u7684\u6e90\u7801\u5c42\u9762\u7684\u4e24\u4e2a\u6838\u5fc3\u67b6\u6784\uff1a<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>\u6ed1\u52a8\u7a97\u53e3\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>ArrayMetric \u6e90\u7801<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>LeapArray \u6e90\u7801<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>MetricBucket \u6e90\u7801<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>WindowWrap \u6e90\u7801<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>loadbanlancer\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u57fa\u7840\u539f\u7406\uff1a\u8d1f\u8f7d\u5747\u8861\u7684\u7c7b\u578b<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u57fa\u7840\u539f\u7406\uff1a\u5e38\u89c1\u7684\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u968f\u673a\uff08Random\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u8f6e\u8be2\uff08Round Robin\u3001RR\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u52a0\u6743\u8f6e\u8be2\uff08WeightedRound-Robin\u3001WRR\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>SpringCloud \u6574\u5408LoadBalancer \u8d1f\u8f7d\u5747\u8861<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>Ribbon\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">Ribbon\u91cd\u8981\u63a5\u53e3<\/span><\/h5>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">Ribbon\u8d1f\u8f7d\u5747\u8861\u89c4\u5219<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>LoadBalancer \u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>OpenFeign + LoadBalancer\u6240\u9700\u4f9d\u8d56<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>OpenFeign + LoadBalancer\u6240\u9700\u914d\u7f6e<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>OpenFeign + LoadBalancer\u6240\u9700\u6ce8\u89e3<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>OpenFeign + LoadBalancer \u7684\u6f14\u793a<\/strong><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>LoadBalancer\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u5747\u8861\u7b56\u7565<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>LoadBalancer\u57fa\u4e8eNacos\u6743\u91cd\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u7b97\u6cd5<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u901a\u8fc7nacos\u914d\u7f6e \u6743\u91cd<\/span><\/p>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;Helvetica Neue&quot;;\"><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 14px;\">-<\/span>\u57fa\u4e8enacos\u6743\u91cd\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d1f\u8f7d<\/span><\/p>\n<h5 data-sourcepos=\"299:1-299:178\" style=\"letter-spacing: 0.578px;white-space: normal;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;\">  -<\/span><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;;letter-spacing: 0.034em;\">\u914d\u7f6e\u4f7f\u7528\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u5747\u8861\u5668<\/span><\/h5>\n<p style=\"font-stretch: normal;font-size: 13px;font-family: &quot;PingFang SC Semibold&quot;;\"><span style=\"font-stretch: normal;font-family: &quot;PingFang SC&quot;;\"><strong><strong style=\"font-family: &quot;Helvetica Neue&quot;;font-size: 13px;white-space: normal;\"><strong style=\"letter-spacing: 0.44200000166893005px;\"><span style=\"font-size: 14px;\">-<\/span><\/strong><\/strong>\u8bf4\u5728\u6700\u540e\uff1a\u6709\u95ee\u9898\u627e\u8001\u67b6\u6784\u53d6\u7ecf<\/strong><\/span><\/p>\n<h2 data-sourcepos=\"21:1-21:49\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u603b\u7ed3: Springcloud\u4f53\u7cfb\u7684\u51e0\u4e2a\u6838\u5fc3\u7ec4\u4ef6<\/span><\/h2>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018386\" data-ratio=\"0.6592592592592592\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018386\" data-ratio=\"0.6592592592592592\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png\"  \/><\/noscript><\/p>\n<h2 data-sourcepos=\"25:1-25:36\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">Nacos \u6ce8\u518c\u4e2d\u5fc3\u7684\u5e95\u5c42\u539f\u7406<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0eEureka \u3001Zookeeper\u96c6\u7fa4\u4e0d\u540cNacos \u65e2\u80fd\u652f\u6301AP\uff0c\u53c8\u80fd\u652f\u6301 CP\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Nacos \u652f\u6301 CP+AP \u6a21\u5f0f\uff0c\u8fd9\u610f\u5473\u7740 Nacos \u53ef\u4ee5\u6839\u636e\u914d\u7f6e\u8bc6\u522b\u4e3a CP \u6a21\u5f0f\u6216 AP \u6a21\u5f0f\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e3a AP \u6a21\u5f0f\u3002<\/span><\/section>\n<ul data-sourcepos=\"31:1-33:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u6ce8\u518c\u5230Nacos\u7684client\u8282\u70b9\u6ce8\u518c\u65f6ephemeral=true\uff0c\u90a3\u4e48Nacos\u96c6\u7fa4\u5bf9\u8fd9\u4e2aclient\u8282\u70b9\u7684\u6548\u679c\u5c31\u662fAP\uff0c\u91c7\u7528distro\u534f\u8bae\u5b9e\u73b0\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u800c\u6ce8\u518cNacos\u7684client\u8282\u70b9\u6ce8\u518c\u65f6ephemeral=false\uff0c\u90a3\u4e48Nacos\u96c6\u7fa4\u5bf9\u8fd9\u4e2a\u8282\u70b9\u7684\u6548\u679c\u5c31\u662fCP\u7684\uff0c\u91c7\u7528raft\u534f\u8bae\u5b9e\u73b0\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6839\u636eclient\u6ce8\u518c\u65f6\u7684ephemeral\u5c5e\u6027\uff0cAP\uff0cCP\u540c\u65f6\u6df7\u5408\u5b58\u5728\uff0c\u53ea\u662f\u5bf9\u4e0d\u540c\u7684client\u8282\u70b9\u6548\u679c\u4e0d\u540c\u3002\u56e0\u6b64\uff0cNacos \u80fd\u591f\u5f88\u597d\u5730\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247498255&amp;idx=1&amp;sn=05f1faf625d94e17758c0d413df0e329&amp;poc_token=HPn-LmajBKSRh3SM7rpJpti4ySg_tNv7U8DEOYQR&amp;scene=21#wechat_redirect\" style=\"color: rgb(0, 122, 255);text-decoration: underline;font-size: 15px;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" ><span style=\"font-size: 15px;\">\u7f51\u6613\u4e00\u9762\uff1aEureka\u600e\u4e48AP\uff1fNacos\u65e2CP\u53c8AP\uff0c\u600e\u4e48\u5b9e\u73b0\u7684\uff1f<\/span><\/a><\/section>\n<h2 data-sourcepos=\"42:1-42:39\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">AP \u6a21\u5f0f\u7684 Distro \u5206\u5e03\u5f0f\u534f\u8bae<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Distro \u534f\u8bae\u662f Nacos \u81ea\u4e3b\u7814\u53d1\u7684\u4e00\u79cd AP \u5206\u5e03\u5f0f\u534f\u8bae\uff0c\u4e13\u4e3a\u4e34\u65f6\u5b9e\u4f8b\u8bbe\u8ba1\uff0c\u786e\u4fdd\u5728\u90e8\u5206 Nacos \u8282\u70b9\u5b95\u673a\u65f6\uff0c\u6574\u4e2a\u4e34\u65f6\u5b9e\u4f8b\u4ecd\u53ef\u6b63\u5e38\u8fd0\u884c\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f5c\u4e3a\u4e00\u6b3e\u5177\u6709\u72b6\u6001\u7684\u4e2d\u95f4\u4ef6\u5e94\u7528\u7684\u5185\u7f6e\u534f\u8bae\uff0cDistro \u786e\u4fdd\u4e86\u5404 Nacos \u8282\u70b9\u5728\u5904\u7406\u5927\u91cf\u6ce8\u518c\u8bf7\u6c42\u65f6\u7684\u7edf\u4e00\u534f\u8c03\u548c\u5b58\u50a8\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Distro \u534f\u8bae \u4e0eEureka Peer to Peer \u6a21\u5f0f\u540c\u6b65\u8fc7\u7a0b\uff0c \u5927\u81f4\u662f\u7c7b\u4f3c\u7684\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Distro \u534f\u8bae\u7684\u540c\u6b65\u8fc7\u7a0b\uff0c\u5927\u81f4\u5982\u4e0b\uff1a<\/span><\/section>\n<ul data-sourcepos=\"52:1-57:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e2a\u8282\u70b9\u662f\u5e73\u7b49\u7684\u90fd\u53ef\u4ee5\u5904\u7406\u5199\u8bf7\u6c42\uff0c\u540c\u65f6\u5c06\u65b0\u6570\u636e\u540c\u6b65\u81f3\u5176\u4ed6\u8282\u70b9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e2a\u8282\u70b9\u53ea\u8d1f\u8d23\u90e8\u5206\u6570\u636e\uff0c\u5b9a\u65f6\u53d1\u9001\u81ea\u5df1\u8d1f\u8d23\u6570\u636e\u7684\u6821\u9a8c\u503c\uff0c\u5230\u5176\u4ed6\u8282\u70b9\u6765\u4fdd\u6301\u6570\u636e\u2f00\u81f4\u6027\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e2a\u8282\u70b9\u72ec\u7acb\u5904\u7406\u8bfb\u8bf7\u6c42\uff0c\u5e76\u53ca\u65f6\u4ece\u672c\u5730\u53d1\u51fa\u54cd\u5e94\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Distro \u534f\u8bae \u7684\u5177\u4f53\u4ecb\u7ecd\uff0c\u8bf7\u53c2\u89c142\u5c81\u8001\u67b6\u6784\u5e08\u5c3c\u6069\u7684\u6587\u7ae0\uff1a<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247498255&amp;idx=1&amp;sn=05f1faf625d94e17758c0d413df0e329&amp;poc_token=HPn-LmajBKSRh3SM7rpJpti4ySg_tNv7U8DEOYQR&amp;scene=21#wechat_redirect\" style=\"color: rgb(0, 122, 255);text-decoration: underline;font-size: 15px;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" ><span style=\"font-size: 15px;\">\u7f51\u6613\u4e00\u9762\uff1aEureka\u600e\u4e48AP\uff1fNacos\u65e2CP\u53c8AP\uff0c\u600e\u4e48\u5b9e\u73b0\u7684\uff1f<\/span><\/a><\/section>\n<h2 data-sourcepos=\"64:1-64:37\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">CP \u6a21\u5f0f\u7684 Raft \u5206\u5e03\u5f0f\u534f\u8bae<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft \u9002\u7528\u4e8e\u4e00\u4e2a\u7ba1\u7406\u65e5\u5fd7\u4e00\u81f4\u6027\u7684\u534f\u8bae\uff0c\u76f8\u6bd4\u4e8e Paxos \u534f\u8bae\uff0c Raft \u66f4\u6613\u4e8e\u7406\u89e3\u548c\u53bb\u5b9e\u73b0\u5b83\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e3a\u4e86\u63d0\u9ad8\u7406\u89e3\u6027\uff0cRaft \u5c06\u4e00\u81f4\u6027\u7b97\u6cd5\u5206\u4e3a\u4e86\u51e0\u4e2a\u90e8\u5206\uff0c\u5305\u62ec\u9886\u5bfc\u9009\u53d6\uff08leader selection\uff09\u3001\u65e5\u5fd7\u590d\u5236\uff08log replication\uff09\u3001\u5b89\u5168\uff08safety\uff09\uff0c\u5e76\u4e14\u4f7f\u7528\u4e86\u66f4\u5f3a\u7684\u4e00\u81f4\u6027\u6765\u51cf\u5c11\u4e86\u5fc5\u987b\u9700\u8981\u8003\u8651\u7684\u72b6\u6001\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u76f8\u6bd4Paxos\uff0cRaft\u7b97\u6cd5\u7406\u89e3\u8d77\u6765\u66f4\u52a0\u76f4\u89c2\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u7b97\u6cd5\u5c06Server node\u5212\u5206\u4e3a3\u79cd\u72b6\u6001\uff0c\u6216\u8005\u4e5f\u53ef\u4ee5\u79f0\u4f5c\u89d2\u8272\uff1a<\/span><\/section>\n<ul data-sourcepos=\"76:1-81:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Leader<\/strong>\uff1a\u8d1f\u8d23Client\u4ea4\u4e92\u548clog\u590d\u5236\uff0c\u540c\u4e00\u65f6\u523b\u7cfb\u7edf\u4e2d\u6700\u591a\u5b58\u57281\u4e2a\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Follower<\/strong>\uff1a\u88ab\u52a8\u54cd\u5e94\u8bf7\u6c42RPC\uff0c\u4ece\u4e0d\u4e3b\u52a8\u53d1\u8d77\u8bf7\u6c42RPC\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Candidate<\/strong>\uff1a\u4e00\u79cd\u4e34\u65f6\u7684\u89d2\u8272\uff0c\u53ea\u5b58\u5728\u4e8eleader\u7684\u9009\u4e3e\u9636\u6bb5\uff0c\u67d0\u4e2a\u8282\u70b9\u60f3\u8981\u53d8\u6210leader\uff0c\u90a3\u4e48\u5c31\u53d1\u8d77\u6295\u7968\u8bf7\u6c42\uff0c\u540c\u65f6\u81ea\u5df1\u53d8\u6210candidate\u3002\u5982\u679c\u9009\u4e3e\u6210\u529f\uff0c\u5219\u53d8\u4e3acandidate\uff0c\u5426\u5219\u9000\u56de\u4e3afollower<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft \u5206\u5e03\u5f0f\u534f\u8bae\u4e2dnode \u72b6\u6001\u6216\u8005\u8bf4\u89d2\u8272\u7684\u6d41\u8f6c\u5982\u4e0b\uff1a<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018374\" data-ratio=\"0.36018518518518516\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165005891.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018374\" data-ratio=\"0.36018518518518516\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165005891.webp\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Raft\u4e2d\uff0c\u95ee\u9898\u88ab\u5206\u89e3\u4e3a\uff1a<\/span><\/section>\n<ul data-sourcepos=\"90:1-93:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u9009\u4e3e<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65e5\u5fd7\u590d\u5236<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b89\u5168\u548c\u6210\u5458\u53d8\u5316\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6570\u636e\u4e00\u81f4\u6027\u901a\u8fc7\u590d\u5236\u65e5\u5fd7\u6765\u5b9e\u73b0\uff1a\uff1a<\/span><\/section>\n<ul data-sourcepos=\"96:1-101:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"margin-top: 16px;margin-bottom: 16px;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65e5\u5fd7\uff1a\u6bcf\u53f0\u673a\u5668\u90fd\u4fdd\u5b58\u4e00\u4efd\u65e5\u5fd7\uff0c\u65e5\u5fd7\u6765\u6e90\u4e8e\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0c\u5305\u542b\u4e00\u7cfb\u5217\u7684\u547d\u4ee4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"margin-top: 16px;margin-bottom: 16px;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u72b6\u6001\u673a\uff1a\u72b6\u6001\u673a\u4f1a\u6309\u987a\u5e8f\u6267\u884c\u8fd9\u4e9b\u547d\u4ee4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"margin-top: 16px;margin-bottom: 16px;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u81f4\u6027\u6a21\u578b\uff1a\u5728\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\uff0c\u786e\u4fdd\u591a\u53f0\u673a\u5668\u7684\u65e5\u5fd7\u4fdd\u6301\u4e00\u81f4\uff0c\u4ece\u800c\u4f7f\u72b6\u6001\u673a\u56de\u653e\u65f6\u7684\u72b6\u6001\u4fdd\u6301\u4e00\u81f4\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<h3 data-sourcepos=\"102:1-102:26\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Raft\u7b97\u6cd5\u9009\u4e3b\u6d41\u7a0b<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u628a\u96c6\u7fa4\u4e2d\u7684\u8282\u70b9\u5206\u4e3a\u4e09\u79cd\u72b6\u6001\uff1aLeader\u3001 Follower \u3001Candidate\uff0c\u6bcf\u79cd\u72b6\u6001\u4e0b\u8d1f\u8d23\u7684\u4efb\u52a1\u4e5f\u662f\u4e0d\u4e00\u6837\u7684\uff0cRaft\u8fd0\u884c\u65f6\u53ea\u5b58\u5728Leader\u4e0eFollower\u4e24\u79cd\u72b6\u6001\u3002<\/span><\/section>\n<ul data-sourcepos=\"108:1-111:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Leader\uff1a\u8d1f\u8d23\u65e5\u5fd7\u7684\u540c\u6b65\u7ba1\u7406\uff0c\u5904\u7406\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0c\u4e0eFollower\u4fdd\u6301heartBeat\u7684\u8054\u7cfb\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Follower\uff1a\u521a\u542f\u52a8\u65f6\u6240\u6709\u8282\u70b9\u4e3aFollower\u72b6\u6001\u3002\u54cd\u5e94Candidate\u7684\u8bf7\u6c42\uff0c\u9009\u4e3e\u5b8c\u6210\u540e\u5b83\u7684\u8d23\u4efb\u662f\u54cd\u5e94Leader\u7684\u65e5\u5fd7\u540c\u6b65\u8bf7\u6c42\uff0c\u628a\u8bf7\u6c42\u5230Follower\u7684\u4e8b\u52a1\u8f6c\u53d1\u7ed9Leader\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Candidate\uff1a\u8d1f\u8d23\u9009\u4e3e\u6295\u7968\uff0c\u4e00\u8f6e\u9009\u4e3e\u5f00\u59cb\u65f6\u8282\u70b9\u4eceFollower\u8f6c\u4e3aCandidate\u53d1\u8d77\u9009\u4e3e\uff0c\u9009\u4e3e\u51faLeader\u540e\u4eceCandidate\u8f6c\u4e3aLeader\u72b6\u6001\uff1b<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u4e2d\u4f7f\u7528\u5fc3\u8df3\u673a\u5236\u6765\u51fa\u53d1leader\u9009\u4e3e\u3002\u5f53\u670d\u52a1\u5668\u542f\u52a8\u7684\u65f6\u5019\uff0c\u670d\u52a1\u5668\u6210\u4e3afollower\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53ea\u8981follower\u4eceleader\u6216\u8005candidate\u6536\u5230\u6709\u6548\u7684RPCs\u5c31\u4f1a\u4fdd\u6301follower\u72b6\u6001\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679cfollower\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\uff08\u8be5\u6bb5\u65f6\u95f4\u88ab\u79f0\u4e3aelection timeout\uff09\u6ca1\u6709\u6536\u5230\u6d88\u606f\uff0c\u5219\u5b83\u4f1a\u5047\u8bbe\u5f53\u524d\u6ca1\u6709\u53ef\u7528\u7684leader\uff0c\u7136\u540e\u5f00\u542f\u9009\u4e3e\u65b0leader\u7684\u6d41\u7a0b\u3002<\/span><\/section>\n<h4 data-sourcepos=\"118:1-118:34\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">1.\u57fa\u7840\u6982\u5ff5\u4e4b Term \u4efb\u671f<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Term\u4efb\u671f\u7684\u6982\u5ff5\u7c7b\u6bd4\u4e2d\u56fd\u5386\u53f2\u4e0a\u7684\u671d\u4ee3\u66f4\u66ff\uff0cRaft \u7b97\u6cd5\u5c06\u65f6\u95f4\u5212\u5206\u6210\u4e3a\u4efb\u610f\u4e0d\u540c\u957f\u5ea6\u7684\u4efb\u671f\uff08term\uff09\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65f6\u95f4\u5212\u5206\u4e3a\u4e0d\u540c\u7684Term\uff08\u4efb\u671f\uff09\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Term\uff08\u4efb\u671f\uff09\u7528\u8fde\u7eed\u7684\u6570\u5b57\u8fdb\u884c\u8868\u793a\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u4e2aTerm\u5305\u62ec\u4e24\u4e2a\u9636\u6bb5\uff1a<\/span><\/section>\n<ul data-sourcepos=\"128:1-131:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"margin-top: 16px;margin-bottom: 16px;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9009\u4e3e\u9636\u6bb5<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"margin-top: 16px;margin-bottom: 16px;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6b63\u5e38\u9636\u6bb5\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e2a\u670d\u52a1\u5668\u90fd\u4f1a\u4fdd\u5b58\u5f53\u524d\u7684\u4efb\u671fCurrent Term\u3002\u7528\u4e8e\u53d1\u9001\u548c\u63a5\u53d7RPC\u6d88\u606f\u65f6\u9a8c\u8bc1\u6bd4\u8f83\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4e00\u4e2a\u5019\u9009\u4eba\u8d62\u5f97\u9009\u4e3e\uff0c\u5b83\u5c06\u5728\u8be5\u4efb\u671f\u7684\u5269\u4f59\u65f6\u95f4\u5185\u62c5\u4efb\u9886\u5bfc\u8005\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u9009\u7968\u53ef\u80fd\u4f1a\u88ab\u5e73\u5206\uff0c\u5bfc\u81f4\u6ca1\u6709\u9009\u51fa\u9886\u5bfc\u8005\uff0c\u6b64\u65f6\u5c06\u5f00\u59cb\u65b0\u7684\u4efb\u671f\u5e76\u7acb\u5373\u8fdb\u884c\u4e0b\u4e00\u6b21\u9009\u4e3e\u3002Raft \u7b97\u6cd5\u786e\u4fdd\u5728\u7ed9\u5b9a\u7684\u4efb\u671f\u4e2d\u53ea\u6709\u4e00\u4e2a\u9886\u5bfc\u8005\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u6b21\u5bfc\u81f4\u65b0\u7684\u9009\u4e3e\u53d1\u751f\uff0cTerm\u5c31\u4f1a\u6539\u53d8+1\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u6b21Term\u7684\u9012\u589e\u90fd\u5c06\u53d1\u751f\u65b0\u4e00\u8f6e\u7684\u9009\u4e3e\uff0cRaft\u4fdd\u8bc1\u4e00\u4e2aTerm\u53ea\u6709\u4e00\u4e2aLeader\uff0c\u5728Raft\u6b63\u5e38\u8fd0\u8f6c\u4e2d\u6240\u6709\u7684\u8282\u70b9\u7684Term\u90fd\u662f\u4e00\u81f4\u7684\uff0c\u5982\u679c\u8282\u70b9\u4e0d\u53d1\u751f\u6545\u969c\u4e00\u4e2aTerm\uff08\u4efb\u671f\uff09\u4f1a\u4e00\u76f4\u4fdd\u6301\u4e0b\u53bb\uff0c\u5f53\u67d0\u8282\u70b9\u6536\u5230\u7684\u8bf7\u6c42\u4e2dTerm\u6bd4\u5f53\u524dTerm\u5c0f\u65f6\u5219\u62d2\u7edd\u8be5\u8bf7\u6c42\uff1b<\/span><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018377\" data-ratio=\"0.3867457962413452\"  data-type=\"png\" data-w=\"1011\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165006730.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018377\" data-ratio=\"0.3867457962413452\"  data-type=\"png\" data-w=\"1011\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165006730.png\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e00\u4e2a\u4efb\u671f\u7684\u5f00\u59cb\u90fd\u662f\u4e00\u6b21\u9009\u4e3e\uff08election\uff09\uff0c\u4e00\u4e2a\u6216\u591a\u4e2a\u5019\u9009\u4eba\u5c1d\u8bd5\u6210\u4e3a\u9886\u5bfc\u8005\u3002<\/span><\/section>\n<h4 data-sourcepos=\"151:1-151:45\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">2.\u57fa\u7840\u6982\u5ff5\u4e4b Log Entry \u65e5\u5fd7\u6761\u76ee<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e00\u4e2aclient\u64cd\u4f5c\uff0c\u5bf9\u4e8eLeader\u6765\u8bf4\uff0c\u90fd\u662f\u589e\u52a0\u4e00\u4e2aLog Entry\uff0c\u7136\u540e\u590d\u5236\u540c\u6b65\u5230\u5176\u4ed6\u7684Server\u3002\u5305\u62ec\u4ee5\u4e0b\u6570\u636e\uff1a<\/span><\/section>\n<ul data-sourcepos=\"155:1-160:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">term Leader\u6536\u5230log\u65f6\u7684term<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">index log\u4e0b\u6807\u3002log\u5b58\u50a8\u7ed3\u6784\u662f\u4e00\u4e2aList<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">command \u64cd\u4f5c\u6307\u4ee4<\/span><\/section>\n<\/li>\n<\/ul>\n<h4 data-sourcepos=\"161:1-161:26\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">3.\u57fa\u7840\u6982\u5ff5\u4e4b RPC<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft \u7b97\u6cd5\u4e2d\u670d\u52a1\u5668\u8282\u70b9\u4e4b\u95f4\u901a\u4fe1\u4f7f\u7528\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff08RPCs\uff09\uff0c\u5e76\u4e14\u57fa\u672c\u7684\u4e00\u81f4\u6027\u7b97\u6cd5\u53ea\u9700\u8981\u4e24\u79cd\u7c7b\u578b\u7684 RPCs\uff0c\u4e3a\u4e86\u5728\u670d\u52a1\u5668\u4e4b\u95f4\u4f20\u8f93\u5feb\u7167\u589e\u52a0\u4e86\u7b2c\u4e09\u79cd RPC\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">RPC\u6709\u4e09\u79cd\uff1a<\/span><\/section>\n<ul data-sourcepos=\"167:1-174:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>RequestVote RPC<\/strong>\uff1a\u5019\u9009\u4eba\u5728\u9009\u4e3e\u671f\u95f4\u53d1\u8d77<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>AppendEntries RPC<\/strong>\uff1a\u9886\u5bfc\u4eba\u53d1\u8d77\u7684\u4e00\u79cd\u5fc3\u8df3\u673a\u5236\uff0c\u590d\u5236\u65e5\u5fd7\u4e5f\u5728\u8be5\u547d\u4ee4\u4e2d\u5b8c\u6210<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>InstallSnapshot RPC<\/strong>\uff1a\u9886\u5bfc\u8005\u4f7f\u7528\u8be5RPC\u6765\u53d1\u9001\u5feb\u7167\u7ed9\u592a\u843d\u540e\u7684\u8ffd\u968f\u8005<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">RequestVote RPC\uff08RequestVote \u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff09\u901a\u5e38\u7528\u4e8e\u9009\u4e3e\u9886\u5bfc\u8005\u6216\u8005\u4e3b\u8282\u70b9\u3002\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u8282\u70b9\u4e4b\u95f4\u9700\u8981\u8fdb\u884c\u9009\u4e3e\u4ee5\u786e\u5b9a\u9886\u5bfc\u8005\uff0c\u800c RequestVote RPC \u5c31\u662f\u7528\u6765\u5b9e\u73b0\u9009\u4e3e\u8fc7\u7a0b\u7684\u901a\u4fe1\u673a\u5236\u4e4b\u4e00\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">RequestVote RPC \u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/span><\/section>\n<ol data-sourcepos=\"179:1-183:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8282\u70b9\u53d1\u9001 RequestVote \u8bf7\u6c42\u7ed9\u5176\u4ed6\u8282\u70b9\uff0c\u8bf7\u6c42\u5b83\u4eec\u6295\u7968\u652f\u6301\u81ea\u5df1\u6210\u4e3a\u9886\u5bfc\u8005\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u4ed6\u8282\u70b9\u6536\u5230\u8bf7\u6c42\u540e\uff0c\u4f1a\u6839\u636e\u81ea\u5df1\u7684\u9009\u4e3e\u7b97\u6cd5\u5224\u65ad\u662f\u5426\u7ed9\u4e88\u652f\u6301\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5176\u4ed6\u8282\u70b9\u8ba4\u4e3a\u8be5\u8282\u70b9\u53ef\u4ee5\u6210\u4e3a\u9886\u5bfc\u8005\uff0c\u5c31\u4f1a\u5411\u5176\u53d1\u9001\u6295\u7968\uff0c\u5e76\u66f4\u65b0\u81ea\u5df1\u7684\u72b6\u6001\u4ee5\u53cd\u6620\u6295\u7968\u7ed3\u679c\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bf7\u6c42\u8282\u70b9\u6536\u5230\u8db3\u591f\u591a\u7684\u6295\u7968\u540e\uff0c\u5c31\u53ef\u4ee5\u6210\u4e3a\u9886\u5bfc\u8005\uff0c\u5e76\u5f00\u59cb\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">RequestVote RPC \u7684\u5185\u5bb9\u901a\u5e38\u5305\u62ec\uff1a<\/span><\/section>\n<ul data-sourcepos=\"186:1-190:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bf7\u6c42\u8282\u70b9\u7684ID\uff1a\u7528\u4e8e\u6807\u8bc6\u8bf7\u6c42\u7684\u53d1\u8d77\u8005\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bf7\u6c42\u7684\u4efb\u671f\u53f7\uff1a\u7528\u4e8e\u786e\u4fdd\u53ea\u6709\u6700\u65b0\u7684\u9886\u5bfc\u8005\u624d\u80fd\u83b7\u5f97\u5176\u4ed6\u8282\u70b9\u7684\u6295\u7968\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5019\u9009\u4eba\u7684\u6700\u540e\u65e5\u5fd7\u6761\u76ee\u7684\u7d22\u5f15\u548c\u4efb\u671f\u53f7\uff1a\u7528\u4e8e\u5176\u4ed6\u8282\u70b9\u5224\u65ad\u5019\u9009\u4eba\u7684\u65e5\u5fd7\u662f\u5426\u6bd4\u81ea\u5df1\u7684\u65e5\u5fd7\u66f4\u65b0\uff0c\u4ece\u800c\u51b3\u5b9a\u662f\u5426\u7ed9\u4e88\u6295\u7968\u652f\u6301\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6295\u7968\u7ed3\u679c\uff1a\u8868\u793a\u5176\u4ed6\u8282\u70b9\u662f\u5426\u6295\u7968\u652f\u6301\u5019\u9009\u4eba\u6210\u4e3a\u9886\u5bfc\u8005\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u901a\u8fc7 RequestVote RPC\uff0c\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u8282\u70b9\u53ef\u4ee5\u8fdb\u884c\u9009\u4e3e\uff0c\u786e\u4fdd\u7cfb\u7edf\u5728\u6ca1\u6709\u9886\u5bfc\u8005\u65f6\u80fd\u591f\u5feb\u901f\u9009\u4e3e\u51fa\u65b0\u7684\u9886\u5bfc\u8005\uff0c\u4ece\u800c\u4fdd\u8bc1\u7cfb\u7edf\u7684\u6b63\u5e38\u8fd0\u884c\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018387\" data-ratio=\"0.44074074074074077\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165008361.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018387\" data-ratio=\"0.44074074074074077\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165008361.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">AppendEntries RPC\uff08AppendEntries \u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff09\u901a\u5e38\u7528\u4e8e\u9886\u5bfc\u8005\u8282\u70b9\u5411\u5176\u4ed6\u8282\u70b9\u53d1\u9001\u65e5\u5fd7\u6761\u76ee\uff0c\u4ee5\u5b9e\u73b0\u65e5\u5fd7\u590d\u5236\u3002\u8fd9\u4e2a\u5c5e\u4e8e\u65e5\u5fd7\u589e\u91cf\u590d\u5236\u7684\u7c7b\u578b\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u8282\u70b9\u8d1f\u8d23\u5c06\u81ea\u5df1\u7684\u65e5\u5fd7\u590d\u5236\u7ed9\u5176\u4ed6\u8282\u70b9\uff0c\u4ee5\u786e\u4fdd\u7cfb\u7edf\u4e2d\u7684\u6240\u6709\u8282\u70b9\u90fd\u62e5\u6709\u76f8\u540c\u7684\u65e5\u5fd7\u526f\u672c\uff0c\u4ece\u800c\u4fdd\u6301\u6570\u636e\u4e00\u81f4\u6027\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">AppendEntries RPC \u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/span><\/section>\n<ol data-sourcepos=\"205:1-209:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u8282\u70b9\u5c06\u81ea\u5df1\u7684\u65e5\u5fd7\u6761\u76ee\u4ee5 AppendEntries \u8bf7\u6c42\u7684\u5f62\u5f0f\u53d1\u9001\u7ed9\u5176\u4ed6\u8282\u70b9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u4ed6\u8282\u70b9\u6536\u5230\u8bf7\u6c42\u540e\uff0c\u4f1a\u6839\u636e\u9886\u5bfc\u8005\u7684\u65e5\u5fd7\u6761\u76ee\u4fe1\u606f\u8fdb\u884c\u5904\u7406\uff0c\u5c06\u65e5\u5fd7\u6761\u76ee\u8ffd\u52a0\u5230\u81ea\u5df1\u7684\u65e5\u5fd7\u4e2d\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5176\u4ed6\u8282\u70b9\u7684\u65e5\u5fd7\u4e2d\u5b58\u5728\u4e0e\u9886\u5bfc\u8005\u53d1\u9001\u7684\u65e5\u5fd7\u51b2\u7a81\u7684\u6761\u76ee\uff0c\u8282\u70b9\u4f1a\u6839\u636e\u4e00\u5b9a\u7684\u89c4\u5219\u8fdb\u884c\u65e5\u5fd7\u7684\u6bd4\u8f83\u548c\u51b2\u7a81\u89e3\u51b3\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5904\u7406\u5b8c\u8bf7\u6c42\u540e\uff0c\u5176\u4ed6\u8282\u70b9\u4f1a\u5411\u9886\u5bfc\u8005\u53d1\u9001\u54cd\u5e94\uff0c\u8868\u793a\u662f\u5426\u6210\u529f\u8ffd\u52a0\u65e5\u5fd7\u6761\u76ee\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">AppendEntries RPC \u7684\u5185\u5bb9\u901a\u5e38\u5305\u62ec\uff1a<\/span><\/section>\n<ul data-sourcepos=\"212:1-216:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684ID\uff1a\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u8bf7\u6c42\u7684\u8282\u70b9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684\u4efb\u671f\u53f7\uff1a\u7528\u4e8e\u786e\u4fdd\u5176\u4ed6\u8282\u70b9\u53ea\u63a5\u53d7\u6765\u81ea\u6700\u65b0\u9886\u5bfc\u8005\u7684\u65e5\u5fd7\u590d\u5236\u8bf7\u6c42\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684\u65e5\u5fd7\u6761\u76ee\uff1a\u5305\u62ec\u65e5\u5fd7\u6761\u76ee\u7684\u7d22\u5f15\u3001\u4efb\u671f\u53f7\u4ee5\u53ca\u5177\u4f53\u7684\u65e5\u5fd7\u5185\u5bb9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684\u524d\u4e00\u6761\u65e5\u5fd7\u6761\u76ee\u7684\u7d22\u5f15\u548c\u4efb\u671f\u53f7\uff1a\u7528\u4e8e\u5176\u4ed6\u8282\u70b9\u5728\u8ffd\u52a0\u65e5\u5fd7\u6761\u76ee\u65f6\u8fdb\u884c\u4e00\u81f4\u6027\u68c0\u67e5\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u901a\u8fc7 AppendEntries RPC\uff0c\u9886\u5bfc\u8005\u8282\u70b9\u53ef\u4ee5\u5411\u5176\u4ed6\u8282\u70b9\u53d1\u9001\u65e5\u5fd7\u6761\u76ee\uff0c\u5b9e\u73b0\u65e5\u5fd7\u7684\u590d\u5236\u548c\u4e00\u81f4\u6027\u7ef4\u62a4\uff0c\u4ece\u800c\u786e\u4fdd\u6574\u4e2a\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u6570\u636e\u4e00\u81f4\u6027\u548c\u6b63\u786e\u6027\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">InstallSnapshot RPC\uff08\u5b89\u88c5\u5feb\u7167\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff09\u662f\u7528\u4e8e\u5728Raft\u4e00\u81f4\u6027\u7b97\u6cd5\u4e2d\u8fdb\u884c\u65e5\u5fd7\u590d\u5236\u7684\u4e00\u79cd\u901a\u4fe1\u534f\u8bae\uff0c\u5c5e\u4e8e\u65e5\u5fd7\u7684\u5168\u91cf\u590d\u5236\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Raft\u4e2d\uff0c\u5f53\u9886\u5bfc\u8005\u8282\u70b9\u53d1\u73b0\u8ddf\u968f\u8005\u8282\u70b9\u7684\u65e5\u5fd7\u592a\u8fc7\u5e9e\u5927\uff0c\u6216\u8005\u8ddf\u968f\u8005\u8282\u70b9\u521a\u521a\u52a0\u5165\u96c6\u7fa4\u65f6\uff0c\u4f1a\u901a\u8fc7InstallSnapshot RPC\u6765\u5feb\u901f\u590d\u5236\u65e5\u5fd7\u72b6\u6001\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">InstallSnapshot RPC \u7684\u57fa\u672c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/span><\/section>\n<ol data-sourcepos=\"227:1-231:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u8282\u70b9\u68c0\u6d4b\u5230\u67d0\u4e2a\u8ddf\u968f\u8005\u8282\u70b9\u7684\u65e5\u5fd7\u592a\u8fc7\u5e9e\u5927\uff0c\u6216\u8005\u8be5\u8282\u70b9\u521a\u521a\u52a0\u5165\u96c6\u7fa4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u8282\u70b9\u5c06\u5f53\u524d\u7684\u7cfb\u7edf\u72b6\u6001\uff08\u5feb\u7167\uff09\u6253\u5305\uff0c\u5e76\u901a\u8fc7InstallSnapshot RPC\u5c06\u8be5\u5feb\u7167\u53d1\u9001\u7ed9\u8ddf\u968f\u8005\u8282\u70b9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8ddf\u968f\u8005\u8282\u70b9\u63a5\u6536\u5230\u9886\u5bfc\u8005\u53d1\u9001\u7684\u5feb\u7167\u540e\uff0c\u5c06\u5176\u5e94\u7528\u5230\u81ea\u5df1\u7684\u72b6\u6001\u673a\u4e2d\uff0c\u4f7f\u5f97\u81ea\u5df1\u7684\u72b6\u6001\u4e0e\u9886\u5bfc\u8005\u8282\u70b9\u7684\u72b6\u6001\u4e00\u81f4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8ddf\u968f\u8005\u8282\u70b9\u540c\u65f6\u63a5\u6536\u5230\u5feb\u7167\u7684\u5143\u6570\u636e\uff08\u5982\u5feb\u7167\u7684\u6700\u540e\u4e00\u4e2a\u5305\u542b\u7684\u65e5\u5fd7\u7d22\u5f15\u548c\u4efb\u671f\u53f7\u7b49\uff09\uff0c\u5e76\u6839\u636e\u8fd9\u4e9b\u5143\u6570\u636e\u66f4\u65b0\u81ea\u5df1\u7684\u65e5\u5fd7\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">InstallSnapshot RPC \u7684\u5185\u5bb9\u901a\u5e38\u5305\u62ec\uff1a<\/span><\/section>\n<ul data-sourcepos=\"234:1-238:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684ID\uff1a\u7528\u4e8e\u6807\u8bc6\u53d1\u9001\u8bf7\u6c42\u7684\u8282\u70b9\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9886\u5bfc\u8005\u7684\u4efb\u671f\u53f7\uff1a\u7528\u4e8e\u786e\u4fdd\u5176\u4ed6\u8282\u70b9\u53ea\u63a5\u53d7\u6765\u81ea\u6700\u65b0\u9886\u5bfc\u8005\u7684\u5feb\u7167\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5feb\u7167\u6570\u636e\uff1a\u5305\u62ec\u5f53\u524d\u7cfb\u7edf\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u5982\u5b58\u50a8\u7684\u6570\u636e\u3001\u7d22\u5f15\u7b49\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5feb\u7167\u5143\u6570\u636e\uff1a\u5305\u62ec\u5feb\u7167\u7684\u6700\u540e\u4e00\u4e2a\u5305\u542b\u7684\u65e5\u5fd7\u7d22\u5f15\u548c\u4efb\u671f\u53f7\u7b49\u4fe1\u606f\uff0c\u7528\u4e8e\u66f4\u65b0\u8ddf\u968f\u8005\u8282\u70b9\u7684\u65e5\u5fd7\u72b6\u6001\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u901a\u8fc7InstallSnapshot RPC\uff0cRaft\u7b97\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u5728\u8282\u70b9\u4e4b\u95f4\u5feb\u901f\u590d\u5236\u5927\u89c4\u6a21\u7684\u7cfb\u7edf\u72b6\u6001\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u6548\u7387\u548c\u6027\u80fd\u3002<\/span><\/section>\n<h3 data-sourcepos=\"241:1-241:35\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Raft \u9009\u4e3e\u6d41\u7a0b\uff08Election\uff09<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u4e24\u79cd\u60c5\u51b5\u4f1a\u53d1\u8d77\u9009\u4e3e<\/span><\/section>\n<ul data-sourcepos=\"245:1-247:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u521d\u6b21\u542f\u52a8\uff0c\u4e0d\u5b58\u5728Leader\uff0c\u53d1\u8d77\u9009\u4e3e\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Leader\u5b95\u673a\u6216Follower\u6ca1\u6709\u63a5\u6536\u5230Leader\u7684heartBeat\uff0c\u53d1\u751felection timeout\u4ece\u800c\u53d1\u8d77\u9009\u4e3e\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u521d\u59cb\u72b6\u6001\u65f6\u6240\u6709\u8282\u70b9\u90fd\u5904\u4e8eFollower\u72b6\u6001\uff0c\u5e76\u4e14\u968f\u673a\u7761\u7720\u4e00\u6bb5\u65f6\u95f4\uff0c\u8fd9\u4e2a\u65f6\u95f4\u57280~1000ms\u4e4b\u95f4\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6700\u5148\u9192\u6765\u7684\u8282\u70b9 \u8fdb\u5165Candidate\u72b6\u6001\uff0c\u5e76\u4e14\u53d1\u8d77\u6295\u7968\uff0c\u5373\u5411\u5176\u5b83\u6240\u6709\u8282\u70b9\u53d1\u51farequst_vote\u8bf7\u6c42\uff0c\u540c\u65f6\u6295\u81ea\u5df1\u4e00\u7968\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u6709\u4e09\u79cd\u7ed3\u679c\uff1a<\/span><\/section>\n<ol data-sourcepos=\"252:1-255:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u81ea\u5df1\u88ab\u9009\u6210\u4e86\u4e3b\u3002\u5f53\u6536\u5230\u4e86\u5927\u591a\u6570\u7684\u6295\u7968\u540e\uff0c\u72b6\u6001\u5207\u6210leader\uff0c\u5e76\u4e14\u5b9a\u671f\u7ed9\u5176\u5b83\u7684\u6240\u6709server\u53d1\u5fc3\u8df3\u6d88\u606f(\u5176\u5b9e\u662f\u4e0d\u5e26log\u7684AppendEntriesRPC)\u4ee5\u544a\u8bc9\u5bf9\u65b9\u81ea\u5df1\u662fcurrent_term_id\u6240\u6807\u8bc6\u7684term\u7684leader\u3002\u6bcf\u4e2aterm\u6700\u591a\u53ea\u6709\u4e00\u4e2aleader\uff0cterm id\u4f5c\u4e3alogical clock\uff0c\u5728\u6bcf\u4e2aRPC\u6d88\u606f\u4e2d\u90fd\u4f1a\u5e26\u4e0a\uff0c\u7528\u4e8e\u68c0\u6d4b\u8fc7\u671f\u7684\u6d88\u606f\uff0c\u4e00\u4e2aserver\u6536\u5230\u7684RPC\u6d88\u606f\u4e2d\u7684rpc_term_id\u6bd4\u672c\u5730\u7684current_term_id\u66f4\u5927\u65f6\uff0c\u5c31\u66f4\u65b0current_term_id\u4e3arpc_term_id\uff0c\u5e76\u4e14\u5982\u679c\u5f53\u524dstate\u4e3aleader\u6216\u8005candidate\u65f6\uff0c\u5c06\u81ea\u5df1\u7684\u72b6\u6001\u5207\u6210follower\u3002\u5982\u679crpc_term_id\u6bd4\u672c\u5730\u7684current_term_id\u66f4\u5c0f\uff0c\u5219\u62d2\u7edd\u8fd9\u4e2aRPC\u6d88\u606f\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u522b\u4eba\u6210\u4e3a\u4e86\u4e3b\u3002\u59821\u6240\u8ff0\uff0c\u5f53candidate\u5728\u7b49\u5f85\u6295\u7968\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6536\u5230\u4e86\u5927\u4e8e\u6216\u8005\u7b49\u4e8e\u672c\u5730\u7684current_term_id\u7684\u58f0\u660e\u5bf9\u65b9\u662fleader\u7684AppendEntriesRPC\u65f6\uff0c\u5219\u5c06\u81ea\u5df1\u7684state\u5207\u6210follower\uff0c\u5e76\u4e14\u66f4\u65b0\u672c\u5730\u7684current_term_id\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ca1\u6709\u9009\u51fa\u4e3b\u3002\u5f53\u6295\u7968\u88ab\u74dc\u5206\uff0c\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2acandidate\u6536\u5230\u4e86majority\u7684vote\u65f6\uff0c\u6ca1\u6709leader\u88ab\u9009\u51fa\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6bcf\u4e2acandidate\u7b49\u5f85\u7684\u6295\u7968\u7684\u8fc7\u7a0b\u5c31\u8d85\u65f6\u4e86\uff0c\u63a5\u7740candidates\u90fd\u4f1a\u5c06\u672c\u5730\u7684current_term_id\u518d\u52a01\uff0c\u53d1\u8d77RequestVoteRPC\u8fdb\u884c\u65b0\u4e00\u8f6e\u7684leader election\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u6295\u7968\u7b56\u7565\uff1a<\/strong>\u4e00\u4e2a\u4efb\u671f\u5185\uff0c\u4e00\u4e2a\u8282\u70b9\u53ea\u80fd\u6295\u4e00\u5f20\u7968\uff0c\u5177\u4f53\u7684\u662f\u5426\u540c\u610f\u548c\u540e\u7eed\u7684Safety\u6709\u5173\u3002<\/span><\/section>\n<h4 data-sourcepos=\"261:1-261:29\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u6295\u7968\u9009\u4e3e\u6d41\u7a0b\u56fe\u89e3<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\uff081\uff09follower\u589e\u52a0\u5f53\u524d\u7684term\uff0c\u8f6c\u53d8\u4e3acandidate\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\uff082\uff09candidate\u6295\u7968\u7ed9\u81ea\u5df1\uff0c\u5e76\u53d1\u9001RequestVote RPC\u7ed9\u96c6\u7fa4\u4e2d\u7684\u5176\u4ed6\u670d\u52a1\u5668\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\uff083\uff09\u6536\u5230RequestVote\u7684\u670d\u52a1\u5668\uff0c\u5728\u540c\u4e00term\u4e2d\u53ea\u4f1a\u6309\u7167\u5148\u5230\u5148\u5f97\u6295\u7968\u7ed9\u81f3\u591a\u4e00\u4e2acandidate\u3002\u4e14\u53ea\u4f1a\u6295\u7968\u7ed9log\u81f3\u5c11\u548c\u81ea\u8eab\u4e00\u6837\u65b0\u7684candidate\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018375\" data-ratio=\"0.588957055214724\"  data-w=\"978\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010426.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018375\" data-ratio=\"0.588957055214724\"  data-w=\"978\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010426.webp\"  \/><\/noscript><span style=\"font-size: 15px;\">\u521d\u59cb\u8282\u70b9<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"lazyload\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-ratio=\"0.5700099304865939\" data-w=\"1007\" data-imgfileid=\"100018373\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010572.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\"  style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-ratio=\"0.5700099304865939\" data-w=\"1007\" data-imgfileid=\"100018373\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010572.webp\"  \/><\/noscript><span style=\"font-size: 15px;\">Node1 \u8f6c\u4e3a Candidate \u53d1\u8d77\u9009\u4e3e<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018376\" data-ratio=\"0.6004206098843323\"  data-w=\"951\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165011552.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018376\" data-ratio=\"0.6004206098843323\"  data-w=\"951\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165011552.webp\"  \/><\/noscript><span style=\"font-size: 15px;\">Node \u786e\u8ba4\u9009\u4e3e<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018378\" data-ratio=\"0.6\"  data-w=\"945\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012181.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018378\" data-ratio=\"0.6\"  data-w=\"945\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012181.webp\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Node1 \u6210\u4e3a leader\uff0c\u53d1\u9001 Heartbeat<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">candidate\u8282\u70b9\u4fdd\u6301\uff082\uff09\u7684\u72b6\u6001\uff0c\u76f4\u5230\u4e0b\u9762\u4e09\u79cd\u60c5\u51b5\u4e2d\u7684\u4e00\u79cd\u53d1\u751f\u3002<\/span><\/section>\n<ul data-sourcepos=\"281:1-284:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8be5\u8282\u70b9\u8d62\u5f97\u9009\u4e3e\uff0c\u5373\u6536\u5230\u5927\u591a\u6570\u8282\u70b9\u7684\u6295\u7968\uff0c\u7136\u540e\u8f6c\u53d8\u4e3a leader \u72b6\u6001\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53e6\u4e00\u4e2a\u670d\u52a1\u5668\u6210\u4e3a leader\uff0c\u5373\u6536\u5230\u5408\u6cd5\u5fc3\u8df3\u5305\uff08term \u503c\u5927\u4e8e\u6216\u7b49\u4e8e\u5f53\u524d\u81ea\u8eab term \u503c\uff09\uff0c\u7136\u540e\u8f6c\u53d8\u4e3a follower \u72b6\u6001\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u6bb5\u65f6\u95f4\u540e\u4ecd\u672a\u786e\u5b9a\u80dc\u8005\uff0c\u6b64\u65f6\u4f1a\u542f\u52a8\u65b0\u4e00\u8f6e\u7684\u9009\u4e3e\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e3a\u4e86\u89e3\u51b3\u5f53\u7968\u6570\u76f8\u540c\u65f6\u65e0\u6cd5\u786e\u5b9a leader \u7684\u95ee\u9898\uff0cRaft \u4f7f\u7528\u968f\u673a\u9009\u4e3e\u8d85\u65f6\u65f6\u95f4\u3002<\/span><\/section>\n<h3 data-sourcepos=\"291:1-291:22\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Raft \u65e5\u5fd7\u590d\u5236<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53 Leader \u9009\u4e3e\u4ea7\u751f\u540e\uff0c\u5b83\u5f00\u59cb\u8d1f\u8d23\u5904\u7406\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6240\u6709\u7684\u4e8b\u52a1\uff08\u66f4\u65b0\u64cd\u4f5c\uff09\u8bf7\u6c42\u90fd\u5fc5\u987b\u5148\u7531 Leader \u5904\u7406\u3002\u65e5\u5fd7\u590d\u5236\uff08Log Replication\uff09\u5c31\u662f\u4e3a\u4e86\u786e\u4fdd\u6267\u884c\u76f8\u540c\u7684\u64cd\u4f5c\u5e8f\u5217\u6240\u505a\u7684\u5de5\u4f5c\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65e5\u5fd7\u590d\u5236\uff08Log Replication\uff09\u7684\u4e3b\u8981\u76ee\u7684\u662f\u786e\u4fdd\u8282\u70b9\u7684\u4e00\u81f4\u6027\uff0c\u5728\u6b64\u9636\u6bb5\u6267\u884c\u7684\u64cd\u4f5c\u90fd\u662f\u4e3a\u4e86\u786e\u4fdd\u4e00\u81f4\u6027\u548c\u9ad8\u53ef\u7528\u6027\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 Raft \u4e2d\uff0c\u5f53\u63a5\u6536\u5230\u5ba2\u6237\u7aef\u7684\u65e5\u5fd7\uff08\u4e8b\u52a1\u8bf7\u6c42\uff09\u540e\uff0c\u5148\u628a\u8be5\u65e5\u5fd7\u8ffd\u52a0\u5230\u672c\u5730\u7684Log\u4e2d\uff0c\u7136\u540e\u901a\u8fc7heartbeat\u628a\u8be5Entry\u540c\u6b65\u7ed9\u5176\u4ed6Follower\uff0cFollower\u63a5\u6536\u5230\u65e5\u5fd7\u540e\u8bb0\u5f55\u65e5\u5fd7\u7136\u540e\u5411Leader\u53d1\u9001ACK\uff0c\u5f53Leader\u6536\u5230\u5927\u591a\u6570\uff08n\/2+1\uff09Follower\u7684ACK\u4fe1\u606f\u540e\u5c06\u8be5\u65e5\u5fd7\u8bbe\u7f6e\u4e3a\u5df2\u63d0\u4ea4\u5e76\u8ffd\u52a0\u5230\u672c\u5730\u78c1\u76d8\u4e2d\uff0c\u901a\u77e5\u5ba2\u6237\u7aef\u5e76\u5728\u4e0b\u4e2aheartbeat\u4e2dLeader\u5c06\u901a\u77e5\u6240\u6709\u7684Follower\u5c06\u8be5\u65e5\u5fd7\u5b58\u50a8\u5728\u81ea\u5df1\u7684\u672c\u5730\u78c1\u76d8\u4e2d\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Leader\u9009\u4e3e\u51fa\u6765\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5904\u7406\u5ba2\u6237\u7aef\u8bf7\u6c42\u3002\u6d41\u7a0b\u5982\u4e0b\uff1a<\/span><\/section>\n<ol data-sourcepos=\"303:1-307:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Leader\u6536\u5230\u5ba2\u6237\u7aef\u8bf7\u6c42\u540e\uff0cleader\u4f1a\u628a\u5b83\u4f5c\u4e3a\u4e00\u4e2alog entry\uff0cappend\u5230\u5b83\u81ea\u5df1\u7684\u65e5\u5fd7\u4e2d\u3002\u5e76\u5411\u5176\u5b83server\u53d1\u9001AppendEntriesRPC(\u6dfb\u52a0\u65e5\u5fd7)\u8bf7\u6c42\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u5b83server\u6536\u5230AppendEntriesRPC\u8bf7\u6c42\u540e\uff0c\u5224\u65ad\u8be5append\u8bf7\u6c42\u6ee1\u8db3\u63a5\u6536\u6761\u4ef6\uff0c\u5982\u679c\u6ee1\u8db3\u6761\u4ef6\u5c31\u5c06\u5176\u6dfb\u52a0\u5230\u672c\u5730\u7684log\u4e2d\uff0c\u5e76\u7ed9Leader\u53d1\u9001\u6dfb\u52a0\u6210\u529f\u7684response\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u67d0\u4e2afollower\u5b95\u673a\u4e86\u6216\u8005\u8fd0\u884c\u7684\u5f88\u6162\uff0c\u6216\u8005\u7f51\u7edc\u4e22\u5305\u4e86\uff0c\u5219\u4f1a\u4e00\u76f4\u7ed9\u8fd9\u4e2afollower\u53d1AppendEntriesRPC\u76f4\u5230\u65e5\u5fd7\u4e00\u81f4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Leader\u5728\u6536\u5230\u5927\u591a\u6570server\u6dfb\u52a0\u6210\u529f\u7684response\u540e\uff0c\u5c31\u5c06\u8be5\u6761log\u6b63\u5f0f\u63d0\u4ea4<\/strong>\u3002\u63d0\u4ea4\u540e\u7684log\u65e5\u5fd7\u5c31\u610f\u5473\u7740\u5df2\u7ecf\u88abraft\u7cfb\u7edf\u63a5\u53d7\uff0c\u5e76\u80fd\u5e94\u7528\u5230\u72b6\u6001\u673a\u4e2d\u4e86\u3002\u6bcf\u4e2a\u65e5\u5fd7\u6761\u76ee\u4e5f\u5305\u542b\u4e00\u4e2a\u6574\u6570\u7d22\u5f15\u6765\u8868\u793a\u5b83\u5728\u65e5\u5fd7\u4e2d\u7684\u4f4d\u7f6e\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65e5\u5fd7\u7531\u6709\u5e8f\u7f16\u53f7\u7684\u65e5\u5fd7\u6761\u76ee\u7ec4\u6210\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bcf\u4e2a\u65e5\u5fd7\u6761\u76ee\u5305\u542b\u5b83\u88ab\u521b\u5efa\u65f6\u7684\u4efb\u671f\u53f7\uff08\u6bcf\u4e2a\u65b9\u5757\u4e2d\u7684\u6570\u5b57\uff09\uff0c\u5e76\u4e14\u5305\u542b\u7528\u4e8e\u72b6\u6001\u673a\u6267\u884c\u7684\u547d\u4ee4\u3002\u4efb\u671f\u53f7\u7528\u6765\u68c0\u6d4b\u5728\u4e0d\u540c\u670d\u52a1\u5668\u4e0a\u65e5\u5fd7\u7684\u4e0d\u4e00\u81f4\u6027\u3002<\/span><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018382\" data-ratio=\"0.7503949447077409\"  data-type=\"jpeg\" data-w=\"633\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012939.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018382\" data-ratio=\"0.7503949447077409\"  data-type=\"jpeg\" data-w=\"633\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012939.jpeg\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u7d22\u5f15 1-7 \u7684\u65e5\u5fd7\u81f3\u5c11\u5728\u5176\u4ed6\u4e24\u4e2a\u8282\u70b9\u4e0a\u590d\u5236\u6210\u529f\uff0c\u5c31\u8ba4\u4e3a\u8be5\u65e5\u5fd7\u662f commited \u72b6\u6001\uff0c\u800c\u7d22\u5f15\u4e3a8 \u7684\u65e5\u5fd7\u5e76\u672a\u590d\u5236\u5230\u591a\u6570\u8282\u70b9\uff0c\u662f uncommitted \u72b6\u6001\u3002<\/span><\/section>\n<h6 data-sourcepos=\"317:1-317:32\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">Leader Append-Only \u539f\u5219<\/span><\/h6>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">leader \u5bf9\u81ea\u5df1\u7684\u65e5\u5fd7\u4e0d\u80fd\u8986\u76d6\u548c\u5220\u9664\uff0c\u53ea\u80fd\u8fdb\u884c append \u65b0\u65e5\u5fd7\u7684\u64cd\u4f5c\u3002<\/span><\/section>\n<h6 data-sourcepos=\"321:1-321:26\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">Log Matching \u7279\u6027<\/span><\/h6>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft \u7684\u65e5\u5fd7\u673a\u5236\u6765\u7ef4\u62a4\u4e0d\u540c\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u4e4b\u95f4\u7684\u9ad8\u5c42\u6b21\u7684\u4e00\u81f4\u6027\u3002\u6709\u4e0b\u9762\u4e24\u6761\u7279\u6027<\/span><\/section>\n<ul data-sourcepos=\"325:1-327:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5728\u4e0d\u540c\u7684\u65e5\u5fd7\u4e2d\u7684\u4e24\u4e2a\u6761\u76ee\u62e5\u6709\u76f8\u540c\u7684\u7d22\u5f15\u548c\u4efb\u671f\u53f7\uff0c\u90a3\u4e48\u4ed6\u4eec\u5b58\u50a8\u4e86\u76f8\u540c\u7684\u6307\u4ee4\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5728\u4e0d\u540c\u7684\u65e5\u5fd7\u4e2d\u7684\u4e24\u4e2a\u6761\u76ee\u62e5\u6709\u76f8\u540c\u7684\u7d22\u5f15\u548c\u4efb\u671f\u53f7\uff0c\u90a3\u4e48\u4ed6\u4eec\u4e4b\u524d\u7684\u6240\u6709\u65e5\u5fd7\u6761\u76ee\u4e5f\u5168\u90e8\u76f8\u540c\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7b2c\u4e00\u4e2a\u7279\u6027\u6765\u81ea\u8fd9\u6837\u7684\u4e00\u4e2a\u4e8b\u5b9e\uff0c\u9886\u5bfc\u4eba\u6700\u591a\u5728\u4e00\u4e2a\u4efb\u671f\u91cc\u5728\u6307\u5b9a\u7684\u4e00\u4e2a\u65e5\u5fd7\u7d22\u5f15\u4f4d\u7f6e\u521b\u5efa\u4e00\u6761\u65e5\u5fd7\u6761\u76ee\uff0c\u540c\u65f6\u65e5\u5fd7\u6761\u76ee\u5728\u65e5\u5fd7\u4e2d\u7684\u4f4d\u7f6e\u4e5f\u4ece\u6765\u4e0d\u4f1a\u6539\u53d8\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7b2c\u4e8c\u4e2a\u7279\u6027\u7531\u9644\u52a0\u65e5\u5fd7 RPC \u7684\u4e00\u4e2a\u7b80\u5355\u7684\u4e00\u81f4\u6027\u68c0\u67e5\u6240\u4fdd\u8bc1\u3002\u5728\u53d1\u9001\u9644\u52a0\u65e5\u5fd7 RPC \u7684\u65f6\u5019\uff0c\u9886\u5bfc\u4eba\u4f1a\u628a\u65b0\u7684\u65e5\u5fd7\u6761\u76ee\u7d27\u63a5\u7740\u4e4b\u524d\u7684\u6761\u76ee\u7684\u7d22\u5f15\u4f4d\u7f6e\u548c\u4efb\u671f\u53f7\u5305\u542b\u5728\u91cc\u9762\u3002\u5982\u679c\u8ddf\u968f\u8005\u5728\u5b83\u7684\u65e5\u5fd7\u4e2d\u627e\u4e0d\u5230\u5305\u542b\u76f8\u540c\u7d22\u5f15\u4f4d\u7f6e\u548c\u4efb\u671f\u53f7\u7684\u6761\u76ee\uff0c\u90a3\u4e48\u4ed6\u5c31\u4f1a\u62d2\u7edd\u63a5\u6536\u65b0\u7684\u65e5\u5fd7\u6761\u76ee\u3002\u4e00\u81f4\u6027\u68c0\u67e5\u5c31\u50cf\u4e00\u4e2a\u5f52\u7eb3\u6b65\u9aa4\uff1a\u4e00\u5f00\u59cb\u7a7a\u7684\u65e5\u5fd7\u72b6\u6001\u80af\u5b9a\u662f\u6ee1\u8db3\u65e5\u5fd7\u5339\u914d\u7279\u6027\u7684\uff0c\u7136\u540e\u4e00\u81f4\u6027\u68c0\u67e5\u4fdd\u62a4\u4e86\u65e5\u5fd7\u5339\u914d\u7279\u6027\u5f53\u65e5\u5fd7\u6269\u5c55\u7684\u65f6\u5019\u3002\u56e0\u6b64\uff0c\u6bcf\u5f53\u9644\u52a0\u65e5\u5fd7 RPC \u8fd4\u56de\u6210\u529f\u65f6\uff0c\u9886\u5bfc\u4eba\u5c31\u77e5\u9053\u8ddf\u968f\u8005\u7684\u65e5\u5fd7\u4e00\u5b9a\u662f\u548c\u81ea\u5df1\u76f8\u540c\u7684\u4e86\u3002<\/span><\/section>\n<h6 data-sourcepos=\"332:1-332:19\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u5f3a\u5236\u590d\u5236<\/span><\/h6>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u4e00\u4e2a\u65b0\u7684leader\u9009\u51fa\u6765\u7684\u65f6\u5019\uff0c\u5b83\u7684\u65e5\u5fd7\u548c\u5176\u5b83\u7684follower\u7684\u65e5\u5fd7\u53ef\u80fd\u4e0d\u4e00\u6837\uff0c\u8fd9\u4e2a\u65f6\u5019\uff0c\u5c31\u9700\u8981\u4e00\u4e2a\u673a\u5236\u6765\u4fdd\u8bc1\u65e5\u5fd7\u662f\u4e00\u81f4\u7684\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u4e00\u4e2a\u65b0leader\u4ea7\u751f\u65f6\uff0c\u96c6\u7fa4\u72b6\u6001\u53ef\u80fd\u5982\u4e0b\uff1a<\/span><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018381\" data-ratio=\"0.6869712351945855\"  data-type=\"jpeg\" data-w=\"591\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165014236.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018381\" data-ratio=\"0.6869712351945855\"  data-type=\"jpeg\" data-w=\"591\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165014236.jpeg\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6700\u4e0a\u9762\u8fd9\u4e2a\u662f\u65b0leader\uff0ca~f\u662ffollower\uff0c\u90fd\u51fa\u73b0\u4e86\u65e5\u5fd7\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<ul data-sourcepos=\"341:1-344:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">a\uff0cb\uff1afollower \u53ef\u80fd\u4e22\u5931\u90e8\u5206\u65e5\u5fd7<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">c\uff0cd\uff1afollower \u672c\u5730\u53ef\u80fd uncommited \u7684\u65e5\u5fd7<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">e\uff0cf\uff1afollower \u53ef\u80fd\u65e2\u7f3a\u5c11\u672c\u8be5\u6709\u7684\u65e5\u5fd7\uff0c\u4e5f\u591a\u51fa\u989d\u5916\u7684\u65e5\u5fd7<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 Raft \u7b97\u6cd5\u4e2d\uff0c\u9886\u5bfc\u4eba\u5904\u7406\u4e0d\u4e00\u81f4\u662f\u901a\u8fc7\u5f3a\u5236\u8ddf\u968f\u8005\u76f4\u63a5\u590d\u5236\u81ea\u5df1\u7684\u65e5\u5fd7\u6765\u89e3\u51b3\u4e86\u3002\u8fd9\u610f\u5473\u7740\u5728\u8ddf\u968f\u8005\u4e2d\u7684\u51b2\u7a81\u7684\u65e5\u5fd7\u6761\u76ee\u4f1a\u88ab\u9886\u5bfc\u4eba\u7684\u65e5\u5fd7\u8986\u76d6\u3002leader\u4f1a\u4e3a\u6bcf\u4e2afollower\u7ef4\u62a4\u4e00\u4e2anextIndex\uff0c\u8868\u793aleader\u7ed9\u5404\u4e2afollower\u53d1\u9001\u7684\u4e0b\u4e00\u6761log entry\u5728log\u4e2d\u7684index\uff0c\u521d\u59cb\u5316\u4e3aleader\u7684\u6700\u540e\u4e00\u6761log entry\u7684\u4e0b\u4e00\u4e2a\u4f4d\u7f6e\u3002leader\u7ed9follower\u53d1\u9001AppendEntriesRPC\u6d88\u606f\uff0c\u5e26\u7740{term_id, (nextIndex-1)}\uff0c follower\u63a5\u6536\u5230AppendEntriesRPC\u540e\uff0c\u4f1a\u4ece\u81ea\u5df1\u7684log\u4e2d\u627e\u662f\u4e0d\u662f\u5b58\u5728\u8fd9\u6837\u7684log entry\uff0c\u5982\u679c\u4e0d\u5b58\u5728\uff0c\u5c31\u7ed9leader\u56de\u590d\u62d2\u7edd\u6d88\u606f\uff0c\u7136\u540eleader\u5219\u5c06nextIndex\u51cf1\uff0c\u518d\u91cd\u590d\u53d1\u9001AppendEntriesRPC\uff0c\u76f4\u5230AppendEntriesRPC\u6d88\u606f\u88ab\u63a5\u6536\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u4e3e\u4e2a\u4f8b\u5b50<\/strong>\u4ee5leader\u548cb\u4e3a\u4f8b\uff1a\u521d\u59cb\u5316\uff0cnextIndex\u4e3a11\uff0cleader\u7ed9b\u53d1\u9001AppendEntriesRPC(6,10)\uff0cb\u5728\u81ea\u5df1log\u768410\u53f7\u69fd\u4f4d\u4e2d\u6ca1\u6709\u627e\u5230term_id\u4e3a6\u7684log entry\u3002\u5219\u7ed9leader\u56de\u5e94\u4e00\u4e2a\u62d2\u7edd\u6d88\u606f\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u63a5\u7740\uff0cleader\u5c06nextIndex\u51cf\u4e00\uff0c\u53d8\u621010\uff0c\u7136\u540e\u7ed9b\u53d1\u9001AppendEntriesRPC(6, 9)\uff0cb\u5728\u81ea\u5df1log\u76849\u53f7\u69fd\u4f4d\u4e2d\u540c\u6837\u6ca1\u6709\u627e\u5230term_id\u4e3a6\u7684log entry\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5faa\u73af\u4e0b\u53bb\uff0c\u76f4\u5230leader\u53d1\u9001\u4e86AppendEntriesRPC(4,4)\uff0cb\u5728\u81ea\u5df1log\u7684\u69fd\u4f4d4\u4e2d\u627e\u5230\u4e86term_id\u4e3a4\u7684log entry\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u63a5\u6536\u4e86\u6d88\u606f\u3002\u968f\u540e\uff0cleader\u5c31\u53ef\u4ee5\u4ece\u69fd\u4f4d5\u5f00\u59cb\u7ed9b\u63a8\u9001\u65e5\u5fd7\u4e86\u3002<\/span><\/section>\n<h6 data-sourcepos=\"356:1-356:34\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u89e3\u51b3\u51b2\u7a81\u7684\u6027\u80fd\u4f18\u5316<\/span><\/h6>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u9644\u52a0\u65e5\u5fd7 RPC \u7684\u8bf7\u6c42\u88ab\u62d2\u7edd\u7684\u65f6\u5019\uff0c\u8ddf\u968f\u8005\u53ef\u4ee5\u8fd4\u56de\u51b2\u7a81\u7684\u6761\u76ee\u7684\u4efb\u671f\u53f7\u548c\u81ea\u5df1\u5b58\u50a8\u7684\u90a3\u4e2a\u4efb\u671f\u7684\u6700\u65e9\u7684\u7d22\u5f15\u5730\u5740\u3002\u501f\u52a9\u8fd9\u4e9b\u4fe1\u606f\uff0c\u9886\u5bfc\u4eba\u53ef\u4ee5\u51cf\u5c0f nextIndex \u8d8a\u8fc7\u6240\u6709\u90a3\u4e2a\u4efb\u671f\u51b2\u7a81\u7684\u6240\u6709\u65e5\u5fd7\u6761\u76ee\uff1b\u8fd9\u6837\u5c31\u53d8\u6210\u6bcf\u4e2a\u4efb\u671f\u9700\u8981\u4e00\u6b21\u9644\u52a0\u6761\u76ee RPC \u800c\u4e0d\u662f\u6bcf\u4e2a\u6761\u76ee\u4e00\u6b21\u3002<\/span><\/section>\n<h3 data-sourcepos=\"360:1-360:32\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Nacos \u5982\u4f55\u5b9e\u73b0Raft\u7b97\u6cd5<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Nacos server\u5728\u542f\u52a8\u65f6\uff0c\u4f1a\u901a\u8fc7RunningConfig.onApplicationEvent()\u65b9\u6cd5\u8c03\u7528RaftCore.init()\u65b9\u6cd5\u3002<\/span><\/section>\n<h4 data-sourcepos=\"364:1-364:17\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u542f\u52a8\u9009\u4e3e<\/span><\/h4>\n<pre data-sourcepos=\"366:1-411:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">init<\/span>() <span style=\"color: rgb(1, 86, 146);\">throws<\/span> Exception {     Loggers.RAFT.info(<span style=\"color: rgb(84, 121, 13);\">\"initializing Raft sub-system\"<\/span>);     <span style=\"color: rgb(101, 110, 119);\">\/\/ \u542f\u52a8Notifier\uff0c\u8f6e\u8be2Datums\uff0c\u901a\u77e5RaftListener<\/span>    executor.submit(notifier);         <span style=\"color: rgb(101, 110, 119);\">\/\/ \u83b7\u53d6Raft\u96c6\u7fa4\u8282\u70b9\uff0c\u66f4\u65b0\u5230PeerSet\u4e2d<\/span>    peers.add(NamingProxy.getServers());     <span style=\"color: rgb(1, 86, 146);\">long<\/span> start = System.currentTimeMillis();     <span style=\"color: rgb(101, 110, 119);\">\/\/ \u4ece\u78c1\u76d8\u52a0\u8f7dDatum\u548cterm\u6570\u636e\u8fdb\u884c\u6570\u636e\u6062\u590d<\/span>    RaftStore.load();     Loggers.RAFT.info(<span style=\"color: rgb(84, 121, 13);\">\"cache loaded, peer count: {}, datum count: {}, current term: {}\"<\/span>,        peers.size(), datums.size(), peers.getTerm());     <span style=\"color: rgb(1, 86, 146);\">while<\/span> (<span style=\"color: rgb(1, 86, 146);\">true<\/span>) {        <span style=\"color: rgb(1, 86, 146);\">if<\/span> (notifier.tasks.size() &lt;= <span style=\"color: rgb(183, 85, 1);\">0<\/span>) {            <span style=\"color: rgb(1, 86, 146);\">break<\/span>;        }        Thread.sleep(<span style=\"color: rgb(183, 85, 1);\">1000L<\/span>);        System.out.println(notifier.tasks.size());    }     Loggers.RAFT.info(<span style=\"color: rgb(84, 121, 13);\">\"finish to load data from disk, cost: {} ms.\"<\/span>, (System.currentTimeMillis() - start));     GlobalExecutor.register(<span style=\"color: rgb(1, 86, 146);\">new<\/span> MasterElection()); <span style=\"color: rgb(101, 110, 119);\">\/\/ Leader\u9009\u4e3e<\/span>    GlobalExecutor.register1(<span style=\"color: rgb(1, 86, 146);\">new<\/span> HeartBeat()); <span style=\"color: rgb(101, 110, 119);\">\/\/ Raft\u5fc3\u8df3<\/span>    GlobalExecutor.register(<span style=\"color: rgb(1, 86, 146);\">new<\/span> AddressServerUpdater(),         GlobalExecutor.ADDRESS_SERVER_UPDATE_INTERVAL_MS);     <span style=\"color: rgb(1, 86, 146);\">if<\/span> (peers.size() &gt; <span style=\"color: rgb(183, 85, 1);\">0<\/span>) {        <span style=\"color: rgb(1, 86, 146);\">if<\/span> (lock.tryLock(INIT_LOCK_TIME_SECONDS, TimeUnit.SECONDS)) {            initialized = <span style=\"color: rgb(1, 86, 146);\">true<\/span>;            lock.unlock();        }    } <span style=\"color: rgb(1, 86, 146);\">else<\/span> {        <span style=\"color: rgb(1, 86, 146);\">throw<\/span> <span style=\"color: rgb(1, 86, 146);\">new<\/span> Exception(<span style=\"color: rgb(84, 121, 13);\">\"peers is empty.\"<\/span>);    }     Loggers.RAFT.info(<span style=\"color: rgb(84, 121, 13);\">\"timer started: leader timeout ms: {}, heart-beat timeout ms: {}\"<\/span>,        GlobalExecutor.LEADER_TIMEOUT_MS, GlobalExecutor.HEARTBEAT_INTERVAL_MS);}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728init\u65b9\u6cd5\u4e3b\u8981\u505a\u4e86\u5982\u4e0b\u51e0\u4ef6\u4e8b\uff1a<\/span><\/section>\n<ol data-sourcepos=\"415:1-421:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u83b7\u53d6Raft\u96c6\u7fa4\u8282\u70b9 peers.add(NamingProxy.getServers());<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u96c6\u7fa4\u6570\u636e\u6062\u590d RaftStore.load();<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u9009\u4e3e GlobalExecutor.register(new MasterElection());<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u5fc3\u8df3 GlobalExecutor.register(new HeartBeat());<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u53d1\u5e03\u5185\u5bb9<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u4fdd\u8bc1\u5185\u5bb9\u4e00\u81f4\u6027<\/span><\/section>\n<\/li>\n<\/ol>\n<h4 data-sourcepos=\"422:1-422:17\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u9009\u4e3e\u6d41\u7a0b<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u4e2d\uff0craft\u96c6\u7fa4\u5185\u90e8\u8282\u70b9\u95f4\u662f\u901a\u8fc7\u66b4\u9732\u7684Restful\u63a5\u53e3\uff0c\u4ee3\u7801\u5728 RaftController \u4e2d\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">RaftController\u63a7\u5236\u5668\u662fraft\u96c6\u7fa4\u5185\u90e8\u8282\u70b9\u95f4\u901a\u4fe1\u4f7f\u7528\u7684\uff0c\u5177\u4f53\u7684\u4fe1\u606f\u5982\u4e0b<\/span><\/section>\n<pre data-sourcepos=\"428:1-453:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\">POST HTTP:\/\/{ip:port}\/v1\/ns\/raft\/vote : \u8fdb\u884c\u6295\u7968\u8bf7\u6c42POST HTTP:\/\/{ip:port}\/v1\/ns\/raft\/beat : Leader\u5411Follower\u53d1\u9001\u5fc3\u8df3\u4fe1\u606fGET HTTP:\/\/{ip:port}\/v1\/ns\/raft\/peer : \u83b7\u53d6\u8be5\u8282\u70b9\u7684RaftPeer\u4fe1\u606fPUT HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum\/reload : \u91cd\u65b0\u52a0\u8f7d\u67d0\u65e5\u5fd7\u4fe1\u606fPOST HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum : Leader\u63a5\u6536\u4f20\u6765\u7684\u6570\u636e\u5e76\u5b58\u5165DELETE HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum : Leader\u63a5\u6536\u4f20\u6765\u7684\u6570\u636e\u5220\u9664\u64cd\u4f5cGET HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum : \u83b7\u53d6\u8be5\u8282\u70b9\u5b58\u50a8\u7684\u6570\u636e\u4fe1\u606fGET HTTP:\/\/{ip:port}\/v1\/ns\/raft\/state : \u83b7\u53d6\u8be5\u8282\u70b9\u7684\u72b6\u6001\u4fe1\u606f{UP or DOWN}POST HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum\/commit : Follower\u8282\u70b9\u63a5\u6536Leader\u4f20\u6765\u5f97\u5230\u6570\u636e\u5b58\u5165\u64cd\u4f5cDELETE HTTP:\/\/{ip:port}\/v1\/ns\/raft\/datum : Follower\u8282\u70b9\u63a5\u6536Leader\u4f20\u6765\u7684\u6570\u636e\u5220\u9664\u64cd\u4f5cGET HTTP:\/\/{ip:port}\/v1\/ns\/raft\/leader : \u83b7\u53d6\u5f53\u524d\u96c6\u7fa4\u7684Leader\u8282\u70b9\u4fe1\u606fGET HTTP:\/\/{ip:port}\/v1\/ns\/raft\/listeners : \u83b7\u53d6\u5f53\u524dRaft\u96c6\u7fa4\u7684\u6240\u6709\u4e8b\u4ef6\u76d1\u542c\u8005RaftPeerSet<\/span><\/section><\/pre>\n<h4 data-sourcepos=\"455:1-455:17\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u5fc3\u8df3\u673a\u5236<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Raft\u4e2d\u4f7f\u7528\u5fc3\u8df3\u673a\u5236\u6765\u89e6\u53d1leader\u9009\u4e3e\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5fc3\u8df3\u5b9a\u65f6\u4efb\u52a1\u662f\u5728GlobalExecutor \u4e2d\uff0c\u901a\u8fc7 GlobalExecutor.register(new HeartBeat())\u6ce8\u518c\u5fc3\u8df3\u5b9a\u65f6\u4efb\u52a1\uff0c\u5177\u4f53\u64cd\u4f5c\u5305\u62ec\uff1a<\/span><\/section>\n<ul data-sourcepos=\"461:1-463:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u91cd\u7f6eLeader\u8282\u70b9\u7684heart timeout\u3001election timeout\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">sendBeat()\u53d1\u9001\u5fc3\u8df3\u5305<\/span><\/section>\n<\/li>\n<\/ul>\n<pre data-sourcepos=\"464:1-488:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">HeartBeat<\/span> <span style=\"color: rgb(1, 86, 146);\">implements<\/span> <span style=\"color: rgb(183, 85, 1);\">Runnable<\/span> {    <span style=\"color: rgb(1, 86, 146);\">@Override<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">run<\/span>() {        <span style=\"color: rgb(1, 86, 146);\">try<\/span> {            <span style=\"color: rgb(1, 86, 146);\">if<\/span> (!peers.isReady()) {                <span style=\"color: rgb(1, 86, 146);\">return<\/span>;            }            RaftPeer local = peers.local();            local.heartbeatDueMs -= GlobalExecutor.TICK_PERIOD_MS;            <span style=\"color: rgb(1, 86, 146);\">if<\/span> (local.heartbeatDueMs &gt; <span style=\"color: rgb(183, 85, 1);\">0<\/span>) {                <span style=\"color: rgb(1, 86, 146);\">return<\/span>;            }            local.resetHeartbeatDue();            sendBeat();        } <span style=\"color: rgb(1, 86, 146);\">catch<\/span> (Exception e) {            Loggers.RAFT.warn(<span style=\"color: rgb(84, 121, 13);\">\"[RAFT] error while sending beat {}\"<\/span>, e);        }    }}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7b80\u5355\u8bf4\u660e\u4e86\u4e0bNacos\u4e2d\u7684Raft\u4e00\u81f4\u6027\u5b9e\u73b0\uff0c\u66f4\u8be6\u7ec6\u7684\u6d41\u7a0b\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u6e90\u7801\uff0c\u67e5\u770b RaftCore \u8fdb\u884c\u4e86\u89e3\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6e90\u7801\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u5730\u5740\u68c0\u51fa\uff1a<\/span><\/section>\n<pre data-sourcepos=\"494:1-496:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\">git clone https:\/\/github.com\/alibaba\/nacos.git<\/span><\/section><\/pre>\n<h2 data-sourcepos=\"500:1-500:41\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">sentinel\u9ad8\u53ef\u7528\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u662f\u4e00\u4e2a\u7cfb\u7edf\u6027\u7684\u9ad8\u53ef\u7528\u4fdd\u969c\u5de5\u5177\uff0c\u63d0\u4f9b\u4e86\u7b49\u4e00\u7cfb\u5217\u7684\u80fd\u529b<\/span><\/section>\n<ul data-sourcepos=\"504:1-508:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9650\u6d41<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u964d\u7ea7<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7194\u65ad<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9884\u70ed<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u57fa\u4e8e\u8fd9\u4e9b\u80fd\u529b\u505a\u4e86\u8bed\u610f\u5316\u6982\u5ff5\u62bd\u8c61\uff0c\u8fd9\u4e9b\u6982\u5ff5\u5bf9\u4e8e\u7406\u89e3\u5b9e\u73b0\u673a\u5236\u7279\u522b\u6709\u5e2e\u52a9\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018379\" data-ratio=\"0.4546296296296296\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165016667.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018379\" data-ratio=\"0.4546296296296296\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165016667.webp\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6d41\u91cf\u63a7\u5236\u6709\u4ee5\u4e0b\u51e0\u4e2a\u89d2\u5ea6:<\/span><\/section>\n<ul data-sourcepos=\"517:1-520:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8d44\u6e90\u7684\u8c03\u7528\u5173\u7cfb\uff0c\u4f8b\u5982\u8d44\u6e90\u7684\u8c03\u7528\u94fe\u8def\uff0c\u8d44\u6e90\u548c\u8d44\u6e90\u4e4b\u95f4\u7684\u5173\u7cfb\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd0\u884c\u6307\u6807\uff0c\u4f8b\u5982 QPS\u3001\u7ebf\u7a0b\u6c60\u3001\u7cfb\u7edf\u8d1f\u8f7d\u7b49\uff1b<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u63a7\u5236\u7684\u6548\u679c\uff0c\u4f8b\u5982\u76f4\u63a5\u9650\u6d41\u3001\u51b7\u542f\u52a8\u3001\u6392\u961f\u7b49\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel \u7684\u8bbe\u8ba1\u7406\u5ff5\u662f\u8ba9\u60a8\u81ea\u7531\u9009\u62e9\u63a7\u5236\u7684\u89d2\u5ea6\uff0c\u5e76\u8fdb\u884c\u7075\u6d3b\u7ec4\u5408\uff0c\u4ece\u800c\u8fbe\u5230\u60f3\u8981\u7684\u6548\u679c\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u4f7f\u7528\u6ed1\u52a8\u65f6\u95f4\u7a97\u53e3\u7b97\u6cd5\u6765\u5b9e\u73b0\u6d41\u91cf\u63a7\u5236\uff0c\u6d41\u91cf\u7edf\u8ba1\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ed1\u52a8\u65f6\u95f4\u7a97\u7b97\u6cd5\u7684\u6838\u5fc3\u601d\u60f3\u662f\u5c06\u4e00\u6bb5\u65f6\u95f4\u5212\u5206\u4e3a\u591a\u4e2a\u65f6\u95f4\u7a97\u53e3\uff0c\u5e76\u5728\u6bcf\u4e2a\u65f6\u95f4\u7a97\u53e3\u5185\u5bf9\u8bf7\u6c42\u8fdb\u884c\u8ba1\u6570\uff0c\u4ee5\u786e\u5b9a\u662f\u5426\u5141\u8bb8\u7ee7\u7eed\u8bf7\u6c42\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ee5\u4e0b\u662fSentinel\u5e95\u5c42\u6ed1\u52a8\u65f6\u95f4\u7a97\u53e3\u9650\u6d41\u7b97\u6cd5\u7684\u7b80\u8981\u5b9e\u73b0\u6b65\u9aa4\uff1a<\/span><\/section>\n<ul data-sourcepos=\"529:1-535:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u65f6\u95f4\u7a97\u53e3\u5212\u5206<\/strong>\uff1a\u5c06\u6574\u4e2a\u65f6\u95f4\u8303\u56f4\u5212\u5206\u4e3a\u591a\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u65f6\u95f4\u7a97\u53e3\uff08\u4f8b\u59821\u79d2\u4e00\u4e2a\u7a97\u53e3\uff09\u3002\u8fd9\u4e9b\u65f6\u95f4\u7a97\u53e3\u4f1a\u968f\u7740\u65f6\u95f4\u7684\u6d41\u901d\u4f9d\u6b21\u6ed1\u52a8\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u8ba1\u6570\u5668<\/strong>\uff1a\u4e3a\u6bcf\u4e2a\u65f6\u95f4\u7a97\u53e3\u7ef4\u62a4\u4e00\u4e2a\u8ba1\u6570\u5668\uff0c\u7528\u4e8e\u8bb0\u5f55\u5728\u8be5\u65f6\u95f4\u7a97\u53e3\u5185\u7684\u8bf7\u6c42\u6570\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u8bf7\u6c42\u8ba1\u6570<\/strong>\uff1a\u5f53\u6709\u8bf7\u6c42\u5230\u6765\u65f6\uff0c\u5c06\u5176\u8ba1\u5165\u5f53\u524d\u65f6\u95f4\u7a97\u53e3\u7684\u8ba1\u6570\u5668\u4e2d\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u6ed1\u52a8\u65f6\u95f4\u7a97\u53e3<\/strong>\uff1a\u5b9a\u671f\u6ed1\u52a8\u65f6\u95f4\u7a97\u53e3\uff0c\u5c06\u8fc7\u671f\u7684\u65f6\u95f4\u7a97\u53e3\u5220\u9664\uff0c\u5e76\u521b\u5efa\u65b0\u7684\u65f6\u95f4\u7a97\u53e3\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u6301\u65f6\u95f4\u7a97\u53e3\u7684\u6eda\u52a8\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u9650\u6d41\u5224\u65ad<\/strong>\uff1a\u5f53\u6709\u8bf7\u6c42\u5230\u6765\u65f6\uff0cSentinel\u4f1a\u68c0\u67e5\u5f53\u524d\u65f6\u95f4\u7a97\u53e3\u5185\u7684\u8bf7\u6c42\u6570\u662f\u5426\u8d85\u8fc7\u4e86\u9884\u8bbe\u7684\u9650\u5236\u9608\u503c\u3002\u5982\u679c\u8d85\u8fc7\u4e86\u9650\u5236\u9608\u503c\uff0c\u8bf7\u6c42\u5c06\u88ab\u62d2\u7edd\u6216\u6267\u884c\u964d\u7ea7\u7b56\u7565\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u8ba1\u6570\u91cd\u7f6e<\/strong>\uff1a\u5b9a\u671f\u91cd\u7f6e\u8fc7\u671f\u65f6\u95f4\u7a97\u53e3\u7684\u8ba1\u6570\u5668\uff0c\u4ee5\u786e\u4fdd\u8ba1\u6570\u5668\u4e0d\u4f1a\u65e0\u9650\u589e\u957f\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u79cd\u6ed1\u52a8\u65f6\u95f4\u7a97\u53e3\u7b97\u6cd5\u5141\u8bb8\u5728\u4e00\u6bb5\u65f6\u95f4\u5185\u5e73\u6ed1\u63a7\u5236\u8bf7\u6c42\u7684\u6d41\u91cf\uff0c\u800c\u4e0d\u662f\u4ec5\u57fa\u4e8e\u77ac\u65f6\u8bf7\u6c42\u901f\u7387\u8fdb\u884c\u9650\u6d41\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b83\u8003\u8651\u4e86\u8bf7\u6c42\u7684\u5386\u53f2\u5206\u5e03\uff0c\u66f4\u9002\u7528\u4e8e\u5e94\u5bf9\u7a81\u53d1\u6d41\u91cf\u548c\u5468\u671f\u6027\u8d1f\u8f7d\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<h2 data-sourcepos=\"542:1-542:47\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">Sentinel\u7194\u65ad\u964d\u7ea7\uff0c\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff1f<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0cSentinel \u4f5c\u4e3a\u4e00\u79cd\u6d41\u91cf\u63a7\u5236\u3001\u7194\u65ad\u964d\u7ea7\u548c\u670d\u52a1\u964d\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u6d41\u91cf\u63a7\u5236\u548c\u7194\u65ad\u964d\u7ea7\u5e93\uff0c\u7528\u4e8e\u4fdd\u62a4\u5206\u5e03\u5f0f\u7cfb\u7edf\u514d\u53d7\u5927\u91cf\u8bf7\u6c42\u7684\u5f71\u54cd\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u7194\u65ad\u964d\u7ea7\uff0c\u662f\u5982\u4f55\u5b9e\u73b0\u7684\uff1f\u5c3c\u6069\u5efa\u8bae\u5927\u5bb6\uff0c\u4ece\u4ee5\u4e0b\u7684\u51e0\u4e2a\u7ef4\u5ea6\u53bb\u4f5c\u7b54\uff1a<\/span><\/section>\n<h3 data-sourcepos=\"554:1-554:45\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u7b2c\u4e00\u4e2a\u7ef4\u5ea6\uff0cSentinel\u4e3b\u8981\u529f\u80fd\uff1a<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\uff1a\u7194\u65ad\u673a\u5236<\/span><\/section>\n<ol data-sourcepos=\"558:1-563:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u4f7f\u7528\u6ed1\u52a8\u7a97\u53e3\u7edf\u8ba1\u8bf7\u6c42\u7684\u6210\u529f\u548c\u5931\u8d25\u60c5\u51b5\u3002\u8fd9\u4e9b\u7edf\u8ba1\u4fe1\u606f\u5305\u62ec\u6210\u529f\u7684\u8bf7\u6c42\u6570\u3001\u5931\u8d25\u7684\u8bf7\u6c42\u6570\u7b49\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u67d0\u4e2a\u8d44\u6e90\uff08\u4f8b\u5982\u4e00\u4e2aAPI\u63a5\u53e3\uff09\u7684\u9519\u8bef\u7387\u8d85\u8fc7\u9608\u503c\u6216\u5176\u4ed6\u6307\u6807\u8fbe\u5230\u9884\u8bbe\u7684\u6761\u4ef6\uff0cSentinel\u5c06\u89e6\u53d1\u7194\u65ad\u673a\u5236\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u65e6\u7194\u65ad\u89e6\u53d1\uff0cSentinel\u5c06\u6682\u65f6\u963b\u6b62\u5bf9\u8be5\u8d44\u6e90\u7684\u8bf7\u6c42\uff0c\u9632\u6b62\u7ee7\u7eed\u5931\u8d25\u7684\u8bf7\u6c42\u5bf9\u7cfb\u7edf\u9020\u6210\u66f4\u5927\u7684\u5f71\u54cd\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e8c\uff1a\u964d\u7ea7\u673a\u5236<\/span><\/section>\n<ol data-sourcepos=\"566:1-570:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u8fd8\u63d0\u4f9b\u4e86\u964d\u7ea7\u673a\u5236\uff0c\u53ef\u4ee5\u5728\u8d44\u6e90\u8d1f\u8f7d\u8fc7\u91cd\u6216\u5176\u4ed6\u5f02\u5e38\u60c5\u51b5\u4e0b\uff0c\u9650\u5236\u8d44\u6e90\u7684\u8bbf\u95ee\u901f\u7387\uff0c\u4ee5\u4fdd\u62a4\u7cfb\u7edf\u514d\u53d7\u8fc7\u591a\u7684\u8bf7\u6c42\u51b2\u51fb\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u964d\u7ea7\u7b56\u7565\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5b9a\u5236\uff0c\u53ef\u4ee5\u662f\u6162\u8c03\u7528\u964d\u7ea7\u3001\u5f02\u5e38\u6bd4\u4f8b\u964d\u7ea7\u7b49\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e09\uff1a\u9ad8\u53ef\u7528\u6027\u673a\u5236<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u7684\u9ad8\u53ef\u7528\u6027\u4e3b\u8981\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6765\u5b9e\u73b0\uff1a<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">a. \u591a\u8282\u70b9\u90e8\u7f72\uff1a\u5c06Sentinel\u914d\u7f6e\u4e3a\u591a\u8282\u70b9\u90e8\u7f72\uff0c\u786e\u4fdd\u5373\u4f7f\u4e00\u4e2a\u8282\u70b9\u53d1\u751f\u6545\u969c\uff0c\u5176\u4ed6\u8282\u70b9\u4ecd\u7136\u80fd\u591f\u7ee7\u7eed\u5de5\u4f5c\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">b. \u6301\u4e45\u5316\u914d\u7f6e\uff1aSentinel\u652f\u6301\u5c06\u914d\u7f6e\u4fe1\u606f\u6301\u4e45\u5316\u5230\u5916\u90e8\u5b58\u50a8\uff0c\u5982Nacos\u3001Redis\u7b49\u3002\u8fd9\u6837\uff0c\u5373\u4f7fSentinel\u8282\u70b9\u91cd\u542f\uff0c\u5b83\u53ef\u4ee5\u52a0\u8f7d\u4e4b\u524d\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">c. \u96c6\u7fa4\u6d41\u63a7\u89c4\u5219\uff1aSentinel\u652f\u6301\u96c6\u7fa4\u6d41\u63a7\u89c4\u5219\uff0c\u591a\u4e2a\u8282\u70b9\u53ef\u4ee5\u5171\u4eab\u6d41\u91cf\u63a7\u5236\u89c4\u5219\uff0c\u4ee5\u534f\u540c\u5de5\u4f5c\u6765\u4fdd\u62a4\u7cfb\u7edf\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">d. \u5b9e\u65f6\u76d1\u63a7\uff1aSentinel\u63d0\u4f9b\u4e86\u5b9e\u65f6\u76d1\u63a7\u548c\u4eea\u8868\u677f\uff0c\u53ef\u4ee5\u67e5\u770b\u7cfb\u7edf\u7684\u6d41\u91cf\u63a7\u5236\u548c\u7194\u65ad\u964d\u7ea7\u60c5\u51b5\uff0c\u5e2e\u52a9\u53ca\u65f6\u53d1\u73b0\u95ee\u9898\u5e76\u91c7\u53d6\u63aa\u65bd\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u56db\uff1a\u81ea\u9002\u5e94\u63a7\u5236<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u5177\u6709\u81ea\u9002\u5e94\u63a7\u5236\u7684\u529f\u80fd\uff0c\u5b83\u53ef\u4ee5\u6839\u636e\u7cfb\u7edf\u7684\u5b9e\u9645\u60c5\u51b5\u81ea\u52a8\u8c03\u6574\u6d41\u91cf\u63a7\u5236\u548c\u7194\u65ad\u964d\u7ea7\u7b56\u7565\uff0c\u4ee5\u9002\u5e94\u4e0d\u540c\u7684\u8d1f\u8f7d\u548c\u6d41\u91cf\u6a21\u5f0f\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u603b\u7684\u6765\u8bf4\uff0cSentinel\u7684\u9ad8\u53ef\u7528\u6027\u7194\u65ad\u964d\u7ea7\u673a\u5236\u662f\u901a\u8fc7\u591a\u8282\u70b9\u90e8\u7f72\u3001\u6301\u4e45\u5316\u914d\u7f6e\u3001\u5b9e\u65f6\u76d1\u63a7\u3001\u81ea\u9002\u5e94\u63a7\u5236\u7b49\u591a\u79cd\u624b\u6bb5\u6765\u5b9e\u73b0\u7684\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4f7f\u5f97Sentinel\u80fd\u591f\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u4fdd\u62a4\u5173\u952e\u8d44\u6e90\u514d\u53d7\u5f02\u5e38\u6d41\u91cf\u7684\u5f71\u54cd\uff0c\u5e76\u4fdd\u6301\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7528\u6027\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\uff0cSentinel\u662f\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\u7684\u5462\uff1f\u5728\u8bf4\u8bf4 Sentinel \u7684\u57fa\u672c\u7ec4\u4ef6\u3002<\/span><\/section>\n<h3 data-sourcepos=\"595:1-595:50\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u7b2c\u4e8c\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u57fa\u672c\u7ec4\u4ef6\uff1a<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel \u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a\u8d44\u6e90\uff08Resource\uff09\u3001\u89c4\u5219\uff08Rule\uff09\u3001\u4e0a\u4e0b\u6587\uff08Context\uff09\u548c\u63d2\u69fd\uff08Slot\uff09\u3002<\/span><\/section>\n<ul data-sourcepos=\"601:1-607:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8d44\u6e90\u662f\u6211\u4eec\u60f3\u8981\u4fdd\u62a4\u7684\u5bf9\u8c61\uff0c\u6bd4\u5982\u4e00\u4e2a\u8fdc\u7a0b\u670d\u52a1\u3001\u4e00\u4e2a\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u89c4\u5219\u662f\u5b9a\u4e49\u5982\u4f55\u4fdd\u62a4\u8d44\u6e90\u7684\uff0c\u6bd4\u5982\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u9608\u503c\u3001\u65f6\u95f4\u7a97\u53e3\u7b49\u65b9\u5f0f\u6765\u51b3\u5b9a\u4f55\u65f6\u8fdb\u884c\u9650\u6d41\u3001\u7194\u65ad\u7b49\u64cd\u4f5c\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0a\u4e0b\u6587\u662f\u4e00\u4e2a\u4e34\u65f6\u7684\u5b58\u50a8\u7a7a\u95f4\uff0c\u7528\u4e8e\u5b58\u50a8\u8d44\u6e90\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u6bd4\u5982\u5f53\u524d\u7684 QPS \u7b49\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u63d2\u69fd\u5c5e\u4e8e\u8d23\u4efb\u94fe\u6a21\u5f0f\u4e2d\u7684\u5904\u7406\u5668\/\u8fc7\u6ee4\u5668\uff0c \u5b8c\u6210\u8d44\u6e90\u89c4\u5219\u7684\u8ba1\u7b97\u548c\u9a8c\u8bc1\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<h3 data-sourcepos=\"608:1-608:68\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u7b2c\u4e09\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u6d41\u91cf\u6cbb\u7406\u51e0\u4e2a\u6838\u5fc3\u6b65\u9aa4\uff1a<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 Sentinel \u7684\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6838\u5fc3\u6b65\u9aa4\uff1a<\/span><\/section>\n<ol data-sourcepos=\"612:1-616:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8d44\u6e90\u6ce8\u518c\uff1a\u5f53\u4e00\u4e2a\u8d44\u6e90\u88ab\u521b\u5efa\u65f6\uff0c\u9700\u8981\u5c06\u5176\u6ce8\u518c\u5230 Sentinel\u3002\u5728\u6ce8\u518c\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u4e3a\u8d44\u6e90\u521b\u5efa\u4e00\u4e2a\u5bf9\u5e94\u7684\u4e0a\u4e0b\u6587\uff0c\u5e76\u5c06\u8d44\u6e90\u7684\u89c4\u5219\u5b58\u50a8\u5230\u63d2\u69fd\u4e2d\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6d41\u91cf\u63a7\u5236\uff1a\u5f53\u6709\u8bf7\u6c42\u8bbf\u95ee\u8d44\u6e90\u65f6\uff0cSentinel \u4f1a\u6839\u636e\u8d44\u6e90\u7684\u89c4\u5219\u8fdb\u884c\u6d41\u91cf\u63a7\u5236\u3002\u5982\u679c\u5f53\u524d QPS \u8d85\u8fc7\u4e86\u89c4\u5219\u8bbe\u5b9a\u7684\u9608\u503c\uff0cSentinel \u5c31\u4f1a\u62d2\u7edd\u8bf7\u6c42\uff0c\u4ee5\u9632\u6b62\u7cfb\u7edf\u8fc7\u8f7d\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7194\u65ad\u964d\u7ea7\uff1a\u5f53\u8d44\u6e90\u51fa\u73b0\u5f02\u5e38\u65f6\uff0cSentinel \u4f1a\u6839\u636e\u89c4\u5219\u8fdb\u884c\u7194\u65ad\u6216\u964d\u7ea7\u5904\u7406\u3002\u7194\u65ad\u662f\u6307\u6682\u65f6\u5207\u65ad\u5bf9\u8d44\u6e90\u7684\u8bbf\u95ee\uff0c\u4ee5\u9632\u6b62\u5f02\u5e38\u6269\u6563\u3002\u964d\u7ea7\u5219\u662f\u63d0\u4f9b\u4e00\u79cd\u5907\u7528\u7b56\u7565\uff0c\u5f53\u4e3b\u7b56\u7565\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u65f6\uff0c\u53ef\u4ee5\u5207\u6362\u5230\u5907\u7528\u7b56\u7565\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u89c4\u5219\u66f4\u65b0\uff1a\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u52a8\u6001\u8c03\u6574\u8d44\u6e90\u7684\u89c4\u5219\u3002Sentinel \u63d0\u4f9b\u4e86 API \u63a5\u53e3\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u66f4\u65b0\u8d44\u6e90\u7684\u89c4\u5219\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u901a\u8fc7\u4ee5\u4e0a\u5206\u6790\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0cSentinel \u7684\u6838\u5fc3\u601d\u60f3\u662f\u901a\u8fc7\u89c4\u5219\u6765\u7ba1\u7406\u548c\u63a7\u5236\u8d44\u6e90\u3002\u8fd9\u79cd\u8bbe\u8ba1\u4f7f\u5f97 Sentinel \u5177\u6709\u5f88\u5f3a\u7684\u53ef\u6269\u5c55\u6027\u548c\u7075\u6d3b\u6027\u3002\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\uff0c\u5b9a\u5236\u5404\u79cd\u590d\u6742\u7684\u89c4\u5219\u3002<\/span><\/section>\n<h3 data-sourcepos=\"619:1-619:56\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u7b2c\u56db\u4e2a\u7ef4\u5ea6\uff0c Sentinel \u7684\u6e90\u7801\u67b6\u6784\u7ef4\u5ea6\uff1a<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel \u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u6d41\u91cf\u63a7\u5236\u3001\u7194\u65ad\u964d\u7ea7\u548c\u670d\u52a1\u964d\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\u3002 \u5df2\u7ecf\u6210\u4e3a\u4e86\u66ff\u4ee3Hystrix\u7684\u4e3b\u8981\u9ad8\u53ef\u7528\u7ec4\u4ef6\u3002<\/span><\/section>\n<h3 data-sourcepos=\"623:1-623:52\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Sentinel \u7684\u6e90\u7801\u5c42\u9762\u7684\u4e24\u4e2a\u6838\u5fc3\u67b6\u6784\uff1a<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel\u53ef\u4ee5\u7528\u6765\u5e2e\u52a9\u6211\u4eec\u5b9e\u73b0\u6d41\u91cf\u63a7\u5236\u3001\u670d\u52a1\u964d\u7ea7\u3001\u670d\u52a1\u7194\u65ad\uff0c\u800c\u8fd9\u4e9b\u529f\u80fd\u7684\u5b9e\u73b0\u90fd\u79bb\u4e0d\u5f00\u63a5\u53e3\u88ab\u8c03\u7528\u7684\u5b9e\u65f6\u6307\u6807\u6570\u636e\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel \u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u6d41\u91cf\u63a7\u5236\u3001\u7194\u65ad\u964d\u7ea7\u548c\u670d\u52a1\u964d\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\u3002 \u5df2\u7ecf\u6210\u4e3a\u4e86\u66ff\u4ee3Hystrix\u7684\u4e3b\u8981\u9ad8\u53ef\u7528\u7ec4\u4ef6\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u56de\u5230\u6e90\u7801\u5c42\u9762\uff0c\u5728 Sentinel \u6e90\u7801\uff0c\u5305\u62ec\u4ee5\u4e0b\u4e8c\u5927\u67b6\u6784\uff1a<\/span><\/section>\n<ul data-sourcepos=\"631:1-633:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8d23\u4efb\u94fe\u6a21\u5f0f\u67b6\u6784<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ed1\u52a8\u7a97\u53e3\u6570\u636e\u7edf\u8ba1\u67b6\u6784<\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018388\" data-ratio=\"0.4782178217821782\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1010\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165017889.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018388\" data-ratio=\"0.4782178217821782\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1010\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165017889.png\"  \/><\/noscript><\/p>\n<blockquote data-sourcepos=\"636:1-636:131\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-top: 0px;margin-bottom: 16px;color: rgb(106, 115, 125);border-left-width: 0.25em;border-left-color: rgb(223, 226, 229);background-color: rgb(249, 249, 249);padding-top: 0.5em;padding-right: 10px;padding-bottom: 0.5em;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5c3c\u6069\u8bf4\u660e\uff1a \u4e24\u5927\u67b6\u6784\u7684\u6e90\u7801\uff0c\u7b80\u5355\u8bf4\u8bf4\u5c31\u53ef\u4ee5\u4e86\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u89c1\u300aSentinel \u5b66\u4e60\u5723\u7ecf\u300b \u6700\u65b0\u7248\u672c\u3002<\/span><\/section>\n<\/blockquote>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u66f4\u52a0\u8be6\u7ec6\u7684\u67b6\u6784\u56fe\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"lazyload\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-ratio=\"0.6925925925925925\" data-w=\"1080\" data-imgfileid=\"100018380\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165018103.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\"  style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-ratio=\"0.6925925925925925\" data-w=\"1080\" data-imgfileid=\"100018380\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165018103.webp\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0a\u56fe\u4e2d\u7684\u53f3\u4e0a\u89d2\u5c31\u662f\u6ed1\u52a8\u7a97\u53e3\u7684\u793a\u610f\u56fe\uff0c\u662f StatisticSlot \u7684\u5177\u4f53\u5b9e\u73b0\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">StatisticSlot \u662f Sentinel \u7684\u6838\u5fc3\u529f\u80fd\u63d2\u69fd\u4e4b\u4e00\uff0c\u7528\u4e8e\u7edf\u8ba1\u5b9e\u65f6\u7684\u8c03\u7528\u6570\u636e\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Sentinel \u662f\u57fa\u4e8e\u6ed1\u52a8\u7a97\u53e3\u5b9e\u73b0\u7684\u5b9e\u65f6\u6307\u6807\u6570\u636e\u6536\u96c6\u7edf\u8ba1<\/strong>\uff0c\u5e95\u5c42\u91c7\u7528\u9ad8\u6027\u80fd\u7684\u6ed1\u52a8\u7a97\u53e3\u6570\u636e\u7ed3\u6784 LeapArray \u6765\u7edf\u8ba1\u5b9e\u65f6\u7684\u79d2\u7ea7\u6307\u6807\u6570\u636e\uff0c\u53ef\u4ee5\u5f88\u597d\u5730\u652f\u6491\u5199\u591a\u4e8e\u8bfb\u7684\u9ad8\u5e76\u53d1\u573a\u666f\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018383\" data-ratio=\"0.23796296296296296\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019405.webp\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018383\" data-ratio=\"0.23796296296296296\"  data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019405.webp\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6709\u5173Sentinel\u7684\u66f4\u591a\u7684\u3001\u66f4\u52a0\u7cfb\u7edf\u5316\u77e5\u8bc6\uff0c\u8bf7\u53c2\u89c1\u5c3c\u6069\u5199\u76845W\u5b57PDF \u300aSentinel\u5b66\u4e60\u5723\u7ecf\u300b<\/span><\/section>\n<h2 data-sourcepos=\"664:1-664:36\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u6ed1\u52a8\u7a97\u53e3\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784<\/span><\/h2>\n<ul data-sourcepos=\"666:1-671:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>ArrayMetric<\/strong>\uff1a\u6ed1\u52a8\u7a97\u53e3\u6838\u5fc3\u5b9e\u73b0\u7c7b\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>LeapArray<\/strong>\uff1a\u6ed1\u52a8\u7a97\u53e3\u9876\u5c42\u6570\u636e\u7ed3\u6784\uff0c\u5305\u542b\u4e00\u4e2a\u4e00\u4e2a\u7684\u7a97\u53e3\u6570\u636e\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>WindowWrap<\/strong>\uff1a\u6bcf\u4e00\u4e2a\u6ed1\u52a8\u7a97\u53e3\u7684\u5305\u88c5\u7c7b\uff0c\u5176\u5185\u90e8\u7684\u6570\u636e\u7ed3\u6784\u7528 MetricBucket \u8868\u793a\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>MetricBucket<\/strong>\uff1a\u6307\u6807\u6876\uff0c\u4f8b\u5982\u901a\u8fc7\u6570\u91cf\u3001\u963b\u585e\u6570\u91cf\u3001\u5f02\u5e38\u6570\u91cf\u3001\u6210\u529f\u6570\u91cf\u3001\u54cd\u5e94\u65f6\u95f4\uff0c\u5df2\u901a\u8fc7\u672a\u6765\u914d\u989d\uff08\u62a2\u5360\u4e0b\u4e00\u4e2a\u6ed1\u52a8\u7a97\u53e3\u7684\u6570\u91cf\uff09\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>MetricEvent<\/strong>\uff1a\u6307\u6807\u7c7b\u578b\uff0c\u4f8b\u5982\u901a\u8fc7\u6570\u91cf\u3001\u963b\u585e\u6570\u91cf\u3001\u5f02\u5e38\u6570\u91cf\u3001\u6210\u529f\u6570\u91cf\u3001\u54cd\u5e94\u65f6\u95f4\u7b49\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<h3 data-sourcepos=\"672:1-672:22\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">ArrayMetric \u6e90\u7801<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ed1\u52a8\u7a97\u53e3\u7684\u5165\u53e3\u7c7b\u4e3a ArrayMetric\uff0c\u5b9e\u73b0\u4e86 Metric \u6307\u6807\u6536\u96c6\u6838\u5fc3\u63a5\u53e3\uff0c\u8be5\u63a5\u53e3\u4e3b\u8981\u5b9a\u4e49\u4e00\u4e2a\u6ed1\u52a8\u7a97\u53e3\u4e2d\u6210\u529f\u7684\u6570\u91cf\u3001\u5f02\u5e38\u6570\u91cf\u3001\u963b\u585e\u6570\u91cf\uff0cTPS\u3001\u54cd\u5e94\u65f6\u95f4\u7b49\u6570\u636e\u3002<\/span><\/section>\n<pre data-sourcepos=\"676:1-689:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">ArrayMetric<\/span> <span style=\"color: rgb(1, 86, 146);\">implements<\/span> <span style=\"color: rgb(183, 85, 1);\">Metric<\/span> {    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> LeapArray&lt;MetricBucket&gt; data;    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(183, 85, 1);\">ArrayMetric<\/span>(<span style=\"color: rgb(1, 86, 146);\">int<\/span> sampleCount, <span style=\"color: rgb(1, 86, 146);\">int<\/span> intervalInMs, <span style=\"color: rgb(1, 86, 146);\">boolean<\/span> enableOccupy) {        <span style=\"color: rgb(1, 86, 146);\">if<\/span> (enableOccupy) {            <span style=\"color: rgb(1, 86, 146);\">this<\/span>.data = <span style=\"color: rgb(1, 86, 146);\">new<\/span> OccupiableBucketLeapArray(sampleCount, intervalInMs);        } <span style=\"color: rgb(1, 86, 146);\">else<\/span> {            <span style=\"color: rgb(1, 86, 146);\">this<\/span>.data = <span style=\"color: rgb(1, 86, 146);\">new<\/span> BucketLeapArray(sampleCount, intervalInMs);        }    } }<\/span><\/section><\/pre>\n<ul data-sourcepos=\"691:1-694:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"line-height: 1.75em;\"><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">int intervalInMs<\/span><\/code><span style=\"font-size: 15px;\">\uff1a\u8868\u793a\u4e00\u4e2a\u91c7\u96c6\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5373\u6ed1\u52a8\u7a97\u53e3\u7684\u603b\u65f6\u95f4\uff0c\u4f8b\u5982 1 \u5206\u949f\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;\">\n<section style=\"line-height: 1.75em;\"><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">int sampleCount<\/span><\/code><span style=\"font-size: 15px;\">\uff1a\u5728\u4e00\u4e2a\u91c7\u96c6\u95f4\u9694\u4e2d\u62bd\u6837\u7684\u4e2a\u6570\uff0c\u9ed8\u8ba4\u4e3a 2\uff0c\u5373\u4e00\u4e2a\u91c7\u96c6\u95f4\u9694\u4e2d\u4f1a\u5305\u542b\u4e24\u4e2a\u76f8\u7b49\u7684\u533a\u95f4\uff0c\u4e00\u4e2a\u533a\u95f4\u5c31\u662f\u4e00\u4e2a\u7a97\u53e3\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;\">\n<section style=\"line-height: 1.75em;\"><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">boolean enableOccupy<\/span><\/code><span style=\"font-size: 15px;\">\uff1a\u662f\u5426\u5141\u8bb8\u62a2\u5360\uff0c\u5373\u5f53\u524d\u65f6\u95f4\u6233\u5df2\u7ecf\u8fbe\u5230\u9650\u5236\u540e\uff0c\u662f\u5426\u53ef\u4ee5\u5360\u7528\u4e0b\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\u7684\u5bb9\u91cf\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<h3 data-sourcepos=\"695:1-695:21\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">LeapArray \u6e90\u7801<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">LeapArray \u7528\u6765\u627f\u8f7d\u6ed1\u52a8\u7a97\u53e3\uff0c\u5373\u6210\u5458\u53d8\u91cf<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">array<\/span><\/code><span style=\"font-size: 15px;\">\uff0c\u7c7b\u578b\u4e3a<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">AtomicReferenceArray&lt;WindowWrap&lt;T&gt;&gt;<\/span><\/code><span style=\"font-size: 15px;\">\uff0c\u4fdd\u8bc1\u521b\u5efa\u7a97\u53e3\u7684\u539f\u5b50\u6027\uff08CAS\uff09\u3002<\/span><\/section>\n<pre data-sourcepos=\"699:1-719:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">abstract<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">LeapArray<\/span>&lt;<span style=\"color: rgb(183, 85, 1);\">T<\/span>&gt; {    <span style=\"color: rgb(101, 110, 119);\">\/\/\u6bcf\u4e00\u4e2a\u7a97\u53e3\u7684\u65f6\u95f4\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u6beb\u79d2<\/span>    <span style=\"color: rgb(1, 86, 146);\">protected<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> windowLengthInMs;    <span style=\"color: rgb(101, 110, 119);\">\/\/\u62bd\u6837\u4e2a\u6570\uff0c\u5c31\u4e00\u4e2a\u7edf\u8ba1\u65f6\u95f4\u95f4\u9694\u4e2d\u5305\u542b\u7684\u6ed1\u52a8\u7a97\u53e3\u4e2a\u6570<\/span>    <span style=\"color: rgb(1, 86, 146);\">protected<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> sampleCount;    <span style=\"color: rgb(101, 110, 119);\">\/\/\u4e00\u4e2a\u7edf\u8ba1\u7684\u65f6\u95f4\u95f4\u9694<\/span>    <span style=\"color: rgb(1, 86, 146);\">protected<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> intervalInMs;    <span style=\"color: rgb(101, 110, 119);\">\/\/\u6ed1\u52a8\u7a97\u53e3\u7684\u6570\u7ec4\uff0c\u6ed1\u52a8\u7a97\u53e3\u7c7b\u578b\u4e3a WindowWrap&lt;MetricBucket&gt;<\/span>    <span style=\"color: rgb(1, 86, 146);\">protected<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> AtomicReferenceArray&lt;WindowWrap&lt;T&gt;&gt; array;    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> ReentrantLock updateLock = <span style=\"color: rgb(1, 86, 146);\">new<\/span> ReentrantLock();        <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(183, 85, 1);\">LeapArray<\/span>(<span style=\"color: rgb(1, 86, 146);\">int<\/span> sampleCount, <span style=\"color: rgb(1, 86, 146);\">int<\/span> intervalInMs) {        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.windowLengthInMs = intervalInMs \/ sampleCount;        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.intervalInMs = intervalInMs;        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.sampleCount = sampleCount;        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.array = <span style=\"color: rgb(1, 86, 146);\">new<\/span> AtomicReferenceArray&lt;&gt;(sampleCount);    } }<\/span><\/section><\/pre>\n<h3 data-sourcepos=\"721:1-721:24\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">MetricBucket \u6e90\u7801<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Sentinel \u4f7f\u7528 MetricBucket \u7edf\u8ba1\u4e00\u4e2a\u7a97\u53e3\u65f6\u95f4\u5185\u7684\u5404\u9879\u6307\u6807\u6570\u636e\uff0c\u8fd9\u4e9b\u6307\u6807\u6570\u636e\u5305\u62ec\u8bf7\u6c42\u603b\u6570\u3001\u6210\u529f\u603b\u6570\u3001\u5f02\u5e38\u603b\u6570\u3001\u603b\u8017\u65f6\u3001\u6700\u5c0f\u8017\u65f6\u3001\u6700\u5927\u8017\u65f6\u7b49\uff0c\u800c\u4e00\u4e2a Bucket \u53ef\u4ee5\u662f\u8bb0\u5f55\u4e00\u79d2\u5185\u7684\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u662f 10 \u6beb\u79d2\u5185\u7684\u6570\u636e\uff0c\u8fd9\u4e2a\u65f6\u95f4\u957f\u5ea6\u79f0\u4e3a\u7a97\u53e3\u65f6\u95f4\u3002<\/span><\/section>\n<pre data-sourcepos=\"725:1-736:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">MetricBucket<\/span> {    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u5b58\u50a8\u5404\u4e8b\u4ef6\u7684\u8ba1\u6570\uff0c\u6bd4\u5982\u5f02\u5e38\u603b\u6570\u3001\u8bf7\u6c42\u603b\u6570\u7b49     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> LongAdder[] counters;    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u8fd9\u6bb5\u4e8b\u4ef6\u5185\u7684\u6700\u5c0f\u8017\u65f6     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">volatile<\/span> <span style=\"color: rgb(1, 86, 146);\">long<\/span> minRt;}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Bucket \u8bb0\u5f55\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u5404\u9879\u6307\u6807\u6570\u636e\u7528\u7684\u662f\u4e00\u4e2a LongAdder \u6570\u7ec4\uff0c\u6570\u7ec4\u7684\u6bcf\u4e2a\u5143\u7d20\u5206\u522b\u8bb0\u5f55\u4e00\u4e2a\u65f6\u95f4\u7a97\u53e3\u5185\u7684\u8bf7\u6c42\u603b\u6570\u3001\u5f02\u5e38\u6570\u3001\u603b\u8017\u65f6\u3002\u4e5f\u5c31\u662f\u8bf4\uff1aMetricBucket \u5305\u542b\u4e00\u4e2a LongAdder \u6570\u7ec4\uff0c\u6570\u7ec4\u7684\u6bcf\u4e2a\u5143\u7d20\u4ee3\u8868\u4e00\u7c7b MetricEvent\u3002LongAdder \u4fdd\u8bc1\u4e86\u6570\u636e\u4fee\u6539\u7684\u539f\u5b50\u6027\uff0c\u5e76\u4e14\u6027\u80fd\u6bd4 AtomicLong \u8868\u73b0\u66f4\u597d\u3002<\/span><\/section>\n<pre data-sourcepos=\"740:1-749:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">enum<\/span> MetricEvent {    PASS,    BLOCK,    EXCEPTION,    SUCCESS,    RT,    OCCUPIED_PASS}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u9700\u8981\u83b7\u53d6 Bucket \u8bb0\u5f55\u603b\u7684\u6210\u529f\u8bf7\u6c42\u6570\u6216\u8005\u5f02\u5e38\u603b\u6570\u3001\u603b\u7684\u8bf7\u6c42\u5904\u7406\u8017\u65f6\uff0c\u53ef\u6839\u636e\u4e8b\u4ef6\u7c7b\u578b (MetricEvent) \u4ece Bucket \u7684 LongAdder \u6570\u7ec4\u4e2d\u83b7\u53d6\u5bf9\u5e94\u7684 LongAdder\uff0c\u5e76\u8c03\u7528 sum \u65b9\u6cd5\u83b7\u53d6\u603b\u6570\u3002<\/span><\/section>\n<pre data-sourcepos=\"753:1-757:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">long<\/span> <span style=\"color: rgb(183, 85, 1);\">get<\/span>(MetricEvent event) {    <span style=\"color: rgb(1, 86, 146);\">return<\/span> counters[event.ordinal()].sum();}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u9700\u8981 Bucket \u8bb0\u5f55\u4e00\u4e2a\u6210\u529f\u8bf7\u6c42\u6216\u8005\u4e00\u4e2a\u5f02\u5e38\u8bf7\u6c42\u3001\u5904\u7406\u8bf7\u6c42\u7684\u8017\u65f6\uff0c\u53ef\u6839\u636e\u4e8b\u4ef6\u7c7b\u578b\uff08MetricEvent\uff09\u4ece LongAdder \u6570\u7ec4\u4e2d\u83b7\u53d6\u5bf9\u5e94\u7684 LongAdder\uff0c\u5e76\u8c03\u7528\u5176 add \u65b9\u6cd5\u3002<\/span><\/section>\n<pre data-sourcepos=\"761:1-765:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">add<\/span>(MetricEvent event, <span style=\"color: rgb(1, 86, 146);\">long<\/span> n) {     counters[event.ordinal()].add(n);}<\/span><\/section><\/pre>\n<h3 data-sourcepos=\"767:1-767:22\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">WindowWrap \u6e90\u7801<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u56e0\u4e3a Bucket \u81ea\u8eab\u5e76\u4e0d\u4fdd\u5b58\u65f6\u95f4\u7a97\u53e3\u4fe1\u606f\uff0c\u6240\u4ee5 Sentinel \u7ed9 Bucket \u52a0\u4e86\u4e00\u4e2a\u5305\u88c5\u7c7b WindowWrap\u3002Bucket \u7528\u4e8e\u7edf\u8ba1\u5404\u9879\u6307\u6807\u6570\u636e\uff0cWindowWrap \u7528\u4e8e\u8bb0\u5f55 Bucket \u7684\u65f6\u95f4\u7a97\u53e3\u4fe1\u606f\uff08\u7a97\u53e3\u7684\u5f00\u59cb\u65f6\u95f4\u3001\u7a97\u53e3\u7684\u5927\u5c0f\uff09\uff0cWindowWrap \u6570\u7ec4\u5c31\u662f\u4e00\u4e2a\u6ed1\u52a8\u7a97\u53e3\u3002<\/span><\/section>\n<pre data-sourcepos=\"771:1-786:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">WindowWrap<\/span>&lt;<span style=\"color: rgb(183, 85, 1);\">T<\/span>&gt; {    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u5355\u4e2a\u7a97\u53e3\u7684\u65f6\u95f4\u957f\u5ea6\uff08\u6beb\u79d2\uff09     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> <span style=\"color: rgb(1, 86, 146);\">long<\/span> windowLengthInMs;    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u7a97\u53e3\u7684\u5f00\u59cb\u65f6\u95f4\u6233\uff08\u6beb\u79d2\uff09     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">long<\/span> windowStart;    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u7edf\u8ba1\u6570\u636e     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> T value;}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u603b\u7684\u6765\u8bf4\uff1a<\/span><\/section>\n<ul data-sourcepos=\"790:1-795:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">WindowWrap \u7528\u4e8e\u5305\u88c5 Bucket\uff0c\u968f\u7740 Bucket \u4e00\u8d77\u521b\u5efa\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">WindowWrap \u6570\u7ec4\u5b9e\u73b0\u6ed1\u52a8\u7a97\u53e3\uff0cBucket \u53ea\u8d1f\u8d23\u7edf\u8ba1\u5404\u9879\u6307\u6807\u6570\u636e\uff0cWindowWrap \u7528\u4e8e\u8bb0\u5f55 Bucket \u7684\u65f6\u95f4\u7a97\u53e3\u4fe1\u606f\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b9a\u4f4d Bucket \u5b9e\u9645\u4e0a\u662f\u5b9a\u4f4d WindowWrap\uff0c\u62ff\u5230 WindowWrap \u5c31\u80fd\u62ff\u5230 Bucket\u3002<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 data-sourcepos=\"796:1-796:49\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">loadbanlancer\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6\u7684\u5e95\u5c42\u539f\u7406<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ecb\u7ecdloadbanlancer\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6\u4e4b\u524d\uff0c\u9996\u5148\u5c3c\u6069\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b \u8d1f\u8f7d\u5747\u8861\u7684\u57fa\u7840\u77e5\u8bc6\u3002<\/span><\/section>\n<h3 data-sourcepos=\"800:1-800:40\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u57fa\u7840\u539f\u7406\uff1a\u8d1f\u8f7d\u5747\u8861\u7684\u7c7b\u578b<\/span><\/h3>\n<ul data-sourcepos=\"802:1-804:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5ba2\u6237\u7aef\u4fa7\u8d1f\u8f7d\u5747\u8861<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>1\u3001\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861\uff1a<\/strong><\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f20\u7edf\u7684\u65b9\u5f0f\u524d\u7aef\u53d1\u9001\u8bf7\u6c42\u4f1a\u5230\u6211\u4eec\u7684\u7684nginx\u4e0a\u53bb\uff0cnginx\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\uff0c\u7136\u540e\u8def\u7531\u7ed9\u540e\u7aef\u7684\u670d\u52a1\u5668\uff0c\u7531\u4e8e\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u662fnginx\u63d0\u4f9b\u7684\uff0c\u800cnginx\u662f\u90e8\u7f72\u5230\u670d\u52a1\u5668\u7aef\u7684\uff0c<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6240\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u53c8\u88ab\u79f0\u4e3a\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018389\" data-ratio=\"0.43148148148148147\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019303.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018389\" data-ratio=\"0.43148148148148147\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019303.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>2\u3001\u5ba2\u6237\u7aef\u4fa7\u8d1f\u8f7d\u5747\u8861\uff1a<\/strong><\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u73b0\u5728\u6709\u4e09\u4e2a\u5b9e\u4f8b\uff0c\u5185\u5bb9\u4e2d\u5fc3\u53ef\u4ee5\u901a\u8fc7discoveryClient \u83b7\u53d6\u5230\u7528\u6237\u4e2d\u5fc3\u7684\u5b9e\u4f8b\u4fe1\u606f\uff0c\u5982\u679c\u6211\u4eec\u518d\u8ba2\u5355\u4e2d\u5fc3\u5199\u4e00\u4e2a\u8d1f\u8f7d\u5747\u8861 \u7684\u89c4\u5219\u8ba1\u7b97\u8bf7\u6c42\u90a3\u4e2a\u5b9e\u4f8b\uff0c\u4ea4\u7ed9restTemplate\u8fdb\u884c\u8bf7\u6c42\uff0c\u8fd9\u6837\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\uff0c\u8fd9\u4e2a\u7b97\u6cd5\u91cc\u9762\uff0c\u8d1f\u8f7d\u5747\u8861\u662f\u6709\u8ba2\u5355\u4e2d\u5fc3\u63d0\u4f9b\u7684\uff0c\u800c\u8ba2\u5355\u4e2d\u5fc3\u76f8\u5bf9\u4e8e\u7528\u6237\u4e2d\u5fc3\u662f\u4e00\u4e2a\u5ba2\u6237\u7aef\uff0c\u6240\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u53c8\u79f0\u4e3a\u5ba2\u6237\u7aef\u8d1f\u8d1f\u8f7d\u5747\u8861\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018390\" data-ratio=\"0.44074074074074077\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165022762.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018390\" data-ratio=\"0.44074074074074077\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165022762.png\"  \/><\/noscript><\/p>\n<h3 data-sourcepos=\"825:1-825:55\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u57fa\u7840\u539f\u7406\uff1a\u5e38\u89c1\u7684\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u65e0\u8bba\u662f\u670d\u52a1\u5668\u7aef\u8d1f\u8f7d\u5747\u8861\uff0c\u8fd8\u662f\u5ba2\u6237\u7aef\u4fa7\u8d1f\u8f7d\u5747\u8861\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762\u7684\u5e38\u89c1\u7684\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u5305\u62ec\uff1a<\/span><\/section>\n<ol data-sourcepos=\"829:1-837:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u8f6e\u8be2\uff08Round Robin\uff09<\/strong>\uff1a\u6309\u7167\u987a\u5e8f\u4f9d\u6b21\u5c06\u8bf7\u6c42\u5206\u914d\u7ed9\u6bcf\u4e2a\u670d\u52a1\u5668\uff0c\u5faa\u73af\u5f80\u590d\u3002\u9002\u7528\u4e8e\u670d\u52a1\u5668\u6027\u80fd\u76f8\u8fd1\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u52a0\u6743\u8f6e\u8be2\uff08Weighted Round Robin\uff09<\/strong>\uff1a\u5728\u8f6e\u8be2\u7684\u57fa\u7840\u4e0a\uff0c\u7ed9\u6bcf\u4e2a\u670d\u52a1\u5668\u5206\u914d\u4e00\u4e2a\u6743\u91cd\uff0c\u6839\u636e\u6743\u91cd\u6bd4\u4f8b\u5206\u914d\u8bf7\u6c42\u3002\u9002\u7528\u4e8e\u670d\u52a1\u5668\u6027\u80fd\u4e0d\u5747\u5300\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u968f\u673a\uff08Random\uff09<\/strong>\uff1a\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u670d\u52a1\u5668\u6765\u5904\u7406\u8bf7\u6c42\uff0c\u4e0d\u8003\u8651\u670d\u52a1\u5668\u7684\u6027\u80fd\u3002\u9002\u7528\u4e8e\u670d\u52a1\u5668\u6027\u80fd\u76f8\u8fd1\u4e14\u8d1f\u8f7d\u4e0d\u9ad8\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u6700\u5c0f\u8fde\u63a5\u6570\uff08Least Connections\uff09<\/strong>\uff1a\u9009\u62e9\u5f53\u524d\u8fde\u63a5\u6570\u6700\u5c11\u7684\u670d\u52a1\u5668\u6765\u5904\u7406\u8bf7\u6c42\u3002\u9002\u7528\u4e8e\u670d\u52a1\u5668\u6027\u80fd\u5dee\u5f02\u8f83\u5927\uff0c\u4f46\u8d1f\u8f7d\u76f8\u5bf9\u5747\u5300\u7684\u60c5\u51b5\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>IP\u54c8\u5e0c\uff08IP Hash\uff09<\/strong>\uff1a\u6839\u636e\u5ba2\u6237\u7aef\u7684IP\u5730\u5740\u8fdb\u884c\u54c8\u5e0c\u8ba1\u7b97\uff0c\u7136\u540e\u5c06\u8bf7\u6c42\u5206\u914d\u7ed9\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u3002\u9002\u7528\u4e8e\u9700\u8981\u5c06\u540c\u4e00\u4e2a\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\u59cb\u7ec8\u5206\u914d\u7ed9\u540c\u4e00\u53f0\u670d\u52a1\u5668\u7684\u573a\u666f\uff0c\u6bd4\u5982\u4f1a\u8bdd\u4fdd\u6301\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u4e00\u81f4\u6027\u54c8\u5e0c\uff08Consistent Hashing\uff09<\/strong>\uff1a\u6839\u636e\u8bf7\u6c42\u7684\u952e\uff08\u5982URL\u3001\u5ba2\u6237\u7aefID\u7b49\uff09\u8fdb\u884c\u54c8\u5e0c\u8ba1\u7b97\uff0c\u7136\u540e\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u54c8\u5e0c\u73af\u4e0a\u6700\u8fd1\u7684\u670d\u52a1\u5668\u3002\u9002\u7528\u4e8e\u9700\u8981\u52a8\u6001\u6269\u5c55\u548c\u7f29\u51cf\u670d\u52a1\u5668\u96c6\u7fa4\u7684\u573a\u666f\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<h4 data-sourcepos=\"838:1-838:50\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u968f\u673a\uff08Random\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5229\u7528\u968f\u673a\u6570\u4ece\u6240\u6709\u670d\u52a1\u5668\u4e2d\u968f\u673a\u9009\u53d6\u4e00\u53f0\uff0c\u53ef\u4ee5\u7528\u670d\u52a1\u5668\u6570\u7ec4\u4e0b\u6807\u83b7\u53d6\u3002<\/span><\/section>\n<pre data-sourcepos=\"842:1-871:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">RandomLoadBalance<\/span> {    <span style=\"color: rgb(1, 86, 146);\">@Data<\/span>    <span style=\"color: rgb(1, 86, 146);\">@AllArgsConstructor<\/span>    <span style=\"color: rgb(1, 86, 146);\">@NoArgsConstructor<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">Server<\/span> {        <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> serverId;        <span style=\"color: rgb(1, 86, 146);\">private<\/span> String name;    }  <span style=\"color: rgb(101, 110, 119);\">\/\/ \u968f\u673a\u7b97\u6cd5\u7684\u6838\u5fc3\u903b\u8f91<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> Server <span style=\"color: rgb(183, 85, 1);\">selectServer<\/span>(List&lt;Server&gt; serverList) {        Random selector = <span style=\"color: rgb(1, 86, 146);\">new<\/span> Random();        <span style=\"color: rgb(1, 86, 146);\">int<\/span> next = selector.nextInt(serverList.size());        <span style=\"color: rgb(1, 86, 146);\">return<\/span> serverList.get(next);    }    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">main<\/span>(String[] args) {        List&lt;Server&gt; serverList = <span style=\"color: rgb(1, 86, 146);\">new<\/span> ArrayList&lt;&gt;();        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">1<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56681\"<\/span>));        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">2<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56682\"<\/span>));        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">3<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56683\"<\/span>));        <span style=\"color: rgb(1, 86, 146);\">for<\/span> (<span style=\"color: rgb(1, 86, 146);\">int<\/span> i = <span style=\"color: rgb(183, 85, 1);\">0<\/span>; i &lt; <span style=\"color: rgb(183, 85, 1);\">10<\/span>; i++) {            Server selectedServer = selectServer(serverList);            System.out.format(<span style=\"color: rgb(84, 121, 13);\">\"\u7b2c%d\u6b21\u8bf7\u6c42\uff0c\u9009\u62e9\u670d\u52a1\u5668%sn\"<\/span>, i + <span style=\"color: rgb(183, 85, 1);\">1<\/span>, selectedServer.toString());        }    }}<\/span><\/section><\/pre>\n<h4 data-sourcepos=\"875:1-875:60\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u8f6e\u8be2\uff08Round Robin\u3001RR\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f9d\u6b21\u5c06\u7528\u6237\u7684\u8bbf\u95ee\u8bf7\u6c42\uff0c\u6309\u5faa\u73af\u987a\u5e8f\u5206\u914d\u5230web\u670d\u52a1\u8282\u70b9\u4e0a\uff0c\u4ece1\u5f00\u59cb\u5230\u6700\u540e\u4e00\u53f0\u670d\u52a1\u5668\u8282\u70b9\u7ed3\u675f\uff0c\u7136\u540e\u518d\u5f00\u59cb\u65b0\u4e00\u8f6e\u7684\u5faa\u73af\u3002\u8fd9\u79cd\u7b97\u6cd5\u7b80\u5355\uff0c\u4f46\u662f\u6ca1\u6709\u8003\u8651\u5230\u6bcf\u53f0\u8282\u70b9\u670d\u52a1\u5668\u7684\u5177\u4f53\u6027\u80fd\uff0c\u8bf7\u6c42\u5206\u53d1\u5f80\u5f80\u4e0d\u5747\u8861\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5df2\u77e5\u670d\u52a1\u5668\uff1a<\/span><\/section>\n<table data-sourcepos=\"883:1-887:17\" width=\"473\">\n<thead>\n<tr data-sourcepos=\"883:1-883:22\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u670d\u52a1\u5668<\/span><\/td>\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u6743\u91cd<\/span><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr data-sourcepos=\"885:1-885:17\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"885:2-885:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s1<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"885:11-885:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">1<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"886:1-886:17\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"886:2-886:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s2<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"886:11-886:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">2<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"887:1-887:17\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"887:2-887:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s3<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"887:11-887:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">3<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f18\u70b9\uff1a\u5b9e\u73b0\u7b80\u5355\uff0c\u65e0\u9700\u8bb0\u5f55\u5404\u79cd\u670d\u52a1\u7684\u72b6\u6001\uff0c\u662f\u4e00\u79cd\u65e0\u72b6\u6001\u7684\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\u3002 \u7f3a\u70b9\uff1a\u5b9e\u73b0\u7edd\u5bf9\u516c\u5e73\uff0c\u5f53\u5404\u4e2a\u670d\u52a1\u5668\u6027\u80fd\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u65e0\u6cd5\u6839\u636e\u670d\u52a1\u5668\u6027\u80fd\u53bb\u5206\u914d\uff0c\u65e0\u6cd5\u5408\u7406\u5229\u7528\u670d\u52a1\u5668\u8d44\u6e90\u3002<\/span><\/section>\n<pre data-sourcepos=\"892:1-946:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">RoundRobin<\/span> {    <span style=\"color: rgb(101, 110, 119);\">\/\/\u8ba1\u6570\u5668\uff1a\u6bcf\u6b21\u8f6e\u8be2\u4e00\u4e2a\u8282\u70b9\u81ea\u589e1<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> AtomicInteger NEXT_SERVER_COUNTER = <span style=\"color: rgb(1, 86, 146);\">new<\/span> AtomicInteger(<span style=\"color: rgb(183, 85, 1);\">0<\/span>);    <span style=\"color: rgb(1, 86, 146);\">@Data<\/span>    <span style=\"color: rgb(1, 86, 146);\">@AllArgsConstructor<\/span>    <span style=\"color: rgb(1, 86, 146);\">@NoArgsConstructor<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">Server<\/span> {        <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> serverId;        <span style=\"color: rgb(1, 86, 146);\">private<\/span> String name;    }    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u8f6e\u8be2\u4e0b\u6807     * <span style=\"color: rgb(1, 86, 146);\">@param<\/span> modulo \u8282\u70b9\u603b\u6570     * <span style=\"color: rgb(1, 86, 146);\">@return<\/span>     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">int<\/span> <span style=\"color: rgb(183, 85, 1);\">select<\/span>(<span style=\"color: rgb(1, 86, 146);\">int<\/span> modulo) {        <span style=\"color: rgb(1, 86, 146);\">for<\/span> (; ; ) {            <span style=\"color: rgb(1, 86, 146);\">int<\/span> current = NEXT_SERVER_COUNTER.get();            <span style=\"color: rgb(101, 110, 119);\">\/\/NEXT_SERVER_COUNTER + 1 % \u8282\u70b9\u603b\u6570<\/span>            <span style=\"color: rgb(1, 86, 146);\">int<\/span> next = (current + <span style=\"color: rgb(183, 85, 1);\">1<\/span>) % modulo;            <span style=\"color: rgb(101, 110, 119);\">\/\/\u5982\u679c\u5f53\u524dNEXT_SERVER_COUNTER\u4e3acurrent,CAS\u66f4\u65b0\u4e3anext<\/span>            <span style=\"color: rgb(1, 86, 146);\">boolean<\/span> compareAndSet = NEXT_SERVER_COUNTER.compareAndSet(current, next);            <span style=\"color: rgb(101, 110, 119);\">\/\/CAS\u66f4\u65b0\u6210\u529f\u76f4\u63a5\u8fd4\u56de,\u5426\u5219\u81ea\u65cb\u5230\u5f53\u524d\u7ebf\u7a0bCAS\u64cd\u4f5c\u6210\u529f<\/span>            <span style=\"color: rgb(1, 86, 146);\">if<\/span> (compareAndSet) {                <span style=\"color: rgb(1, 86, 146);\">return<\/span> next;            }        }    }    <span style=\"color: rgb(101, 110, 119);\">\/**     * \u9009\u4e3e\u8282\u70b9     * <span style=\"color: rgb(1, 86, 146);\">@param<\/span> serverList \u8282\u70b9\u4e2a\u6570     * <span style=\"color: rgb(1, 86, 146);\">@return<\/span>     *\/<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> Server <span style=\"color: rgb(183, 85, 1);\">selectServer<\/span>(List&lt;Server&gt; serverList) {        <span style=\"color: rgb(1, 86, 146);\">return<\/span> serverList.get(select(serverList.size()));    }    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">main<\/span>(String[] args) {        List&lt;Server&gt; serverList = <span style=\"color: rgb(1, 86, 146);\">new<\/span> ArrayList&lt;&gt;();        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">1<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56681\"<\/span>));        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">2<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56682\"<\/span>));        serverList.add(<span style=\"color: rgb(1, 86, 146);\">new<\/span> Server(<span style=\"color: rgb(183, 85, 1);\">3<\/span>, <span style=\"color: rgb(84, 121, 13);\">\"\u670d\u52a1\u56683\"<\/span>));        <span style=\"color: rgb(1, 86, 146);\">for<\/span> (<span style=\"color: rgb(1, 86, 146);\">int<\/span> i = <span style=\"color: rgb(183, 85, 1);\">0<\/span>; i &lt; <span style=\"color: rgb(183, 85, 1);\">10<\/span>; i++) {            Server selectedServer = selectServer(serverList);            System.out.format(<span style=\"color: rgb(84, 121, 13);\">\"\u7b2c%d\u6b21\u8bf7\u6c42\uff0c\u9009\u62e9\u670d\u52a1\u5668%sn\"<\/span>, i + <span style=\"color: rgb(183, 85, 1);\">1<\/span>, selectedServer.toString());        }    }}<\/span><\/section><\/pre>\n<h4 data-sourcepos=\"950:1-950:75\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u52a0\u6743\u8f6e\u8be2\uff08WeightedRound-Robin\u3001WRR\uff09\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u5b9e\u73b0<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6839\u636e\u8bbe\u5b9a\u7684\u6743\u91cd\u503c\u6765\u5206\u914d\u8bbf\u95ee\u8bf7\u6c42\uff0c\u6743\u91cd\u503c\u8d8a\u5927\u7684\uff0c\u88ab\u5206\u5230\u7684\u8bf7\u6c42\u6570\u4e5f\u5c31\u8d8a\u591a\u3002\u4e00\u822c\u6839\u636e\u6bcf\u53f0\u8282\u70b9\u670d\u52a1\u5668\u7684\u5177\u4f53\u6027\u80fd\u6765\u5206\u914d\u6743\u91cd\u3002<\/span><\/section>\n<table data-sourcepos=\"954:1-958:17\" width=\"473\">\n<thead>\n<tr data-sourcepos=\"954:1-954:22\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u670d\u52a1\u5668<\/span><\/td>\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u6743\u91cd<\/span><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr data-sourcepos=\"956:1-956:17\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"956:2-956:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s1<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"956:11-956:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">1<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"957:1-957:17\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"957:2-957:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s2<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"957:11-957:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">2<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"958:1-958:17\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td data-sourcepos=\"958:2-958:9\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">s3<\/span><\/section>\n<\/td>\n<td data-sourcepos=\"958:11-958:16\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">3<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53ef\u4ee5\u6839\u636e\u6743\u91cd\u6211\u4eec\u521b\u5efa\u6570\u7ec4{s3,s2,s1,s3,s2,s3}\uff0c\u7136\u540e\u518d\u6309\u7167\u8f6e\u8be2\u7684\u65b9\u5f0f\u9009\u62e9\u76f8\u5e94\u7684\u670d\u52a1\u5668\u3002<\/span><\/section>\n<pre data-sourcepos=\"962:1-1027:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">WeightedRoundRobinSimple<\/span> {    <span style=\"color: rgb(101, 110, 119);\">\/\/\u5f53\u524d\u4e0b\u6807<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> Integer index = <span style=\"color: rgb(183, 85, 1);\">0<\/span>;    <span style=\"color: rgb(101, 110, 119);\">\/\/\u8282\u70b9\u4ee5\u53ca\u5bf9\u5e94\u6743\u503c<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> Map&lt;String, Integer&gt; mapNodes = <span style=\"color: rgb(1, 86, 146);\">new<\/span> HashMap&lt;&gt;();    <span style=\"color: rgb(101, 110, 119);\">\/\/\u8282\u70b9\u7684\u6743\u503c\u5217\u8868<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> List&lt;String&gt; nodes = <span style=\"color: rgb(1, 86, 146);\">new<\/span> ArrayList&lt;&gt;();    <span style=\"color: rgb(101, 110, 119);\">\/\/ \u51c6\u5907\u6a21\u62df\u6570\u636e<\/span>    <span style=\"color: rgb(1, 86, 146);\">static<\/span> {        mapNodes.put(<span style=\"color: rgb(84, 121, 13);\">\"192.168.1.101\"<\/span>, <span style=\"color: rgb(183, 85, 1);\">1<\/span>);        mapNodes.put(<span style=\"color: rgb(84, 121, 13);\">\"192.168.1.102\"<\/span>, <span style=\"color: rgb(183, 85, 1);\">3<\/span>);        mapNodes.put(<span style=\"color: rgb(84, 121, 13);\">\"192.168.1.103\"<\/span>, <span style=\"color: rgb(183, 85, 1);\">2<\/span>);        <span style=\"color: rgb(101, 110, 119);\">\/\/ \u5173\u952e\u4ee3\u7801\uff1a\u7c7b\u4f3c\u4e8e\u4e8c\u7ef4\u6570\u7ec4 \u964d\u7ef4\u6210 \u4e00\u7ef4\u6570\u7ec4\uff0c\u7136\u540e\u4f7f\u7528\u666e\u901a\u8f6e\u8be2<\/span>        <span style=\"color: rgb(1, 86, 146);\">for<\/span> (Map.Entry&lt;String, Integer&gt; entry : mapNodes.entrySet()) {            String key = entry.getKey();            <span style=\"color: rgb(1, 86, 146);\">for<\/span> (<span style=\"color: rgb(1, 86, 146);\">int<\/span> i = <span style=\"color: rgb(183, 85, 1);\">0<\/span>; i &lt; entry.getValue(); i++) {                nodes.add(key);            }        }        System.out.println(<span style=\"color: rgb(84, 121, 13);\">\"\u7b80\u5355\u7248\u7684\u52a0\u6743\u8f6e\u8be2\uff1a\"<\/span> + JSON.toJSONString(nodes));<span style=\"color: rgb(101, 110, 119);\">\/\/\u6253\u5370\u6240\u6709\u8282\u70b9<\/span>    }    <span style=\"color: rgb(1, 86, 146);\">public<\/span> String <span style=\"color: rgb(183, 85, 1);\">selectNode<\/span>() {        String ip = <span style=\"color: rgb(1, 86, 146);\">null<\/span>;        <span style=\"color: rgb(1, 86, 146);\">synchronized<\/span> (index) {            <span style=\"color: rgb(101, 110, 119);\">\/\/\u5982\u679c\u5f53\u524d\u4e0b\u6807 &gt;= \u8282\u70b9\u6570,\u5c06\u4e0b\u6807\u590d\u4f4d<\/span>            <span style=\"color: rgb(1, 86, 146);\">if<\/span> (index &gt;= nodes.size()) {                index = <span style=\"color: rgb(183, 85, 1);\">0<\/span>;            }            <span style=\"color: rgb(101, 110, 119);\">\/\/\u83b7\u53d6\u5f53\u524d\u4e0b\u6807\u8282\u70b9<\/span>            ip = nodes.get(index);            <span style=\"color: rgb(101, 110, 119);\">\/\/\u5f53\u524d\u4e0b\u6807\u81ea\u589e<\/span>            index++;        }        <span style=\"color: rgb(1, 86, 146);\">return<\/span> ip;    }    <span style=\"color: rgb(101, 110, 119);\">\/\/ \u5e76\u53d1\u6d4b\u8bd5\uff1a\u4e24\u4e2a\u7ebf\u7a0b\u5faa\u73af\u83b7\u53d6\u8282\u70b9<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">void<\/span> <span style=\"color: rgb(183, 85, 1);\">main<\/span>(String[] args) {        WeightedRoundRobinSimple r = <span style=\"color: rgb(1, 86, 146);\">new<\/span> WeightedRoundRobinSimple();        <span style=\"color: rgb(1, 86, 146);\">new<\/span> Thread(() -&gt; {            <span style=\"color: rgb(1, 86, 146);\">for<\/span> (<span style=\"color: rgb(1, 86, 146);\">int<\/span> i = <span style=\"color: rgb(183, 85, 1);\">1<\/span>; i &lt;= <span style=\"color: rgb(183, 85, 1);\">6<\/span>; i++) {                String serverIp = r.selectNode();                System.out.println(Thread.currentThread().getName() + <span style=\"color: rgb(84, 121, 13);\">\"==\u7b2c\"<\/span> + i + <span style=\"color: rgb(84, 121, 13);\">\"\u6b21\u83b7\u53d6\u8282\u70b9\uff1a\"<\/span> + serverIp);            }        }).start();        <span style=\"color: rgb(1, 86, 146);\">new<\/span> Thread(() -&gt; {            <span style=\"color: rgb(1, 86, 146);\">for<\/span> (<span style=\"color: rgb(1, 86, 146);\">int<\/span> i = <span style=\"color: rgb(183, 85, 1);\">1<\/span>; i &lt;= <span style=\"color: rgb(183, 85, 1);\">6<\/span>; i++) {                String serverIp = r.selectNode();                System.out.println(Thread.currentThread().getName() + <span style=\"color: rgb(84, 121, 13);\">\"==\u7b2c\"<\/span> + i + <span style=\"color: rgb(84, 121, 13);\">\"\u6b21\u83b7\u53d6\u8282\u70b9\uff1a\"<\/span> + serverIp);            }        }).start();    }}<\/span><\/section><\/pre>\n<h2 data-sourcepos=\"1031:1-1031:46\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">SpringCloud \u6574\u5408LoadBalancer \u8d1f\u8f7d\u5747\u8861<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">SpringCloud \u5fae\u670d\u52a1\u4e4b\u95f4 RPC+\u8d1f\u8f7d\u5747\u8861\uff0c\u5e38\u7528\u7684\u6280\u672f\u7ec4\u4ef6\uff0c\u5927\u81f4\u5982\u4e0b\uff1a<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018391\" data-ratio=\"0.6555555555555556\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165024870.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018391\" data-ratio=\"0.6555555555555556\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165024870.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">SpringCloud \u65b0\u7248\u6dd8\u6c70\u4e86 Ribbon\uff0c\u5728 OpenFeign \u4e2d\u6574\u5408 LoadBalancer \u8d1f\u8f7d\u5747\u8861<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9996\u5148\u56de\u987e\u4e00\u4e0b\u8001\u7248\u672c\u7684 Ribbon\u8d1f\u8f7d\u5747\u8861<\/span><\/section>\n<h3 data-sourcepos=\"1045:1-1045:28\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">Ribbon\u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Ribbon\u662fNetflix\u5f00\u53d1\u7684\u4e00\u4e2a\u7528\u4e8e\u5ba2\u6237\u7aef\u8d1f\u8f7d\u5747\u8861\u7684\u5de5\u5177\uff0c\u4e3b\u8981\u7528\u4e8e\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\u8c03\u7528\u5176\u4ed6\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u3002\u5b83\u5177\u6709\u4ee5\u4e0b\u7279\u70b9\u548c\u529f\u80fd\uff1a<\/span><\/section>\n<ol data-sourcepos=\"1050:1-1055:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u8d1f\u8f7d\u5747\u8861<\/strong>\uff1aRibbon\u53ef\u4ee5\u5c06\u8bf7\u6c42\u5e73\u5747\u5730\u5206\u914d\u7ed9\u591a\u4e2a\u540e\u7aef\u670d\u52a1\u5b9e\u4f8b\uff0c\u4ee5\u5b9e\u73b0\u8d1f\u8f7d\u5747\u8861\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u5bb9\u9519\u673a\u5236<\/strong>\uff1a\u5f53\u67d0\u4e2a\u670d\u52a1\u5b9e\u4f8b\u53d1\u751f\u6545\u969c\u6216\u4e0d\u53ef\u7528\u65f6\uff0cRibbon\u80fd\u591f\u81ea\u52a8\u5c06\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u5176\u4ed6\u5065\u5eb7\u7684\u5b9e\u4f8b\uff0c\u63d0\u4f9b\u5bb9\u9519\u80fd\u529b\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u81ea\u5b9a\u4e49\u89c4\u5219<\/strong>\uff1aRibbon\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u8d1f\u8f7d\u5747\u8861\u89c4\u5219\uff0c\u6216\u8005\u81ea\u5b9a\u4e49\u81ea\u5df1\u7684\u89c4\u5219\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u96c6\u6210\u6027<\/strong>\uff1aRibbon\u53ef\u4ee5\u4e0e\u5176\u4ed6Netflix\u5f00\u53d1\u7684\u7ec4\u4ef6\uff08\u5982Eureka\u3001Hystrix\u7b49\uff09\u65e0\u7f1d\u96c6\u6210\uff0c\u63d0\u4f9b\u66f4\u5168\u9762\u7684\u670d\u52a1\u6cbb\u7406\u548c\u5bb9\u9519\u80fd\u529b\u3002<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>\u52a8\u6001\u6027<\/strong>\uff1aRibbon\u652f\u6301\u52a8\u6001\u5237\u65b0\u8d1f\u8f7d\u5747\u8861\u89c4\u5219\u548c\u670d\u52a1\u5217\u8868\uff0c\u80fd\u591f\u968f\u7740\u7cfb\u7edf\u7684\u53d8\u5316\u52a8\u6001\u8c03\u6574\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff0c\u9002\u5e94\u4e0d\u540c\u7684\u573a\u666f\u548c\u9700\u6c42\u3002<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u603b\u7684\u6765\u8bf4\uff0cRibbon\u662f\u4e00\u4e2a\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u5ba2\u6237\u7aef\u8d1f\u8f7d\u5747\u8861\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u6784\u5efa\u9ad8\u6027\u80fd\u3001\u53ef\u9760\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u3002<\/span><\/section>\n<h4 data-sourcepos=\"1060:1-1060:23\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">Ribbon\u91cd\u8981\u63a5\u53e3<\/span><\/h4>\n<table data-sourcepos=\"1062:1-1070:122\" width=\"473\">\n<thead>\n<tr data-sourcepos=\"1062:1-1062:121\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td class=\"selectTdClass\"><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u63a5\u53e3<\/span><\/td>\n<td class=\"selectTdClass\"><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u4f5c\u7528<\/span><\/td>\n<td class=\"selectTdClass\"><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u9ed8\u8ba4\u503c<\/span><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr data-sourcepos=\"1064:1-1064:118\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1064:2-1064:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">IClientConfig<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1064:23-1064:54\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bfb\u53d6\u914d\u7f6e<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1064:56-1064:117\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">DefaultclientConfigImpl<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1065:1-1065:125\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1065:2-1065:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">IRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1065:23-1065:61\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8d1f\u8f7d\u5747\u8861\u89c4\u5219\uff0c\u9009\u62e9\u5b9e\u4f8b<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1065:63-1065:124\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ZoneAvoidanceRule<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1066:1-1066:265\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1066:2-1066:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">IPing<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1066:23-1066:58\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7b5b\u9009\u6389ping\u4e0d\u901a\u7684\u5b9e\u4f8b<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1066:60-1066:264\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9ed8\u8ba4\u91c7\u7528DummyPing\u5b9e\u73b0\uff0c\u8be5\u68c0\u67e5\u7b56\u7565\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u5b9e\u73b0\uff0c\u5b9e\u9645\u4e0a\u5b83\u5e76\u4e0d\u4f1a\u68c0\u67e5\u5b9e\u4f8b\u662f\u5426\u53ef\u7528\uff0c\u800c\u662f\u59cb\u7ec8\u8fd4\u56detrue\uff0c\u9ed8\u8ba4\u8ba4\u4e3a\u6240\u6709\u670d\u52a1\u5b9e\u4f8b\u90fd\u662f\u53ef\u7528\u7684.<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1067:1-1067:149\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1067:2-1067:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ServerList<\/span><server><\/server><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1067:23-1067:57\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ea4\u7ed9Ribbon\u7684\u5b9e\u4f8b\u5217\u8868<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1067:59-1067:148\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>Ribbon<\/strong>: ConfigurationBasedServerList<strong>Spring Cloud Alibaba<\/strong>: NacosServerList<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1068:1-1068:125\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1068:2-1068:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ServerListFilter<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1068:23-1068:61\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fc7\u6ee4\u6389\u4e0d\u7b26\u5408\u6761\u4ef6\u7684\u5b9e\u4f8b<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1068:63-1068:124\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ZonePreferenceServerListFilter<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1069:1-1069:117\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1069:2-1069:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ILoadBalancer<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1069:23-1069:53\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">Ribbon\u7684\u5165\u53e3<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1069:55-1069:116\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ZoneAwareLoadBalancer<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1070:1-1070:122\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1070:2-1070:21\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ServerListUpdater<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1070:23-1070:58\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u66f4\u65b0\u4ea4\u7ed9Ribbon\u7684List\u7684\u7b56\u7565<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1070:60-1070:121\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">PollingServerListUpdater<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 data-sourcepos=\"1072:1-1072:29\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">Ribbon\u8d1f\u8f7d\u5747\u8861\u89c4\u5219<\/span><\/h4>\n<table data-sourcepos=\"1074:1-1080:193\" width=\"473\">\n<thead>\n<tr data-sourcepos=\"1074:1-1074:97\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u89c4\u5219\u540d\u79f0<\/span><\/td>\n<td><span style=\"font-size: 15px;background-color: rgb(246, 248, 250);\">\u7279\u70b9<\/span><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr data-sourcepos=\"1076:1-1076:97\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1076:2-1076:27\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">RandomRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1076:29-1076:96\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u968f\u673a\u9009\u62e9\u4e00\u4e2aServer<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1077:1-1077:200\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1077:2-1077:27\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">RetryRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1077:29-1077:199\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5bf9\u9009\u5b9a\u7684\u8d1f\u8d23\u5747\u8861\u7b56\u7565\u673a\u4e0a\u5145\u503c\u673a\u5236\uff0c\u5728\u4e00\u4e2a\u914d\u7f6e\u65f6\u95f4\u6bb5\u5185\u5f53\u9009\u62e9Server\u4e0d\u6210\u529f\uff0c\u5219\u4e00\u76f4\u5c1d\u8bd5\u4f7f\u7528subRule\u7684\u65b9\u5f0f\u9009\u62e9\u4e00\u4e2a\u53ef\u7528\u7684Server<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1078:1-1078:105\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1078:2-1078:27\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">RoundRobinRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1078:29-1078:104\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8f6e\u8be2\u9009\u62e9\uff0c\u8f6e\u8be2index\uff0c\u9009\u62e9index\u5bf9\u5e94\u4f4d\u7f6eServer<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1079:1-1079:121\" style=\"background-color: rgb(246, 248, 250);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1079:2-1079:27\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">WeightedResponseTimeRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1079:29-1079:120\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6839\u636e\u76f8\u5e94\u65f6\u95f4\u52a0\u6743\uff0c\u76f8\u5e94\u65f6\u95f4\u8d8a\u957f\uff0c\u6743\u91cd\u8d8a\u5c0f\uff0c\u88ab\u9009\u4e2d\u7684\u53ef\u80fd\u6027\u8d8a\u4f4e<\/span><\/section>\n<\/td>\n<\/tr>\n<tr data-sourcepos=\"1080:1-1080:193\" style=\"background-color: rgb(255, 255, 255);border-top-width: 1px;border-top-style: solid;border-top-color: rgb(198, 203, 209);\">\n<td align=\"left\" data-sourcepos=\"1080:2-1080:27\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">ZoneAvoidanceRule<\/span><\/section>\n<\/td>\n<td align=\"left\" data-sourcepos=\"1080:29-1080:192\" style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\uff08\u9ed8\u8ba4\u662f\u8fd9\u4e2a\uff09\u8be5\u7b56\u7565\u80fd\u591f\u5728\u591a\u533a\u57df\u73af\u5883\u4e0b\u9009\u51fa\u6700\u4f73\u533a\u57df\u7684\u5b9e\u4f8b\u8fdb\u884c\u8bbf\u95ee\u3002\u5728\u6ca1\u6709Zone\u7684\u73af\u5883\u4e0b\uff0c\u7c7b\u4f3c\u4e8e\u8f6e\u8be2\uff08RoundRobinRule\uff09<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 data-sourcepos=\"1082:1-1082:35\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">LoadBalancer \u8d1f\u8f7d\u5747\u8861\u7ec4\u4ef6<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">LoadBalancer \u7684\u4f18\u52bf\u4e3b\u8981\u662f\uff0c\u652f\u6301<strong>\u54cd\u5e94\u5f0f\u7f16\u7a0b<\/strong>\u7684\u65b9\u5f0f<strong>\u5f02\u6b65\u8bbf\u95ee<\/strong>\u5ba2\u6237\u7aef\uff0c\u4f9d\u8d56 Spring Web Flux \u5b9e\u73b0\u5ba2\u6237\u7aef\u8d1f\u8f7d\u5747\u8861\u8c03\u7528\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 2020 \u5e74\u4ee5\u524d\u7684 SpringCloud \u91c7\u7528 Ribbon\u4f5c\u4e3a\u8d1f\u8f7d\u5747\u8861\uff0c\u4f46\u662f 2020 \u5e74\u4e4b\u540e\uff0cSpringCloud \u628a Ribbon \u79fb\u9664\u4e86\uff0c\u800c\u662f\u4f7f\u7528\u81ea\u5df1\u7f16\u5199\u7684 LoadBalancer \u66ff\u4ee3.<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u56e0\u6b64\uff0c\u5728 2020 \u5e74\u4ee5\u540e\u7684\u7684 SpringCloud \u7248\u672c\uff0c\u5982\u679c\u5728\u6ca1\u6709\u52a0\u5165 LoadBalancer \u4f9d\u8d56\uff0c\u4f7f\u7528 RestTemplate \u6216 OpenFeign \u8fdc\u7a0b\u8c03\u7528\uff0c\u5c31\u4f1a\u62a5\u4ee5\u4e0b\u9519\u8bef\uff1a<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100018384\" data-ratio=\"0.3194444444444444\"  data-type=\"png\" data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165027434.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100018384\" data-ratio=\"0.3194444444444444\"  data-type=\"png\" data-w=\"1080\" style=\"box-sizing: content-box;border-style: none;background-color: rgb(255, 255, 255);\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165027434.png\"  \/><\/noscript><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c31\u662f\u5728\u544a\u8bc9\u4f60 LoadBalancing \u662f\u672a\u5b9a\u4e49\u7684\uff0c\u5e76\u4e14\u95ee\u4f60\u662f\u4e0d\u662f\u5fd8\u8bb0\u52a0\u5165 spring-cloud-starter-loadbalancer \u4f9d\u8d56\u3002<\/span><\/section>\n<h3 data-sourcepos=\"1098:1-1098:40\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">OpenFeign + LoadBalancer\u6240\u9700\u4f9d\u8d56<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u9700\u8981\u8fdb\u884c\u8fdc\u7a0b\u8c03\u7528\u7684\u670d\u52a1\u4e2d\u5f15\u5165openfeign \u548c loadbalancer \u4f9d\u8d56<\/span><\/section>\n<pre data-sourcepos=\"1102:1-1115:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\">        <span style=\"font-size: 15px;\"><span style=\"color: rgb(101, 110, 119);\">&lt;!--\u79fb\u9664ribbon\u4f9d\u8d56\uff0c\u589e\u52a0loadBalance\u4f9d\u8d56  , \u6dfb\u52a0spring-cloud\u7684\u4f9d\u8d56--&gt;<\/span>        &lt;<span style=\"color: rgb(183, 85, 1);\">dependency<\/span>&gt;            &lt;<span style=\"color: rgb(183, 85, 1);\">groupId<\/span>&gt;org.springframework.cloud&lt;\/<span style=\"color: rgb(183, 85, 1);\">groupId<\/span>&gt;            &lt;<span style=\"color: rgb(183, 85, 1);\">artifactId<\/span>&gt;spring-cloud-starter-loadbalancer&lt;\/<span style=\"color: rgb(183, 85, 1);\">artifactId<\/span>&gt;        &lt;\/<span style=\"color: rgb(183, 85, 1);\">dependency<\/span>&gt;        &lt;<span style=\"color: rgb(183, 85, 1);\">dependency<\/span>&gt;            &lt;<span style=\"color: rgb(183, 85, 1);\">groupId<\/span>&gt;org.springframework.cloud&lt;\/<span style=\"color: rgb(183, 85, 1);\">groupId<\/span>&gt;            &lt;<span style=\"color: rgb(183, 85, 1);\">artifactId<\/span>&gt;spring-cloud-starter-openfeign&lt;\/<span style=\"color: rgb(183, 85, 1);\">artifactId<\/span>&gt;        &lt;\/<span style=\"color: rgb(183, 85, 1);\">dependency<\/span>&gt;<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">maven\u4f9d\u8d56\u8981\u6392\u9664 ribbon<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018392\" data-ratio=\"0.7203703703703703\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165039882.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018392\" data-ratio=\"0.7203703703703703\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165039882.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6392\u9664\u88ab \u5176\u4ed6\u5305 \u9690\u5f62 \u5f15\u5165\u7684 ribbon\uff0c\u6bd4\u5982\u88ab nacos client \u5e26\u5165\u7684 ribbon<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018393\" data-ratio=\"0.7074074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165047964.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018393\" data-ratio=\"0.7074074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165047964.png\"><\/noscript><\/p>\n<h3 data-sourcepos=\"1129:1-1129:40\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">OpenFeign + LoadBalancer\u6240\u9700\u914d\u7f6e<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u914d\u7f6e\u6587\u4ef6 \u7981\u7528 ribbon<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018394\" data-ratio=\"0.6518518518518519\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165058503.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018394\" data-ratio=\"0.6518518518518519\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165058503.png\"  \/><\/noscript><\/p>\n<h3 data-sourcepos=\"1139:1-1139:40\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">OpenFeign + LoadBalancer\u6240\u9700\u6ce8\u89e3<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">@LoadBalancerClients<\/span><\/code><span style=\"font-size: 15px;\">\u662f Spring Cloud \u63d0\u4f9b\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u7528\u4e8e\u914d\u7f6e\u5168\u5c40\u6027\u7684\u8d1f\u8f7d\u5747\u8861\u5668\u5c5e\u6027\u3002\u6bd4\u5982\u914d\u7f6e \u81ea\u5b9a\u4e49\u7684\u8d1f\u8f7d\u5747\u8861\u673a\u5236\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018395\" data-ratio=\"0.6157407407407407\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165104153.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018395\" data-ratio=\"0.6157407407407407\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165104153.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">@LoadBalanced<\/span><\/code><span style=\"font-size: 15px;\">\u662f Spring Cloud \u63d0\u4f9b\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u7528\u4e8e\u6807\u8bb0 RestTemplate \u6216 WebClient \u7684 Bean\uff0c\u4ee5\u542f\u7528\u8d1f\u8f7d\u5747\u8861\u529f\u80fd\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u4e00\u4e2a RestTemplate \u6216 WebClient \u88ab\u6807\u8bb0\u4e3a<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">@LoadBalanced<\/span><\/code><span style=\"font-size: 15px;\">\u540e\uff0cSpring Cloud \u5c06\u4f1a\u4e3a\u5176\u521b\u5efa\u4e00\u4e2a\u4ee3\u7406\u5bf9\u8c61\uff0c\u5e76\u5728\u53d1\u8d77 HTTP \u8bf7\u6c42\u65f6\uff0c\u81ea\u52a8\u6dfb\u52a0\u8d1f\u8f7d\u5747\u8861\u7684\u80fd\u529b\u3002\u5f53\u53d1\u8d77 RPC \u8bf7\u6c42\u65f6\uff0c\u5b9e\u9645\u4e0a\u662f\u7531\u8d1f\u8f7d\u5747\u8861\u5668\u9009\u62e9\u4e00\u4e2a\u76ee\u6807\u670d\u52a1\u5b9e\u4f8b\uff0c\u5e76\u5c06\u8bf7\u6c42\u53d1\u9001\u5230\u8be5\u5b9e\u4f8b\u4e0a\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u4f7f\u7528 RestTemplate \u53d1\u8d77 HTTP RPC \u8bf7\u6c42\u65f6\uff0c\u5982\u679c RestTemplate \u88ab\u6807\u8bb0\u4e3a<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">@LoadBalanced<\/span><\/code><span style=\"font-size: 15px;\">\uff0c\u5219\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u670d\u52a1\u540d\u4f5c\u4e3a URL\uff0c\u800c\u4e0d\u9700\u8981\u6307\u5b9a\u5177\u4f53\u7684 IP \u5730\u5740\u548c\u7aef\u53e3\u53f7\u3002Spring Cloud \u4f1a\u6839\u636e\u670d\u52a1\u540d\u89e3\u6790\u51fa\u53ef\u7528\u7684\u670d\u52a1\u5b9e\u4f8b\uff0c\u5e76\u901a\u8fc7\u8d1f\u8f7d\u5747\u8861\u5668\u9009\u62e9\u5176\u4e2d\u4e00\u4e2a\u6765\u5904\u7406\u8bf7\u6c42\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018396\" data-ratio=\"0.7583333333333333\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165110958.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018396\" data-ratio=\"0.7583333333333333\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165110958.png\"  \/><\/noscript><\/p>\n<h2 data-sourcepos=\"1157:1-1157:37\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">OpenFeign + LoadBalancer \u7684\u6f14\u793a<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u542f\u52a8 provider \u670d\u52a1\u7aef \uff0c \u5177\u4f53\u8bf7\u53c2\u89c1\u300a\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178\u300b\u914d\u5957\u89c6\u9891\uff1a<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018398\" data-ratio=\"0.5824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165117969.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018398\" data-ratio=\"0.5824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165117969.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u542f\u52a8 consumer \u5ba2\u6237\u7aef\u7684\u5fae\u670d\u52a1 \uff0c \u5177\u4f53\u8bf7\u53c2\u89c1\u300a\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178\u300b\u914d\u5957\u89c6\u9891\uff1a<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018399\" data-ratio=\"0.5824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165123925.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018399\" data-ratio=\"0.5824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165123925.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u6848\u4f8b\u7684\u5c55\u793a\u754c\u9762\u5982\u4e0b\uff0c \u5177\u4f53\u8bf7\u53c2\u89c1\u300a\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178\u300b\u914d\u5957\u89c6\u9891\uff1a<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018400\" data-ratio=\"0.5462962962962963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165129542.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018400\" data-ratio=\"0.5462962962962963\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165129542.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6267\u884c\u8bf7\u6c42\u4e4b\u540e\uff0c\u770b\u65ad\u70b9<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018401\" data-ratio=\"0.5027777777777778\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165134983.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018401\" data-ratio=\"0.5027777777777778\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165134983.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u547d\u4e2d\u4e86 LoadBalancer \u7684\u65ad\u70b9<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018402\" data-ratio=\"0.6129629629629629\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165137829.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018402\" data-ratio=\"0.6129629629629629\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165137829.png\"  \/><\/noscript><\/p>\n<h3 data-sourcepos=\"1193:1-1193:43\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">LoadBalancer\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u5747\u8861\u7b56\u7565<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">LoadBalancer\u9ed8\u8ba4\u63d0\u4f9b\u4e861\u79cd\u8d1f\u8f7d\u5747\u8861\u7b56\u7565\uff1a<\/span><\/section>\n<ul data-sourcepos=\"1197:1-1198:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li style=\"font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>(\u9ed8\u8ba4)<\/strong>RoundRobinLoadBalancer - \u8f6e\u8be2\u5206\u914d\u7b56\u7565<\/span><\/section>\n<\/li>\n<\/ul>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u662f\u6765\u81ea\u6e90\u7801\u7684\u7ed3\u6784<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018403\" data-ratio=\"0.6046296296296296\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165144793.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018403\" data-ratio=\"0.6046296296296296\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165144793.png\"><\/noscript><\/p>\n<h3 data-sourcepos=\"1205:1-1205:54\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">LoadBalancer\u57fa\u4e8eNacos\u6743\u91cd\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u7b97\u6cd5<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong>ReactorLoadBalancer<\/strong>\u63a5\u53e3\uff0c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u7b97\u6cd5\u9700\u8981\u5b9e\u73b0\u8be5\u63a5\u53e3\uff0c\u5e76\u5b9e\u73b0<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">choose<\/span><\/code><span style=\"font-size: 15px;\">\u903b\u8f91\uff0c\u9009\u53d6\u5bf9\u5e94\u7684\u8282\u70b9<\/span><\/section>\n<pre data-sourcepos=\"1213:1-1222:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\">public interface ReactorLoadBalancer&lt;T&gt; extends ReactiveLoadBalancer&lt;T&gt; {    Mono&lt;Response&lt;T&gt;&gt; choose(Request request);    default Mono&lt;Response&lt;T&gt;&gt; choose() {        return this.choose(REQUEST);    }}<\/span><\/section><\/pre>\n<h3 data-sourcepos=\"1224:1-1224:28\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u901a\u8fc7nacos\u914d\u7f6e \u6743\u91cd<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">nacos\u53ef\u4ee5\u914d\u7f6e\u4e0d\u540c\u5b9e\u4f8b\u7684\u6743\u91cd\u4fe1\u606f\uff0c\u53ef\u4ee5\u5728<\/span><\/section>\n<ol data-sourcepos=\"1228:1-1230:0\" style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;padding-left: 2em;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">yaml\u4e2d\u914d\u7f6e<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">spirng.cloud.nacos.discovery.weight<\/span><\/code><span style=\"font-size: 15px;\">\u6570\u503c\u8303\u56f4\u4ece1-100 \uff0c\u9ed8\u8ba4\u4e3a1<\/span><\/section>\n<\/li>\n<li style=\"margin-top: 0.25em;font-size: 15px;\">\n<section style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53ef\u4ee5\u5728nacos\u9762\u677f\u627e\u5230\u8be5\u5b9e\u4f8b\u4fe1\u606f\uff0c\u5e76\u5b9e\u65f6\u914d\u7f6e\u5b9e\u4f8b\u7684\u6743\u91cd<\/span><\/section>\n<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018404\" data-ratio=\"0.3824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165150679.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018404\" data-ratio=\"0.3824074074074074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165150679.png\"  \/><\/noscript><\/p>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7f16\u8f91\u6743\u91cd<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018405\" data-ratio=\"0.8763020833333334\" data-s=\"300,640\"  data-type=\"png\" data-w=\"768\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165153581.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018405\" data-ratio=\"0.8763020833333334\" data-s=\"300,640\"  data-type=\"png\" data-w=\"768\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165153581.png\"  \/><\/noscript><\/p>\n<h3 data-sourcepos=\"1241:1-1241:42\" style=\"margin: 10px auto 5px;font-weight: bold;font-size: 20px;white-space: normal;background-color: rgb(252, 252, 252);\"><span style=\"margin-top: -1px;padding: 6px 20px 6px 10px;font-size: 17px;font-weight: normal;display: inline-block;line-height: 1.3;background-color: rgb(212, 224, 250);border-bottom-right-radius: 100px;color: rgb(30, 30, 30);\">\u57fa\u4e8enacos\u6743\u91cd\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8d1f\u8f7d<\/span><\/h3>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6743\u91cd\uff1a\u6570\u503c\u8d8a\u9ad8\uff0c\u4ee3\u8868\u88ab\u9009\u53d6\u7684\u6982\u7387\u8d8a\u5927.<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6839\u636e<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">RoundRobin<\/span><\/code><span style=\"font-size: 15px;\">\u6e90\u7801\uff0c\u81ea\u5b9a\u4e49NacosWeightLoadBalancer<\/span><\/section>\n<pre data-sourcepos=\"1247:1-1331:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">import<\/span> org.apache.commons.logging.Log;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.apache.commons.logging.LogFactory;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.beans.factory.ObjectProvider;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.client.ServiceInstance;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.client.loadbalancer.DefaultResponse;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.client.loadbalancer.EmptyResponse;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.client.loadbalancer.Request;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.client.loadbalancer.Response;<span style=\"color: rgb(1, 86, 146);\">import<\/span> org.springframework.cloud.loadbalancer.core.*;<span style=\"color: rgb(1, 86, 146);\">import<\/span> reactor.core.publisher.Mono;<span style=\"color: rgb(1, 86, 146);\">import<\/span> java.util.*;<span style=\"color: rgb(1, 86, 146);\">import<\/span> java.util.concurrent.ThreadLocalRandom;<span style=\"color: rgb(101, 110, 119);\">\/** * \u57fa\u4e8enacos\u6743\u91cd\u7684\u8d1f\u8f7d\u5747\u8861*\/<\/span><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">NacosWeightLoadBalancer<\/span> <span style=\"color: rgb(1, 86, 146);\">implements<\/span> <span style=\"color: rgb(183, 85, 1);\">ReactorServiceInstanceLoadBalancer<\/span> {    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> Log log = LogFactory.getLog(NacosWeightLoadBalancer.<span style=\"color: rgb(1, 86, 146);\">class<\/span>);    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> String serviceId;    <span style=\"color: rgb(1, 86, 146);\">private<\/span> ObjectProvider&lt;ServiceInstanceListSupplier&gt; serviceInstanceListSupplierProvider;    <span style=\"color: rgb(101, 110, 119);\">\/\/nacos\u6743\u91cd\u83b7\u53d6\u540d\u79f0\uff0c\u5728nacos\u5143\u6570\u636e\u4e2d<\/span>    <span style=\"color: rgb(1, 86, 146);\">private<\/span> <span style=\"color: rgb(1, 86, 146);\">static<\/span> <span style=\"color: rgb(1, 86, 146);\">final<\/span> String NACOS_WEIGHT_NAME = <span style=\"color: rgb(84, 121, 13);\">\"nacos.weight\"<\/span>;    <span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(183, 85, 1);\">NacosWeightLoadBalancer<\/span>(ObjectProvider&lt;ServiceInstanceListSupplier&gt; serviceInstanceListSupplierProvider, String serviceId) {        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.serviceId = serviceId;        <span style=\"color: rgb(1, 86, 146);\">this<\/span>.serviceInstanceListSupplierProvider = serviceInstanceListSupplierProvider;    }    <span style=\"color: rgb(1, 86, 146);\">@Override<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> Mono&lt;Response&lt;ServiceInstance&gt;&gt; choose(Request request) {        ServiceInstanceListSupplier supplier = <span style=\"color: rgb(1, 86, 146);\">this<\/span>.serviceInstanceListSupplierProvider.getIfAvailable(NoopServiceInstanceListSupplier::<span style=\"color: rgb(1, 86, 146);\">new<\/span>);        <span style=\"color: rgb(1, 86, 146);\">return<\/span> supplier.get(request).next().map((serviceInstances) -&gt; {            <span style=\"color: rgb(1, 86, 146);\">return<\/span> <span style=\"color: rgb(1, 86, 146);\">this<\/span>.processInstanceResponse(supplier, serviceInstances);        });    }    <span style=\"color: rgb(1, 86, 146);\">private<\/span> Response&lt;ServiceInstance&gt; <span style=\"color: rgb(183, 85, 1);\">processInstanceResponse<\/span>(ServiceInstanceListSupplier supplier, List&lt;ServiceInstance&gt; serviceInstances) {        Response&lt;ServiceInstance&gt; serviceInstanceResponse = <span style=\"color: rgb(1, 86, 146);\">this<\/span>.getInstanceResponse(serviceInstances);        <span style=\"color: rgb(1, 86, 146);\">if<\/span> (supplier <span style=\"color: rgb(1, 86, 146);\">instanceof<\/span> SelectedInstanceCallback &amp;&amp; serviceInstanceResponse.hasServer()) {            ((SelectedInstanceCallback)supplier).selectedServiceInstance(serviceInstanceResponse.getServer());        }        <span style=\"color: rgb(1, 86, 146);\">return<\/span> serviceInstanceResponse;    }    <span style=\"color: rgb(1, 86, 146);\">private<\/span> Response&lt;ServiceInstance&gt; <span style=\"color: rgb(183, 85, 1);\">getInstanceResponse<\/span>(List&lt;ServiceInstance&gt; instances) {        <span style=\"color: rgb(1, 86, 146);\">if<\/span> (instances.isEmpty()) {            <span style=\"color: rgb(1, 86, 146);\">if<\/span> (log.isWarnEnabled()) {                log.warn(<span style=\"color: rgb(84, 121, 13);\">\"No servers available for service: \"<\/span> + <span style=\"color: rgb(1, 86, 146);\">this<\/span>.serviceId);            }        } <span style=\"color: rgb(1, 86, 146);\">else<\/span> {            <span style=\"color: rgb(101, 110, 119);\">\/\/\u6839\u636e\u6743\u91cd\u9009\u62e9\u5b9e\u4f8b\uff0c\u6743\u91cd\u9ad8\u7684\u88ab\u9009\u4e2d\u7684\u6982\u7387\u5927<\/span>            <span style=\"color: rgb(101, 110, 119);\">\/\/nacos.weight\u7684\u503c\u8d8a\u5927\uff0c\u88ab\u9009\u4e2d\u7684\u6982\u7387\u8d8a\u5927<\/span>            Double totalWeight = <span style=\"color: rgb(183, 85, 1);\">0<\/span>D;            <span style=\"color: rgb(1, 86, 146);\">for<\/span> (ServiceInstance instance : instances) {                String s = instance.getMetadata().get(NACOS_WEIGHT_NAME);                <span style=\"color: rgb(1, 86, 146);\">double<\/span> weight = Double.parseDouble(s);                totalWeight = totalWeight + weight;                <span style=\"color: rgb(101, 110, 119);\">\/\/\u653e\u7f6e\u5f53\u524d\u5b9e\u4f8b\u7684\u6743\u91cd\u533a\u95f4<\/span>                instance.getMetadata().put(<span style=\"color: rgb(84, 121, 13);\">\"weight\"<\/span>,String.valueOf(totalWeight));            }            <span style=\"color: rgb(101, 110, 119);\">\/\/\u968f\u673a\u83b7\u53d6\u4e00\u4e2a\u533a\u95f4\u7c7b\u7684\u6570\u503c\uff0cnacos\u6743\u91cd\u8d8a\u5927\uff0c\u533a\u95f4\u8d8a\u5927\uff0c\u5219\u968f\u673a\u6570\u503c\u843d\u5230\u76f8\u5e94\u7684\u533a\u95f4\u7684\u6982\u7387\u662f\u7531\u533a\u95f4\u7684\u5927\u5c0f\u6765\u51b3\u5b9a\u7684\u3002<\/span>            <span style=\"color: rgb(1, 86, 146);\">double<\/span> index = ThreadLocalRandom.current().nextDouble(totalWeight);            <span style=\"color: rgb(101, 110, 119);\">\/\/\u6839\u636e\u6743\u91cd\u533a\u95f4\u9009\u62e9\u5b9e\u4f8b<\/span>            <span style=\"color: rgb(1, 86, 146);\">for<\/span> (ServiceInstance instance : instances) {                <span style=\"color: rgb(1, 86, 146);\">double<\/span> weight = Double.parseDouble(instance.getMetadata().get(<span style=\"color: rgb(84, 121, 13);\">\"weight\"<\/span>));                <span style=\"color: rgb(1, 86, 146);\">if<\/span> (index &lt;= weight) {                    <span style=\"color: rgb(1, 86, 146);\">return<\/span> <span style=\"color: rgb(1, 86, 146);\">new<\/span> DefaultResponse(instance);                }            }        }        <span style=\"color: rgb(1, 86, 146);\">return<\/span> <span style=\"color: rgb(1, 86, 146);\">new<\/span> EmptyResponse();    }}<\/span><\/section><\/pre>\n<h4 data-sourcepos=\"1333:1-1333:41\" style=\"margin: 10px auto -1px;padding-left: 3px;font-weight: bold;font-size: 18px;white-space: normal;border-left-width: 10px;border-left-style: solid;border-left-color: rgb(222, 235, 255);\"><span style=\"margin-top: -1px;padding-top: 6px;padding-right: 5px;padding-left: 5px;font-size: 16px;display: inline-block;line-height: 1.1;\">\u914d\u7f6e\u4f7f\u7528\u81ea\u5b9a\u4e49\u8d1f\u8f7d\u5747\u8861\u5668<\/span><\/h4>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u589e\u52a0<\/span><code style=\"font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;padding: 0.14em 0.3em;vertical-align: 5%;background-color: rgba(27, 31, 35, 0.05);border-radius: 3px;border: 1px solid rgb(223, 226, 229);\"><span style=\"font-size: 15px;\">WeightLoadBalanceConfiguration<\/span><\/code><\/section>\n<pre data-sourcepos=\"1337:1-1347:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">public<\/span> <span style=\"color: rgb(1, 86, 146);\">class<\/span> <span style=\"color: rgb(183, 85, 1);\">WeightLoadBalanceConfiguration<\/span> {    <span style=\"color: rgb(1, 86, 146);\">@Bean<\/span>    <span style=\"color: rgb(1, 86, 146);\">public<\/span> ReactorLoadBalancer&lt;ServiceInstance&gt; <span style=\"color: rgb(183, 85, 1);\">weightLoadBalancer<\/span>(Environment environment, LoadBalancerClientFactory loadBalancerClientFactory) {        String name = environment.getProperty(LoadBalancerClientFactory.PROPERTY_NAME);        <span style=\"color: rgb(1, 86, 146);\">return<\/span> <span style=\"color: rgb(1, 86, 146);\">new<\/span> NacosWeightLoadBalancer(loadBalancerClientFactory                .getLazyProvider(name, ServiceInstanceListSupplier.<span style=\"color: rgb(1, 86, 146);\">class<\/span>), <span style=\"color: rgb(183, 85, 1);\">name<\/span>);    }}<\/span><\/section><\/pre>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4fee\u6539\u4e3b\u7c7b\u914d\u7f6e\uff0c\u4f7f\u7528NacosWeightLoadBalancer \u8d1f\u8f7d\u5747\u8861<\/span><\/section>\n<pre data-sourcepos=\"1351:1-1356:3\" style=\"letter-spacing: normal;text-align: start;font-family: ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace;font-size: 13.600000381469727px;margin-bottom: 16px;word-wrap: normal;overflow: auto;line-height: 1.45;border-radius: 4px;border: thin solid rgb(224, 224, 224);caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);\"><section style=\"display: block;overflow-x: auto;padding: 16px;color: rgb(47, 51, 55);background-color: rgb(246, 246, 246);font-family: Menlo, ui-monospace, SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Courier, &quot;Courier New&quot;, Monaco, monospace, system-ui, ui-serif, ui-rounded;word-break: normal;border-radius: 3px;word-wrap: normal;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"color: rgb(1, 86, 146);\">@LoadBalancerClients<\/span>({        <span style=\"color: rgb(1, 86, 146);\">@LoadBalancerClient<\/span>(name = <span style=\"color: rgb(84, 121, 13);\">\"loadbalance-provider-service\"<\/span>, configuration = WeightLoadBalanceConfiguration.<span style=\"color: rgb(1, 86, 146);\">class<\/span>)})<\/span><\/section><\/pre>\n<h2 data-sourcepos=\"1360:1-1360:45\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top-width: 1px;border-top-style: solid;border-top-color: rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u8bf4\u5728\u6700\u540e\uff1a\u6709\u95ee\u9898\u627e\u8001\u67b6\u6784\u53d6\u7ecf<\/span><\/h2>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u5927\u5bb6\u80fd\u5bf9\u7b54\u5982\u6d41\uff0c\u5982\u6570\u5bb6\u73cd\uff0c\u57fa\u672c\u4e0a \u9762\u8bd5\u5b98\u4f1a\u88ab\u4f60 \u9707\u60ca\u5230\u3001\u5438\u5f15\u5230\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6700\u7ec8\uff0c<strong>\u8ba9\u9762\u8bd5\u5b98\u7231\u5230 \u201c\u4e0d\u80fd\u81ea\u5df2\u3001\u53e3\u6c34\u76f4\u6d41\u201d<\/strong>\u3002offer\uff0c \u4e5f\u5c31\u6765\u4e86\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u9762\u8bd5\u4e4b\u524d\uff0c\u5efa\u8bae\u5927\u5bb6\u7cfb\u7edf\u5316\u7684\u5237\u4e00\u6ce2 5000\u9875\u300a<\/span><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247497474&amp;idx=1&amp;sn=54a7b194a72162e9f13695443eabe186&amp;scene=21#wechat_redirect\" style=\"color: rgb(0, 122, 255);text-decoration: underline;font-size: 15px;\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" ><span style=\"font-size: 15px;\">\u5c3c\u6069Java\u9762\u8bd5\u5b9d\u5178PDF<\/span><\/a><span style=\"font-size: 15px;\">\u300b\uff0c\u91cc\u8fb9\u6709\u5927\u91cf\u7684\u5927\u5382\u771f\u9898\u3001\u9762\u8bd5\u96be\u9898\u3001\u67b6\u6784\u96be\u9898\u3002\u5f88\u591a\u5c0f\u4f19\u4f34\u5237\u5b8c\u540e\uff0c \u540a\u6253\u9762\u8bd5\u5b98\uff0c \u5927\u5382\u6a2a\u7740\u8d70\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u5237\u9898\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u6709\u5565\u95ee\u9898\uff0c\u5927\u5bb6\u53ef\u4ee5\u6765 \u627e 40\u5c81\u8001\u67b6\u6784\u5e08\u5c3c\u6069\u4ea4\u6d41\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53e6\u5916\uff0c\u5982\u679c\u6ca1\u6709\u9762\u8bd5\u673a\u4f1a\uff0c<strong>\u53ef\u4ee5\u627e\u5c3c\u6069\u6765\u6539\u7b80\u5386\u3001\u505a\u5e2e\u6276\u3002<\/strong><\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9047\u5230\u804c\u4e1a\u96be\u9898\uff0c\u627e\u8001\u67b6\u6784\u53d6\u7ecf\uff0c \u53ef\u4ee5\u7701\u53bb\u592a\u591a\u7684\u6298\u817e\uff0c\u7701\u53bb\u592a\u591a\u7684\u5f2f\u8def\u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5c3c\u6069\u6307\u5bfc\u4e86\u5927\u91cf\u7684\u5c0f\u4f19\u4f34\u4e0a\u5cb8\uff0c\u524d\u6bb5\u65f6\u95f4\uff0c<strong>\u521a\u6307\u5bfc\u4e00\u4e2a40\u5c81+\u88ab\u88c1\u5c0f\u4f19\u4f34\uff0c\u62ff\u5230\u4e86\u4e00\u4e2a\u5e74\u85aa100W\u7684offer\u3002<\/strong><\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u72e0\u72e0\u5377\uff0c\u5b9e\u73b0 \u201coffer\u81ea\u7531\u201d \u5f88\u5bb9\u6613\u7684\uff0c \u524d\u6bb5\u65f6\u95f4\u4e00\u4e2a\u6b66\u6c49\u7684\u8ddf\u7740\u5c3c\u6069\u5377\u4e862\u5e74\u7684\u5c0f\u4f19\u4f34\uff0c \u5728\u6781\u5ea6\u4e25\u5bd2\/\u75db\u82e6\u88ab\u88c1\u7684\u73af\u5883\u4e0b\uff0c offer\u62ff\u5230\u624b\u8f6f\uff0c \u5b9e\u73b0\u771f\u6b63\u7684 \u201coffer\u81ea\u7531\u201d \u3002<\/span><\/section>\n<section style=\"font-size: 16px;letter-spacing: normal;text-align: start;white-space: normal;margin-bottom: 16px;caret-color: rgb(36, 41, 46);color: rgb(36, 41, 46);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53e6\u5916\uff0c\u5c3c\u6069\u4e5f\u7ed9\u4e00\u7ebf\u4f01\u4e1a\u63d0\u4f9b \u300aDDD \u7684\u67b6\u6784\u843d\u5730\u300b\u4f01\u4e1a\u5185\u90e8\u57f9\u8bad\uff0c\u76ee\u524d\u7ed9\u4e0d\u5c11\u4f01\u4e1a\u505a\u8fc7\u5185\u90e8\u7684\u54a8\u8be2\u548c\u57f9\u8bad\uff0c\u6548\u679c\u975e\u5e38\u597d\u3002<\/span><\/section>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100018406\" data-ratio=\"2\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165154845.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100018406\" data-ratio=\"2\" data-s=\"300,640\"  data-type=\"jpeg\" data-w=\"1080\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165154845.jpeg\"  \/><\/noscript><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 22px;margin: 10px auto 5px;border-top: 1px solid rgb(242, 242, 242);background-color: rgb(242, 242, 242);\"><span style=\"margin-top: -1px;padding-top: 14px;padding-bottom: 14px;padding-right: 5px;padding-left: 5px;font-size: 17px;border-top: 4px solid rgb(33, 33, 34);display: inline-block;line-height: 1.5;font-weight: normal;background-color: rgb(30, 30, 30);border-bottom-right-radius: 100px;color: rgb(255, 255, 255);padding-right: 20px;padding-left: 10px;\">\u90e8\u5206\u5386\u53f2\u6848\u4f8b<\/span><\/h2>\n<ul class=\"list-paddingleft-2\" style=\"outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.5440000295639038px;white-space: normal;width: 577.421875px;\">\n<li style=\"outline: 0px;font-size: 15px;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486199&amp;idx=1&amp;sn=de39c68ae34b0aad6ddfe29d9946c411&amp;chksm=97b57b7fa0c2f2694c125d65e8419eedde35a5f8e969fc48e45b59a9c1e9c7fedb487d2720b8&amp;scene=21#wechat_redirect\" textvalue=\"\u88ab\u88c1\u592a\u723d\uff1a\u6bcf\u6708\u5927\u6da81W\uff0c10\u5e74CRUD\u5c0f\u4f19\uff0c\u9760\u8f6c\u67b6\u6784\u4e00\u4e2a\u6708\u4e0a\u5cb8\uff0c\u5e74\u85aa50W\u723d\u6b6a\u4e86\uff01\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;\"><span style=\"outline: 0px;\">\u88ab\u88c1\u592a\u723d\uff1a<\/span><\/strong><span style=\"outline: 0px;\">\u6bcf\u6708\u5927\u6da81W\uff0c10\u5e74CRUD\u5c0f\u4f19\uff0c\u9760\u8f6c\u67b6\u6784\u4e00\u4e2a\u6708\u4e0a\u5cb8\uff0c\u5e74\u85aa50W\u723d\u6b6a\u4e86\uff01<\/span><\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 15px;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486166&amp;idx=1&amp;sn=90d928134542309a25e80a992bef4f5a&amp;chksm=97b57b5ea0c2f2483c47fcf02c5b0aae3ba8e42a77bf5c8af0971bdaa48f28283375f6caeb3e&amp;scene=21#wechat_redirect\" textvalue=\"\u5c0f\u767d\u8f6c\u67b6\u6784\uff0c\u9006\u6da830%\uff1aCRUD\u5c0f\u4f197\u5e74\uff0c\u72e0\u53773\u4e2a\u6708\u5347\u7ea7\u4e3a\u67b6\u6784\u5e08\uff0c\u723d\u7206\u4e86\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;\"><span style=\"outline: 0px;\">\u5c0f\u767d\u8f6c\u67b6\u6784<\/span><\/strong><span style=\"outline: 0px;\">\uff0c\u9006\u6da830%\uff1aCRUD\u5c0f\u4f197\u5e74\uff0c\u72e0\u53773\u4e2a\u6708\u5347\u7ea7\u4e3a\u67b6\u6784\u5e08\uff0c\u723d\u7206\u4e86<\/span><\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 15px;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486132&amp;idx=1&amp;sn=bb949c992b3a35935bf5fca57f19e2d8&amp;chksm=97b57b3ca0c2f22aeb0e648191801aff933164dcf2b06eb4b6274df6499bffb0bba8e8169205&amp;scene=21#wechat_redirect\" textvalue=\"\u81ea\u8003\u672c\u79d19\u5e74\u7ecf\u9a8c\uff0c\u72e0\u53773\u6708\u673a\u4f1a\u7206\u8868\uff0c\u97622\u5468\u540e\u65363\u4e2aoffer \uff0c\u6ee1\u8840\u590d\u6d3b\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;\"><span style=\"outline: 0px;\">\u7edd\u5730\u9022\u751f\uff1a<\/span><\/strong><span style=\"outline: 0px;\">9\u5e74\u7ecf\u9a8c<\/span><\/a><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486132&amp;idx=1&amp;sn=bb949c992b3a35935bf5fca57f19e2d8&amp;chksm=97b57b3ca0c2f22aeb0e648191801aff933164dcf2b06eb4b6274df6499bffb0bba8e8169205&amp;scene=21#wechat_redirect\" textvalue=\"\u81ea\u8003\u672c\u79d19\u5e74\u7ecf\u9a8c\uff0c\u72e0\u53773\u6708\u673a\u4f1a\u7206\u8868\uff0c\u97622\u5468\u540e\u65363\u4e2aoffer \uff0c\u6ee1\u8840\u590d\u6d3b\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;letter-spacing: 0.578px;\" rel=\"noopener\" rel=\"nofollow\" ><span style=\"outline: 0px;\">\u81ea\u8003<\/span><\/a><span style=\"outline: 0px;color: rgb(217, 33, 66);\">\u5c0f\u4f19\u4f34\uff0c\u8ddf\u7740\u5c3c\u6069\u72e0\u53773\u6708\u786c\u6838\u6280\u672f\uff0c\u9762\u8bd5\u673a\u4f1a\u7206\u8868\uff0c2\u5468\u540e\u65363\u4e2aoffer \uff0c\u6ee1\u8840\u590d\u6d3b<\/span><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 15px;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486098&amp;idx=1&amp;sn=bbc5732b071477573bfab8a259d208d3&amp;chksm=97b57b1aa0c2f20c27dd74b490b6062c9eec262a3ac25548534ff70290b172dcc51c6eafe532&amp;scene=21#wechat_redirect\" textvalue=\"35\u5c81\u88ab\u88c16\u4e2a\u6708 \u804c\u4e1a\u7edd\u671b\uff0c\u8f6c\u67b6\u6784\u6025\u6551\u4e0a\u5cb8\uff0cDDD\u548c3\u9ad8\u9879\u76ee\u592a\u91cd\u8981\u4e86\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;\"><span style=\"outline: 0px;\">\u786c\u8f6c\u67b6\u6784\uff1a<\/span><\/strong><span style=\"outline: 0px;\">35\u5c81\u88ab\u88c16\u4e2a\u6708 \u804c\u4e1a\u7edd\u671b\uff0c\u8f6c\u67b6\u6784\u6025\u6551\u4e0a\u5cb8\uff0cDDD\u548c3\u9ad8\u9879\u76ee\u592a\u91cd\u8981\u4e86<\/span><\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;font-size: 15px;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486077&amp;idx=1&amp;sn=090ad8d19559c727b80e321cd70e3c32&amp;chksm=97b57bf5a0c2f2e32a982b62cfeb2db8744260d7e2d80efdf11ad7c1c5257057ea9b1f7419ec&amp;scene=21#wechat_redirect\" textvalue=\"\u9006\u5929\u6539\u547d\uff0c3\u5e74\u7ecf\u9a8c2\u672c\uff0c\u53773\u4e2a\u6708\u6da8\u85aa60%\uff0c\u8fdb\u51c6\u5927\u5382(\u5f97\u7269\u7b49)\uff0c\u5e74\u85aa36W\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><strong style=\"outline: 0px;\">\u9006\u5929\u6539\u547d\uff1a<\/strong>3\u5e74\u7ecf\u9a8c2\u672c\uff0c\u53773\u4e2a\u6708\u6da8\u85aa60%\uff0c\u8fdb\u51c6\u5927\u5382(\u5f97\u7269\u3001\u4e50\u4fe1\u300158\u96c6\u56e2\u7b49)\uff0c\u5e74\u85aa36W<\/a><\/p>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486059&amp;idx=1&amp;sn=23fa04e6ea781525732f021ab1afaeeb&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u597335\u5c81CRUD\u7a0b\u5e8f\u5a9b\uff0c12\u6708\u88ab\u88c1\u540e\uff0c\u62ff30\u4e2a\u673a\u4f1a2\u4e2aoffer\u4e0a\u5cb8\uff0c\u5e74\u5e95\u5927\u88c1\u5458\u592a\u4e0d\u5bb9\u6613\u4e86<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247486028&amp;idx=1&amp;sn=cf10ecda7a986b26e0359eba7a9cfeff&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >38\u8fd8\u6709\u6551\u5417\uff1f\u6709\u300242\u5c81\u88ab\u88c12\u5e74\u5929\u5feb\u584c\u4e86\uff0c\u6025\u65511\u4e2a\u6708\u4e0a\u5cb8\uff0c\u6210\u5f00\u53d1\u7ecf\u7406offer\uff0c\u8d77\u6b7b\u56de\u751f<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485994&amp;idx=1&amp;sn=50b95d3ae3009d395458c8740595977f&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u88ab\u88c1\u4e0d\u614c\uff0c9\u5e74\u5c0f\u4f191\u4e2a\u6708\u559c\u63d0\u5e74\u85aa60W offer\uff0c\u505a\u4e2d\u95f4\u4ef6\u67b6\u6784\uff0c\u723d\u6b6a\u4e86<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485972&amp;idx=1&amp;sn=9f2b5059aaad70c8018b7c6c95a08994&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >12\u5e74\u5c0f\u4f19\u8f6c\u67b6\u6784\uff0c1\u5c0f\u65f6\u8715\u53d8\u6536\u5e74\u85aa55\u4e07offer\uff0c\u79d8\u8bc0\uff1aGO+Java\u53cc\u6816\u67b6\u6784<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485942&amp;idx=1&amp;sn=faa999fc9508435db7a88af2716492d9&amp;chksm=97b5787ea0c2f168ac80d344670df16be12614d37161a893ebed88d4c915384fcbc024996403&amp;scene=21#wechat_redirect\" textvalue=\"\u5e74\u85aa\u767e\u4e07\uff1a40\u5c81\u5c0f\u4f19\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" hasload=\"1\" style=\"outline: 0px;color: var(--weui-LINK);cursor: pointer;\" rel=\"noopener\" rel=\"nofollow\" ><span style=\"outline: 0px;color: rgb(171, 25, 66);\"><strong style=\"outline: 0px;\">\u5e74\u85aa\u767e\u4e07\uff1a<\/strong>40\u5c81\u5c0f\u4f19\u88ab\u88c16\u4e2a\u6708\uff0c\u8ddf\u7740\u5c3c\u6069\u731b\u53773\u6708\u786c\u6838\u6280\u672f\uff0c100W\u5e74\u85aa\u9006\u88ad \uff0c\u4e0a\u5cb8\u79d8\u8bc0\uff1a\u9996\u5e2d\u67b6\u6784\/\u603b\u67b6\u6784<\/span><\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485914&amp;idx=1&amp;sn=7832d0b63155f12eb8036321a99991c8&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u4e0d\u6015\u88c1\u5458\uff0c8\u5e74\u5c0f\u4f19\u53bb\u4e2d\u5e74\u5371\u673a\uff0c\u79d8\u8bc0\uff1a\u6362\u67b6\u6784\u5e08\u8d5b\u9053\uff0c\u4e0a\u5f97\u5385\u5802\uff0c\u4e0b\u5f97\u53a8\u623f\uff0c\u8d8a\u65e9\u8d8a\u597d<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485881&amp;idx=1&amp;sn=97aae4d5edf8ea30d363e22ca86b5955&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u88ab\u88c1\u5458\u540e\u56e0\u7978\u5f97\u798f\uff0c\u62ffN+1\u540e\uff0c\u9006\u6da830%\uff0c\u5982\u4f55\u5b9e\u73b0\uff1f<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485855&amp;idx=1&amp;sn=e9f6b1de7352f09d686c1481632fc454&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u9006\u5929\u5566\uff1a4\u5e74crud\u5c0f\u4f19\u6536shein+\u94f6\u884c\u4e24\u4f18\u8d28offer\uff0c\u72e0\u53771\u6708\u6536\u5e74\u85aa43\u4e07\u5927\u6da830%<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485838&amp;idx=1&amp;sn=72d9733544a5310ee5068fc4533173ea&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u539f\u6765\uff0c\u62ff\u5927\u5382offer \u6709\u6377\u5f84......<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485812&amp;idx=1&amp;sn=d87729bea8a8e22f3c2b3eb207d3b38b&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u592a\u52b2\u7206.... \u88ab\u88c14\u4e2a\u6708\uff0c38\u5c81Android\u8f6cJava\uff0c2\u4e2a\u6708\u63d0\u67b6\u6784offer<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485780&amp;idx=1&amp;sn=03be191625369d33ac54b5c5066c7a68&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u8d77\u6b7b\u56de\u751f\uff1a8\u5e74\u5c0f\u4f19\u9ad8\u4e2d\u6bd5\u4e1a+\u9891\u7e41\u8df3\u69fd\uff0c\u72e0\u53772\u6708\uff0c\u63d0Java\u9ad8\u7ea7offer<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485663&amp;idx=1&amp;sn=357ab76bc6695485b7941e8eb24a0b42&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u723d\u7ffb\u4e86\uff1a\u6307\u5bfc3\u8f6e\uff0c5\u5e74\u5c0f\u4f19\u65365\u5927offer\uff0c\u6da850%\uff0c\u9886\u8def\u6a21\u5f0f\u592a\u725b<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485643&amp;idx=1&amp;sn=ce71b19e7c9745ab2fe8bfc75f54d993&amp;chksm=97b57943a0c2f055e5c085eec48586e9ba05ae661acabe4cfb7e984c5aeb03d6beeafd204eba&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u964d\u7ef4\u653b\u51fb\uff0c37\u5e74\u5927\u9f84\u8001\u4f19\u559c\u63d060W\u5e74\u85aaoffer\uff0c1\u4e2a\u6708\u987a\u5229\u4e0a\u5cb8<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485571&amp;idx=1&amp;sn=c0096484fd2e1202c14a4bd9d37427c2&amp;chksm=97b5790ba0c2f01da764b8b7b5e3c8a5b02f42d2ed30809f9d7b2d8e73a5bebc9102ef502bc8&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u67b6\u6784\u901f\u6210\uff1a\u4ece\u4e00\u9762\u6740\u5230\u4e00\u6b21\u8fc7\uff0c\u8bb07\u5e74\u5973\u67b6\u6784\u7684\u901f\u6210\u7ecf\u5386<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzIxMzYwODY3OQ==&amp;mid=2247485452&amp;idx=1&amp;sn=68102559298564895b1496e2230dddb2&amp;chksm=97b57984a0c2f0927d80f8719a7dc56f43ff13e373eb3886d39be98538180f919225b5ac05f2&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u6781\u901f\u62ffoffer\uff1a\u963f\u91ccP6\u88ab\u88c1\u540e\u6781\u901f\u4e0a\u5cb8\uff0c1\u4e2a\u6708\u5185\u559c\u63d02\u4f18\u8d28offer(\u542b\u6ef4\u6ef4)<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247496226&amp;idx=1&amp;sn=459a566cfa5915a720e80e1880fd730d&amp;chksm=c14148a6f636c1b08a321d08384c5d76e184c22f8f4457f980452c45c163bdc5ab91ca17b919&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u5927\u9006\u88ad\uff1a\u505a\u5316\u5de512\u5e74\uff0c35\u5c81\u8f6cJava\uff0c\u88ab\u88c14\u4e2a\u6708\u540e\uff0c1\u4e2a\u6708\u6536\u67b6\u6784Offer\uff0c\u5927\u9f84\u8de8\u884c\uff0c\u8d85\u7ea7\u725b<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247492928&amp;idx=1&amp;sn=82fd1c530d0ad8ad798b5c35c040641b&amp;chksm=c1415fc4f636d6d25f16e12a73a2635073994ef742efdddcc1185c5d7727785c98fac14e8de8&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u88ab\u88c1\u540e\u70b8\u723d\uff1a10\u5e74\u5c0f\u4f1912\u5929\u706b\u901f\u4e0a\u5cb8\uff0c\u53cd\u6da820%\uff0c\u723d\u66b4\u4e86<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247492621&amp;idx=1&amp;sn=f6ada03c596baedcf995e5cb60d255b2&amp;chksm=c1415e89f636d79f13b25d7f3691fb79931515f15b421d65fab1c5e34d4cce4165b6d1772737&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u88c1\u5c31\u88c1\uff0c6\u5e74\u5c0f\u4f1960W\u6781\u901f\u4e0a\u5cb8\uff0c\u767d\u62ff20W\u8fd8\u6e38\u4e00\u5708\u62c9\u8428\uff0c\u771f\u9999<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247491450&amp;idx=1&amp;sn=98379c07e430562a8a244121e63f47d7&amp;chksm=c142a5fef6352ce8e3ee64090a6d0619a9d40484f358302d96990e7655ec16f8d8e7624ca88e&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u6781\u901f\u62ffoffer\uff1a\u88ab\u6bd5\u4e1a3\u4e2a\u6708\uff0c11\u5e74\u7ecf\u9a8c\u5c0f\u4f190.5\u4e2a\u6708\u6781\u901f\u62ffoffer\uff0c\u9886\u8def\u6a21\u5f0f\u7684\u5de8\u5927\u5a01\u529b<\/a><\/p>\n<\/section>\n<\/li>\n<li style=\"outline: 0px;\">\n<section style=\"margin-top: 5px;margin-bottom: 5px;outline: 0px;line-height: 26px;color: rgb(1, 1, 1);font-size: 15px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Segoe UI&quot;, Arial, freesans, sans-serif;\">\n<p style=\"margin-bottom: 16px;padding-top: 8px;padding-bottom: 8px;outline: 0px;color: black;line-height: 1.75em;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzkxNzIyMTM1NQ==&amp;mid=2247491496&amp;idx=1&amp;sn=cb31f7510a7c2efb7daf6cad793860ad&amp;scene=21#wechat_redirect\" data-linktype=\"2\" style=\"outline: 0px;color: rgb(217, 33, 66);cursor: pointer;border-bottom-width: 0px;border-bottom-style: solid;\" target=\"_blank\"  rel=\"nofollow\" >\u60ca\u5929\u5927\u9006\u88ad\uff1a8\u5e74\u5c0f\u4f1920\u5929\u65f6\u95f4\u63d075W\u5e74\u85aaoffer\uff0c\u9006\u6da850%\uff0c\u79d8\u8bc0\u5728\u8fd9<\/a><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-wrap: wrap;background-color: rgb(255, 255, 255);min-width: 0px;border-width: 0px;border-style: initial;border-color: initial;font-size: 16.3636px;text-align: center;\">\n<section style=\"outline: 0px;display: inline-block;\">\n<section style=\"margin: 0em 0.5em 0.1em;outline: 0px;color: rgb(255, 108, 0);font-size: 1.8em;line-height: 1;\"><span style=\"outline: 0px;font-size: 20px;\"><strong data-brushtype=\"text\" style=\"outline: 0px;\">\u804c\u4e1a\u6551\u52a9\u7ad9<\/strong><\/span><\/section>\n<section data-brushtype=\"text\" style=\"margin: 0.5em 1em;outline: 0px;font-size: 1em;font-weight: inherit;text-align: inherit;text-decoration: inherit;line-height: 1;color: rgb(120, 124, 129);\">\n<p style=\"outline: 0px;\">\u5b9e\u73b0\u804c\u4e1a\u8f6c\u578b\uff0c\u6781\u901f\u4e0a\u5cb8<\/p>\n<p style=\"outline: 0px;\">\n<p style=\"outline: 0px;\"><img decoding=\"async\" border=\"0\" class=\"rich_pages wxw-img lazyload\" data-cropselx1=\"0\" data-cropselx2=\"190\" data-cropsely1=\"0\" data-cropsely2=\"190\" data-imgfileid=\"100017799\" data-ratio=\"1\"  data-type=\"jpeg\" data-w=\"258\" data-width=\"200px\" opacity=\"\" style=\"padding: 4px;outline: 0px;border-radius: 4px;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);visibility: visible !important;width: 190px !important;\" title=\"\" vspace=\"0\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165203868.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" border=\"0\" class=\"rich_pages wxw-img\" data-cropselx1=\"0\" data-cropselx2=\"190\" data-cropsely1=\"0\" data-cropsely2=\"190\" data-imgfileid=\"100017799\" data-ratio=\"1\"  data-type=\"jpeg\" data-w=\"258\" data-width=\"200px\" opacity=\"\" style=\"padding: 4px;outline: 0px;border-radius: 4px;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);visibility: visible !important;width: 190px !important;\" title=\"\" vspace=\"0\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165203868.jpeg\"  \/><\/noscript><\/p>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;text-wrap: wrap;color: rgb(62, 62, 62);font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 12px;letter-spacing: 0.68px;text-align: center;background-color: rgb(255, 255, 255);line-height: 25.6px;\"><span style=\"outline: 0px;font-size: 14px;\">\u5173\u6ce8<strong style=\"outline: 0px;\">\u804c\u4e1a\u6551\u52a9\u7ad9<\/strong>\u516c\u4f17\u53f7\uff0c\u83b7\u53d6\u6bcf\u5929\u804c\u4e1a\u5e72\u8d27<\/span><span style=\"outline: 0px;font-size: 14px;\">\u52a9\u60a8\u5b9e\u73b0<strong style=\"outline: 0px;\">\u804c\u4e1a\u8f6c\u578b\u3001\u804c\u4e1a\u5347\u7ea7\u3001\u6781\u901f\u4e0a\u5cb8<\/strong>---------------------------------<\/span><\/p>\n<section style=\"margin-bottom: 0px;outline: 0px;font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-wrap: wrap;background-color: rgb(255, 255, 255);min-width: 0px;border-width: 0px;border-style: initial;border-color: initial;font-size: 16.3636px;text-align: center;\">\n<section style=\"outline: 0px;display: inline-block;\">\n<section style=\"margin: 0em 0.5em 0.1em;outline: 0px;font-weight: inherit;color: rgb(255, 108, 0);font-size: 1.8em;line-height: 1;\"><span style=\"outline: 0px;font-size: 20px;\"><strong data-brushtype=\"text\" style=\"outline: 0px;\">\u6280\u672f\u81ea\u7531\u5708<\/strong><\/span><\/section>\n<section data-brushtype=\"text\" style=\"margin: 0.5em 1em;outline: 0px;font-size: 1em;font-weight: inherit;text-align: inherit;text-decoration: inherit;line-height: 1;color: rgb(120, 124, 129);\">\n<p style=\"outline: 0px;\">\u5b9e\u73b0\u67b6\u6784\u8f6c\u578b\uff0c\u518d\u65e0\u4e2d\u5e74\u5371\u673a<\/p>\n<p style=\"outline: 0px;\">\n<p style=\"outline: 0px;\"><img decoding=\"async\" border=\"0\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100017798\" data-ratio=\"1\"  data-type=\"jpeg\" data-w=\"258\" data-width=\"200px\" height=\"\" opacity=\"\" style=\"padding: 4px;outline: 0px;border-radius: 4px;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);visibility: visible !important;width: 200px !important;\" title=\"\" vspace=\"0\" width=\"200px\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165205682.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" border=\"0\" class=\"rich_pages wxw-img\" data-imgfileid=\"100017798\" data-ratio=\"1\"  data-type=\"jpeg\" data-w=\"258\" data-width=\"200px\" height=\"\" opacity=\"\" style=\"padding: 4px;outline: 0px;border-radius: 4px;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);visibility: visible !important;width: 200px !important;\" title=\"\" vspace=\"0\" width=\"200px\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165205682.jpeg\"  \/><\/noscript><span style=\"outline: 0px;color: rgb(62, 62, 62);\"><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"margin-bottom: 0px;outline: 0px;text-wrap: wrap;color: rgb(62, 62, 62);font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 12px;letter-spacing: 0.68px;text-align: center;background-color: rgb(255, 255, 255);line-height: 25.6px;\"><span style=\"outline: 0px;font-size: 14px;\">\u5173\u6ce8<strong style=\"outline: 0px;\">\u6280\u672f\u81ea\u7531\u5708<\/strong>\u516c\u4f17\u53f7\uff0c\u83b7\u53d6\u6bcf\u5929\u6280\u672f\u5343\u8d27<\/span><span style=\"outline: 0px;font-size: 14px;\">\u4e00\u8d77\u6210\u4e3a\u725b\u903c\u7684<strong style=\"outline: 0px;\">\u672a\u6765\u8d85\u7ea7\u67b6\u6784\u5e08<\/strong><\/span><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;text-wrap: wrap;color: rgb(62, 62, 62);font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 12px;letter-spacing: 0.68px;text-align: center;background-color: rgb(255, 255, 255);line-height: 25.6px;\"><strong style=\"outline: 0px;\">\u51e0\u5341\u7bc7\u67b6\u6784\u7b14\u8bb0\u30015000\u9875\u9762\u8bd5\u5b9d\u5178\u300120\u4e2a\u6280\u672f\u5723\u7ecf<span style=\"outline: 0px;font-size: 18px;color: rgb(255, 108, 0);\">\u8bf7\u52a0\u5c3c\u6069\u4e2a\u4eba\u5fae\u4fe1<\/span><span style=\"outline: 0px;font-size: 18px;color: rgb(61, 167, 66);\">\u514d\u8d39\u62ff\u8d70<\/span><\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;text-wrap: wrap;color: rgb(62, 62, 62);font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 12px;letter-spacing: 0.68px;text-align: center;background-color: rgb(255, 255, 255);line-height: 25.6px;\"><strong style=\"outline: 0px;\"><span style=\"outline: 0px;font-size: 16px;color: rgb(255, 108, 0);\">\u6697\u53f7<\/span>\uff0c\u8bf7\u5728 \u516c\u4f17\u53f7\u540e\u53f0 \u53d1\u9001\u6d88\u606f\uff1a<span style=\"outline: 0px;font-size: 16px;color: rgb(255, 108, 0);\">\u9886\u7535\u5b50\u4e66<\/span><\/strong><\/p>\n<p style=\"margin-bottom: 0px;outline: 0px;color: rgb(62, 62, 62);font-family: \u5fae\u8f6f\u96c5\u9ed1;font-size: 12px;letter-spacing: 0.68px;text-align: center;background-color: rgb(255, 255, 255);line-height: 25.6px;\"><span style=\"outline: 0px;font-size: 14px;\">\u5982\u6709\u6536\u83b7\uff0c\u8bf7\u70b9\u51fb\u5e95\u90e8\u7684\"<span style=\"outline: 0px;font-size: 16px;color: rgb(2, 30, 170);\">\u5728\u770b<\/span>\"\u548c\"<span style=\"outline: 0px;font-size: 16px;color: rgb(2, 30, 170);\">\u8d5e<\/span>\"\uff0c\u8c22\u8c22<\/span><\/p>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u6280\u672f\u81ea\u7531\u5708              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>FSAC\u672a\u6765\u8d85\u7ea7\u67b6\u6784\u5e08 \u67b6\u6784\u5e08\u603b\u52a8\u5458\u5b9e\u73b0\u67b6\u6784\u8f6c\u578b\uff0c\u518d\u65e0\u4e2d\u5e74\u5371\u673a \u5c3c\u6069\u8bf4\u5728\u524d\u9762 \u572840\u5c81\u8001\u67b6\u6784\u5e08 \u5c3c\u6069\u7684\u8bfb\u8005\u4ea4\u6d41\u7fa4(50+)\u4e2d\uff0c\u6700\u8fd1 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4468,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[30],"tags":[],"class_list":["post-4505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-30"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551-1024x436.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551-1024x436.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524164957551.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165001972.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165005891.webp","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165005891.webp","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165006730.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165006730.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165008361.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165008361.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010426.webp","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010426.webp","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010572.webp","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165010572.webp","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165011552.webp","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165011552.webp","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012181.webp","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012181.webp","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012939.jpeg","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165012939.jpeg","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165014236.jpeg","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165014236.jpeg","id":"image19"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165016667.webp","id":"image20"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165016667.webp","id":"image21"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165017889.png","id":"image22"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165017889.png","id":"image23"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165018103.webp","id":"image24"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165018103.webp","id":"image25"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019405.webp","id":"image26"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019405.webp","id":"image27"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019303.png","id":"image28"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165019303.png","id":"image29"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165022762.png","id":"image30"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165022762.png","id":"image31"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165024870.png","id":"image32"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165024870.png","id":"image33"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165027434.png","id":"image34"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165027434.png","id":"image35"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165039882.png","id":"image36"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165039882.png","id":"image37"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165047964.png","id":"image38"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165047964.png","id":"image39"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165058503.png","id":"image40"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165058503.png","id":"image41"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165104153.png","id":"image42"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165104153.png","id":"image43"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165110958.png","id":"image44"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165110958.png","id":"image45"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165117969.png","id":"image46"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165117969.png","id":"image47"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165123925.png","id":"image48"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165123925.png","id":"image49"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165129542.png","id":"image50"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165129542.png","id":"image51"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165134983.png","id":"image52"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165134983.png","id":"image53"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165137829.png","id":"image54"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165137829.png","id":"image55"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165144793.png","id":"image56"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165144793.png","id":"image57"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165150679.png","id":"image58"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165150679.png","id":"image59"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165153581.png","id":"image60"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165153581.png","id":"image61"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165154845.jpeg","id":"image62"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165154845.jpeg","id":"image63"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165203868.jpeg","id":"image64"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165203868.jpeg","id":"image65"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165205682.jpeg","id":"image66"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524165205682.jpeg","id":"image67"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"\u9762\u8bd5","post_date":"2024-04-29","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":354,"next_post_id":4043,"next_post_title":"\u5173\u4e8eTCP\/IP\u7684\u9762\u8bd5\u9898\uff0c\u770b\u5b8c\u8fd9\u4e00\u7bc7\u5c31\u591f\u4e86","previous_post_id":4047,"previous_post_title":"\u9762\u8bd5\u5b98\uff1a\u53ef\u4ee5\u901a\u8fc7\u589e\u52a0volatile\u5173\u952e\u5b57\u6765\u89e3\u51b3Double Checked Locking\u95ee\u9898\u5417\uff1f","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=4505"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4468"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}