{"id":582,"date":"2022-08-19T18:39:45","date_gmt":"2022-08-19T10:39:45","guid":{"rendered":"https:\/\/frogvps.com\/?p=582"},"modified":"2022-08-19T18:39:45","modified_gmt":"2022-08-19T10:39:45","slug":"lvs%e7%9a%84%e5%8d%81%e4%ba%8c%e7%a7%8d%e8%b0%83%e5%ba%a6%e7%ae%97%e6%b3%95%e6%b1%87%e6%80%bb","status":"publish","type":"post","link":"https:\/\/frogvps.com\/?p=582","title":{"rendered":"LVS\u7684\u5341\u4e8c\u79cd\u8c03\u5ea6\u7b97\u6cd5\u6c47\u603b"},"content":{"rendered":"\n<p>LVS\u7684\u8c03\u5ea6\u7b97\u6cd5\u5206\u4e3a\u9759\u6001\u65b9\u6cd5\u548c\u52a8\u6001\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u9759\u6001\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u4ec5\u6839\u636e\u7b97\u6cd5\u672c\u8eab\u8fdb\u884c\u8c03\u5ea6\uff0c\u4e0d\u8003\u8651\u540e\u7aef\u670d\u52a1\u5668\u7684\u8d1f\u8f7d\u3002\u6709\u56db\u79cd\u7b97\u6cd5\uff0c\u524d\u4e24\u79cd\u7ecf\u5e38\u7528\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>RR: round robin\uff0c\u8f6e\u8be2\uff0c\u8f83\u5e38\u7528<\/li><li>WRR: weighted round robin \uff0c\u52a0\u6743\u8f6e\u8be2\uff0c\u8f83\u5e38\u7528<\/li><li>SH: Source Hashing\uff0c\u6e90IP\u5730\u5740\u54c8\u5e0c\uff0c\u5c06\u6765\u81ea\u4e8e\u540c\u4e00\u4e2aIP\u5730\u5740\u7684\u8bf7\u6c42\u59cb\u7ec8\u53d1\u5f80\u7b2c\u4e00\u6b21\u6311\u4e2d\u7684RS\uff0c\u4ece\u800c\u5b9e\u73b0\u4f1a\u8bdd\u7ed1\u5b9a<\/li><li>DH: Destination Hashing\uff0c\u76ee\u6807\u5730\u5740\u54c8\u5e0c\uff0c\u7b2c\u4e00\u6b21\u8f6e\u8be2\u8c03\u5ea6\u81f3RS\uff0c\u540e\u7eed\u5c06\u53d1\u5f80\u540c\u4e00\u4e2a\u76ee\u6807\u5730\u5740\u7684\u8bf7\u6c42\u59cb\u7ec8\u8f6c\u53d1\u81f3\u7b2c\u4e00\u6b21\u6311\u4e2d\u7684RS\uff0c\u5178\u578b\u4f7f\u7528\u573a\u666f\u662f\u6b63\u5411\u4ee3\u7406\u7f13\u5b58\u573a\u666f\u4e2d\u7684\u8d1f\u8f7d\u5747\u8861\uff0c\u5982: Web\u7f13\u5b58<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u52a8\u6001\u7b97\u6cd5<\/h2>\n\n\n\n<p>\u6839\u636e\u8c03\u5ea6\u7b97\u6cd5\u548c\u6bcf\u53f0RS\u5f53\u524d\u7684\u8d1f\u8f7d\u72b6\u6001\u8fdb\u884c\u8c03\u5ea6\uff0coverhead\u8d8a\u5927\u8bf4\u660e\u8d8a\u5fd9\uff0c\u8d8a\u5c0f\u8bf4\u660e\u8d8a\u4e0d\u5fd9\uff0c\u6240\u4ee5overhead\u8f83\u5c0f\u7684RS\u5c06\u88ab\u8c03\u5ea6\u3002 \u6709\u516d\u79cd\u7b97\u6cd5\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>LC: least connections\uff08\u6700\u5c11\u8fde\u63a5\uff09\uff0c\u9002\u7528\u4e8e\u957f\u8fde\u63a5\u5e94\u7528<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Overhead=activeconns*256+inactiveconns<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>WLC: weighted LC\uff0c\u9ed8\u8ba4\u8c03\u5ea6\u7b97\u6cd5<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Overhead=(activeconns*256+inactiveconns)\/weight<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>SED: Shortest Expection Delay\uff0c\u521d\u59cb\u8fde\u63a5\u9ad8\u6743\u91cd\u4f18\u5148\uff0c\u53ea\u68c0\u67e5\u6d3b\u52a8\u8fde\u63a5\uff0c\u800c\u4e0d\u8003\u8651\u975e\u6d3b\u52a8\u8fde\u63a5<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>Overhead=(activeconns+1)*256\/weight<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>NQ: Never Queue\uff0c\u7b2c\u4e00\u8f6e\u5747\u5300\u5206\u914d\uff0c\u540e\u7eedSED<\/li><li>LBLC: Locality-Based LC\uff0c\u52a8\u6001\u7684DH\u7b97\u6cd5\uff0c\u4f7f\u7528\u573a\u666f\uff1a\u6839\u636e\u8d1f\u8f7d\u72b6\u6001\u5b9e\u73b0\u6b63\u5411\u4ee3\u7406,\u5b9e\u73b0Web Cache\u7b49<\/li><li>LBLCR: LBLC with Replication\uff0c\u5e26\u590d\u5236\u529f\u80fd\u7684LBLC\uff0c\u89e3\u51b3LBLC\u8d1f\u8f7d\u4e0d\u5747\u8861\u95ee\u9898\uff0c\u4ece\u8d1f\u8f7d\u91cd\u7684\u590d\u5236\u5230\u8d1f\u8f7d\u8f7b\u7684RS<\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">FO\u548cOVF\uff08\u5185\u6838\u65b0\u589e\uff09<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>FO\uff08Weighted Fail Over\uff09\uff0c\u904d\u5386\u865a\u62df\u670d\u52a1\u6240\u5173\u8054\u7684\u771f\u5b9e\u670d\u52a1\u5668\u94fe\u8868\uff0c\u627e\u5230\u8fd8\u672a\u8fc7\u8f7d\uff08\u672a\u8bbe\u7f6eIP_VS_DEST_F_OVERLOAD\u6807\u5fd7\uff09\u7684\u4e14\u6743\u91cd\u6700\u9ad8\u7684\u771f\u5b9e\u670d\u52a1\u5668\uff0c\u8fdb\u884c\u8c03\u5ea6\uff0c\u5c5e\u4e8e\u9759\u6001\u7b97\u6cd5\u3002<\/li><li>OVF\uff08Overflow-connection\uff09\uff0c\u57fa\u4e8e\u771f\u5b9e\u670d\u52a1\u5668\u7684\u6d3b\u52a8\u8fde\u63a5\u6570\u91cf\u548c\u6743\u91cd\u503c\u5b9e\u73b0\u3002\u5c06\u65b0\u8fde\u63a5\u8c03\u5ea6\u5230\u6743\u91cd\u503c\u6700\u9ad8\u7684\u771f\u5b9e\u670d\u52a1\u5668\uff0c\u76f4\u5230\u5176\u6d3b\u52a8\u8fde\u63a5\u6570\u91cf\u8d85\u8fc7\u6743\u91cd\u503c\uff0c\u4e4b\u540e\u8c03\u5ea6\u5230\u4e0b\u4e00\u4e2a\u6743\u91cd\u503c\u6700\u9ad8\u7684\u771f\u5b9e\u670d\u52a1\u5668\uff0c\u5728\u6b64OVF\u7b97\u6cd5\u4e2d\uff0c\u904d\u5386\u865a\u62df\u670d\u52a1\u76f8\u5173\u8054\u7684\u771f\u5b9e\u670d\u52a1\u5668\u94fe\u8868\uff0c\u627e\u5230\u6743\u91cd\u503c\u6700\u9ad8\u7684\u53ef\u7528\u771f\u5b9e\u670d\u52a1\u5668\u3002\u5c5e\u4e8e\u52a8\u6001\u7b97\u6cd5\u3002<\/li><\/ol>\n\n\n\n<p><strong>\u4e00\u4e2a\u53ef\u7528\u7684\u771f\u5b9e\u670d\u52a1\u5668\u9700\u8981\u540c\u65f6\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u672a\u8fc7\u8f7d\uff08\u672a\u8bbe\u7f6eIP_VS_DEST_F_OVERLOAD\u6807\u5fd7\uff09<\/li><li>\u771f\u5b9e\u670d\u52a1\u5668\u5f53\u524d\u7684\u6d3b\u52a8\u8fde\u63a5\u6570\u91cf\u5c0f\u4e8e\u5176\u6743\u91cd\u503c<\/li><li>\u5176\u6743\u91cd\u503c\u4e0d\u4e3a\u96f6<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>LVS\u7684\u8c03\u5ea6\u7b97\u6cd5\u5206\u4e3a\u9759\u6001\u65b9\u6cd5\u548c\u52a8\u6001\u65b9\u6cd5\u3002 \u9759\u6001\u65b9\u6cd5 \u4ec5\u6839\u636e\u7b97\u6cd5\u672c\u8eab\u8fdb\u884c\u8c03\u5ea6\uff0c\u4e0d\u8003\u8651\u540e\u7aef\u670d\u52a1\u5668\u7684\u8d1f\u8f7d\u3002\u6709\u56db\u79cd\u7b97\u6cd5\uff0c\u524d\u4e24\u79cd\u7ecf\u5e38\u7528\u3002 RR: round robin\uff0c\u8f6e\u8be2\uff0c\u8f83\u5e38\u7528 WRR: weighted round robin \uff0c\u52a0\u6743\u8f6e\u8be2\uff0c\u8f83&#8230;<\/p>\n","protected":false},"author":1,"featured_media":143,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"topic":[],"class_list":["post-582","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=582"}],"version-history":[{"count":5,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions"}],"predecessor-version":[{"id":587,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/posts\/582\/revisions\/587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=\/wp\/v2\/media\/143"}],"wp:attachment":[{"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=582"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/frogvps.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}