{"id":87279,"date":"2024-01-21T09:27:11","date_gmt":"2024-01-21T01:27:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=87279"},"modified":"2024-01-21T09:27:11","modified_gmt":"2024-01-21T01:27:11","slug":"distributed-micro-service","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/distributed-micro-service.html","title":{"rendered":"\u4f55\u4e3a\u5206\u5e03\u5f0f\u3001\u5fae\u670d\u52a1\u548c\u96c6\u7fa4\uff01"},"content":{"rendered":"
\u5c0f\u9a6c\u6b63\u5728\u7ecf\u8425\u4e00\u4e2a\u5728\u7ebf\u8d2d\u7269\u7f51\u7ad9\uff0c\u540d\u53ebTT\u732b\uff0c\u6709\u5546\u54c1\u7ba1\u7406\u3001\u8ba2\u5355\u7ba1\u7406\u3001\u7528\u6237\u7ba1\u7406\u3001\u652f\u4ed8\u7ba1\u7406\u3001\u8d2d\u7269\u8f66\u7b49\u6a21\u5757\uff0c\u6bcf\u4e2a\u6a21\u5757\u90e8\u7f72\u5230\u72ec\u7acb\u7684\u4e91\u670d\u52a1\u4e3b\u673a\u3002<\/p>\n
\u73b0\u5728\uff0c\u7a0b\u5e8f\u5458\u5c0f\u660e\u540c\u5b66\u6d4f\u89c8TT\u732b\uff0c\u60f3\u4e70\u4e00\u6b3e\u725b\u903c\u7684cherry\u673a\u68b0\u952e\u76d8\u6765\u63d0\u5347\u81ea\u5df1\u7684\u5de5\u4f5c\u6548\u7387\u3002\u4e8e\u662f\u4ed6\u6253\u5f00TT\u732b\u9996\u9875\u3001\u641c\u7d22\u5546\u54c1\u3001\u6d4f\u89c8\u8be6\u60c5\u4ee5\u53ca\u8bc4\u8bba\u3001\u6dfb\u52a0\u8d2d\u7269\u8f66\u3001\u4e0b\u5355\u3001\u652f\u4ed8\u7b49\u4e00\u7cfb\u5217\u64cd\u4f5c\u3002\u5c0f\u660e\u540c\u5b66\u4e00\u6c14\u5475\u6210\uff0c\u6d41\u7545\u5730\u5b8c\u6210\u4e86\u8d2d\u7269\uff0c\u5f53\u7136\u4e5f\u82b1\u8d39\u4e86\u4e0d\u5c11\u94f6\u5b50\u3002<\/p>\n
\u4f46\u7cfb\u7edf\u53c8\u662f\u5982\u4f55\u8fdb\u884c\u8fd9\u4e00\u7cfb\u5217\u64cd\u4f5c\uff0c\u5982\u4e0b\u56fe\u9519\u7efc\u590d\u6742\u7684\u8c03\u7528\u5173\u7cfb(\u81ea\u884c\u5ffd\u7565\u90e8\u5206\u7ec6\u8282)\u3002\u7528\u6237\u770b\u4e0d\u89c1\u3001\u6478\u4e0d\u7740\uff0c\u4f46\u6574\u4e2a\u4e0b\u5355\u8fc7\u7a0b\u5374\u884c\u8d70\u5728\u7f51\u7edc\u4e4b\u95f4\u3002<\/p>\n
<\/p>\n
TT\u732b\u628a\u6240\u6709\u529f\u80fd\u6a21\u5757\u5206\u5e03\u90e8\u7f72\u5728\u4e0d\u540c\u7684\u5730\u65b9\uff0c\u6700\u7ec8\u5b8c\u6210\u4e86\u7528\u6237\u4e00\u7cfb\u5217\u7684\u8bf7\u6c42\uff0c\u8fd9\u5927\u6982\u5c31\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7cfb\u7edf\u5427\u3002<\/p>\n
\u535a\u4e3b\u8ba4\u4e3a\u5fae\u670d\u52a1\u662f\u4e00\u79cd\u67b6\u6784\uff0c\u4e5f\u662f\u5728\u5206\u5e03\u5f0f\u8303\u7574\u4e4b\u5185\u7684\u3002\u591a\u5fae\u624d\u53eb\u5fae\uff1f\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u5fae\u670d\u52a1\u66f4\u52a0\u5f3a\u8c03\u5355\u4e00\u804c\u8d23\u3001\u8f7b\u91cf\u7ea7\u901a\u4fe1\uff08HTTP\uff09\u3001\u72ec\u7acb\u6027\u5e76\u4e14\u8fdb\u7a0b\u9694\u79bb\u3002\u597d\u4e86\uff0c\u6ca1\u4ec0\u4e48\u597d\u8bf4\u7684\u4e86\uff0c\u5b9e\u8df5\u51fa\u771f\u77e5\uff0c\u5efa\u8bae\u5927\u5bb6\u591a\u591a\u4e86\u89e3 Spring-Cloud\u76f8\u5173\u5fae\u670d\u52a1\u7ec4\u4ef6\u3002<\/p>\n
TT\u732b\uff0c\u6bcf\u5e74\u90fd\u4f1a\u641e\u4e00\u4e9b\u6d3b\u52a8\uff0c\u6bd4\u5982\u5973\u751f\u6700\u7231\u7684\u5149\u68cd\u8282(\u53cc11)\uff0c\u591c\u6df1\u4eba\u9759\u7684\u65f6\u5019\u4f1a\u77ac\u95f4\u6d8c\u5165\u5927\u91cf\u7528\u6237\uff0c\u6307\u4e0d\u5b9a\u5c31\u4f1a\u628a\u67d0\u4e2a\u670d\u52a1\u6253\u8db4\u4e0b\u3002<\/p>\n
\u8fd9\u65f6\u5019\uff0c\u95ee\u9898\u6765\u4e86\u7528\u6237\u4e0b\u5355\u8d85\u65f6\uff0c\u6216\u8005\u76f4\u63a5500\u9519\u8bef\uff0c\u5982\u4f55\u53bb\u89e3\u51b3\uff1f<\/p>\n
<\/p>\n
\u8fd9\u79cd\u4e8b\u60c5\u600e\u4e48\u53ef\u4ee5\u5728\u5982\u6b64\u91cd\u8981\u7684\u6d3b\u52a8\u4e2d\u51fa\u73b0\uff1f\u5176\u5b9e\u9a6c\u7238\u7238\u63d0\u524d\u8d2d\u4e70\u4e86\u591a\u53f0\u670d\u52a1\u5668\uff0c\u5de5\u7a0b\u5e08\u4eec\u5df2\u5206\u522b\u628a\u5404\u4e2a\u4e1a\u52a1\u529f\u80fd\u6a21\u5757\u590d\u5236\u90e8\u7f72\u4e86\u591a\u4efd\u3002<\/p>\n
\u6bcf\u4e2a\u76f8\u540c\u529f\u80fd\u7684\u6a21\u5757\uff0c\u5b83\u4eec\u6784\u6210\u4e86\u4e00\u4e2a\u7ec4\uff0c\u5e76\u4ee5\u5355\u4e00\u7cfb\u7edf\u7684\u6a21\u5f0f\u52a0\u4ee5\u7ba1\u7406\u3002\u5f53\u59b9\u5b50\u8fdb\u884c\u4e0b\u5355\u64cd\u4f5c\u65f6\uff0c\u5b9e\u9645\u4e0a\u662f\u8ddf\u4e00\u4e2a\u96c6\u7fa4\u7ec4\u53d1\u751f\u5173\u7cfb\uff0c\u4f46\u7cfb\u7edf\u4f1a\u786e\u4fdd\u53ea\u8ddf\u5176\u4e2d\u4e00\u4e2a\u53d1\u751f\u4e86\u5173\u7cfb\uff0c\u5177\u4f53\u8ddf\u8c01\uff0c\u96c6\u7fa4\u7ec4\u6709\u81ea\u5df1\u7684\u8c03\u5ea6\u7b97\u6cd5\uff0c\u4e0d\u8981\u62c5\u5fc3\u8ddf\u59b9\u5b50\u53d1\u751f\u4e0d\u4e86\u5173\u7cfb\u3002<\/p>\n
<\/p>\n
\u4e3e\u4e2a\u53e4\u4ee3\u7325\u7410\u800c\u4e0d\u6deb\u8361\u7684\u4f8b\u5b50\u5427\uff0c\u5982\u679c\u4f60\u751f\u6d3b\u5728\u53e4\u4ee3\uff0c\u5e7418\uff0c\u672a\u5a5a\uff0c\u9ad8\u5bcc\u5e05\uff0c\u6025\u9700\u89e3\u51b3\u4e2a\u4eba\u751f\u7406\u95ee\u9898\u3002\u6545\uff0c\u4f60\u6765\u5230\u4e86\u4f20\u8bf4\u4e2d\u7684\u98ce\u6708\u573a\uff0c\u54b3\u54b3\uff0c\u8fd9\u4e2a\u53e4\u4ee3\u53ef\u662f\u5408\u6cd5\u7684\u3002\u8fd9\u65f6\u5019\u8001\u9e28\u6216\u8005\u5927\u8336\u58f6\u8fc7\u6765\u62db\u547c\u4f60\u4e86\uff0c\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u8981\u6c42\uff0c\u4f60\u4f1a\u88ab\u5e26\u8fdb\u4e00\u4e2a\u5c4b\u91cc\uff0c\u91cc\u9762\u6709\u4e2a\u98ce\u5c18\u5973\u5b50\u2026\u2026<\/p>\n
<\/p>\n
\u753b\u98ce\u4e00\u8f6c\uff0c\u6709\u6ca1\u6709\u95ea\u778e\u81ea\u5df1\u7684\u7a0b\u5e8f\u5458\u4e07\u5e74\u949b\u5408\u91d1\u72d7\u773c\u3002\u4f60\u53ef\u4ee5\u8fd9\u4e48\u7406\u89e3\uff0c\u8001\u9e28\u5c31\u662f\u8d1f\u8f7d\u5747\u8861\u5668\uff0c\u5185\u7f6e\u8c03\u5ea6\u7b97\u6cd5\uff0c\u98ce\u5c18\u5973\u5b50\u5c31\u662f\u96c6\u7ec4\u5176\u4e2d\u7684\u4e00\u4e2a\u3002<\/p>\n
\u597d\u4e86\uff0c\u8a00\u5f52\u6b63\u4f20\uff0c\u7701\u7565\u53f7\u81ea\u884c\u8111\u8865\uff0c\u5c0f\u4f19\u4f34\u4eec\u770b\u5230\u8fd9\u91cc\u53ef\u80fd\u4f1a\u95ee\u4e86\uff0c\u5e73\u65f6\u751f\u4ea7\u73af\u5883\u4e2d\u6211\u4eec\u90fd\u7528\u4ec0\u4e48\u505a\u8d1f\u8f7d\u5747\u8861\u5668\uff1f<\/p>\n
\u8d22\u5927\u6c14\u7c97\u7684\u7528\u786c\u4ef6F5<\/span><\/p>\n<\/li>\n \u4e0d\u5dee\u94b1\u7684\u4f7f\u7528DNS\u8d1f\u8f7d\u5747\u8861<\/span><\/p>\n<\/li>\n \u6280\u672f\u725b\u903c\u7684\u7528LVS<\/span><\/p>\n<\/li>\n \u82e6\u903c\u7684\u521b\u4e1a\u578b\u5c0f\u516c\u53f8\u53ea\u80fd\u4f7f\u7528Nginx<\/span><\/p>\n<\/li>\n<\/ul>\n \u5f53\u7136\uff0c\u8d1f\u8f7d\u5747\u8861\u5668\u4e0d\u6b62\u4ee5\u4e0a\u51e0\u79cd\uff0c\u6709\u5174\u8da3\u7684\u540c\u5b66\u81ea\u884c\u8c37\u6b4c\u4e86\u89e3\u3002<\/p>\n \u300a\u8bba\u77e5\u884c\u300b\u7bc7\u4e2d\u8bf4\uff1a\u77e5\u5176\u7136\u77e5\u5176\u6240\u4ee5\u7136\uff0c\u7b80\u5355\u8bf4\u4e0b\u8fd9\u51e0\u79cd\u8d1f\u8f7d\u5747\u8861\u5668\u5230\u5e95\u662f\u5982\u4f55\u884c\u8d70\u4e8e\u7f51\u7edc\u4e2d\u7684\u5427\uff0c\u5b66\u8fc7\u7f51\u7edc\u7684\u670b\u53cb\u5927\u6982\u90fd\u6e05\u695a\u4e03\u5c42\u7f51\u7edc\u6a21\u578b\u3002<\/p>\n \u9996\u5148\u4e00\u5f20\u56fe\uff0c\u8ba9\u5927\u5bb6\u91cd\u6e29\u4e00\u4e0b\u5927\u5b66\u57fa\u7840\u8bfe\u7a0b\u3002<\/p>\n <\/p>\n \u6709\u6ca1\u6709\u77ac\u95f4\u8bfe\u5802\u4e66\u672c\u7684\u611f\u89c9\uff0c\u4e0d\u8fc7\u763e\uff1f\u518d\u6765\u4e00\u5f20TCP\/IP\u4e94\u5c42\u6a21\u578b\u3002<\/p>\n <\/p>\n \u5728\u6bcf\u4e00\u5c42\u90fd\u5de5\u4f5c\u7740\u4e0d\u540c\u7684\u8bbe\u5907\uff0c\u6bd4\u5982\u8d22\u5927\u6c14\u7c97\uff0c\u4e0d\u5dee\u94b1\u7684\u56fd\u4f01\u4f7f\u7528\u7684F5\u5de5\u4f5c\u57284-7\u5c42\uff0c\u4e00\u822c\u4e92\u8054\u7f51\u4f01\u4e1a\u4f7f\u7528\u7684LVS\u5de5\u4f5c\u5728\u4f20\u8f93\u5c42\uff0c\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684Nginx\u5de5\u4f5c\u5728\u5e94\u7528\u5c42\u3002<\/p>\n <\/p>\n \u6700\u540e\u6765\u804a\u4e00\u4e0bDNS\u8d1f\u8f7d\u5747\u8861\uff0c\u867d\u7136DNS\u6700\u539f\u59cb\u4e5f\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u4f46\u662fDNS\u8d1f\u8f7d\u5747\u8861\u7684\u63a7\u5236\u6743\u5728\u57df\u540d\u670d\u52a1\u5546\u624b\u91cc\uff0cNDS\u5b58\u5728\u591a\u7ea7\u89e3\u6790\uff0c\u7f13\u5b58A\u8bb0\u5f55\u7684\u95ee\u9898\uff0c\u4ee5\u53ca\u7f51\u7ad9\u81ea\u8eab\u65e0\u6cd5\u505a\u66f4\u591a\u7684\u7ba1\u7406\u3002\u8fd9\u6837\u5bfc\u81f4\u4e86\u4e00\u822c\u4e2d\u5c0f\u516c\u53f8\u5f88\u5c11\u4f7f\u7528\u3002<\/p>\n \u5f53\u7136\uff0c\u81ea\u8eab\u5b9e\u529b\u591f\u786c\uff0cDNS\u8d1f\u8f7d\u5747\u8861\u4e5f\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u4e0b\u56fe\u662f\u68c0\u6d4bTT\u732b\u57df\u540d\u7684A\u8bb0\u5f55\u5f97\u5230\u7684\u90e8\u5206\u4fe1\u606f\uff0c\u4ec5\u4f9b\u53c2\u8003\uff0c\u81ea\u884c\u9886\u609f\u3002<\/p>\n <\/p>\n <\/p>\n \u65e2\u7136\u662f\u96c6\u7fa4\uff0c\u5c31\u4e0d\u80fd\u591f\u51fa\u73b0\u5355\u70b9\u6545\u969c\uff0c\u5982\u679c\u5927\u5bb6\u5173\u6ce8\u4e91\u670d\u52a1\uff0c\u53ef\u80fd\u4f1a\u63a5\u89e6\u5230\u4ee5\u4e0b\u8bcd\u6c47\uff0c\u201c\u53cc\u673a\u70ed\u5907\u201d\uff0c\u201c\u4e24\u5730\u4e09\u4e2d\u5fc3\u201d\u7b49\u7b49\u8bcd\u6c47\u3002<\/p>\n \u53cc\u673a\u70ed\u5907\u662f\u9ad8\u53ef\u7528\u7684\u4e00\u79cd\u4f53\u73b0\u5f62\u5f0f\uff0c\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u751f\u4ea7\u73af\u5883\u4e2d\u6211\u4eec\u5b58\u5728\u4e24\u4e2a\u8d1f\u8f7d\u5747\u8861\u8282\u70b9\uff0c\u4e3b\u8282\u70b9\u5904\u4e8e\u6fc0\u6d3b\u72b6\u6001\uff0c\u53e6\u4e00\u4e2a\u8282\u70b9\u5904\u4e8e\u5907\u7528\u72b6\u6001\uff0c\u5f53\u4e3b\u8282\u70b9\u610f\u5916\u5b95\u673a\uff0c\u53ef\u4ee5\u901a\u8fc7keepalived\u68c0\u6d4b\u5e76\u8fc5\u901f\u5207\u6362\u5230\u5907\u7528\u670d\u52a1\uff0c\u4fdd\u969c\u4e1a\u52a1\u6b63\u5e38\u8fd0\u8f6c\u3002\u81f3\u4e8e\u4e24\u5730\u4e09\u4e2d\u5fc3\uff0c\u4e0b\u56fe\u53ef\u80fd\u4f1a\u8ba9\u5927\u5bb6\u7406\u89e3\u5f97\u66f4\u52a0\u900f\u5f7b\uff0c\u56fe\u7247\u6e90\u4e8e\u7f51\u7edc\u3002<\/p>\n <\/p>\n \u5c0f\u9a6c\u54e5\u4e3a\u4e86\u51c6\u5907\u53cc\u5341\u4e00\uff0c\u8d2d\u7f6e\u4e86\u5927\u91cf\u670d\u52a1\u5668\uff0c\u4f46\u6d3b\u52a8\u4e00\u8fc7\uff0c\u5e73\u65f6\u7684\u7528\u6237\u8bbf\u95ee\u91cf\u5e76\u4e0d\u80fd\u6ee1\u8db3\u670d\u52a1\u5668\u7684\u63a5\u5ba2\u80fd\u529b\uff0c\u5bfc\u81f4\u5927\u91cf\u670d\u52a1\u5668\u5904\u4e8e\u7a7a\u7a97\u671f\u3002<\/p>\n \u8fd9\u8fd8\u4e86\u5f97\uff0c\u4e0d\u80fd\u95f2\u7740\u554a\uff0c\u7cbe\u660e\u7684\u5c0f\u9a6c\u54e5\u4e00\u62cd\u8111\u888b\uff0c\u7ec4\u5efa\u4e86TT\u4e91\u56e2\u961f\u3002\u901a\u8fc7\u591a\u5e74\u7684\u52aa\u529b\u5f00\u53d1\u4e86\u6309\u91cf\u4ed8\u8d39\u4e91\u3001\u5f39\u6027IP\u3001\u5171\u4eab\u5e26\u5bbd\u7b49\u7b49\u4ea7\u54c1\u4e3a\u4e2d\u5c0f\u4f01\u4e1a\u5f00\u6e90\u8282\u6d41\u3002<\/p>\n <\/p>\n \u5c0f\u660e\u540c\u5b66\u89c9\u5f97\u8fd9\u6b3e\u952e\u76d8\u4e0d\u9519\uff0c\u7f8e\u6ecb\u6ecb\u7684\u70b9\u51fb\u8d2d\u4e70\u6309\u94ae\uff0c\u7a81\u7136\u8df3\u5230\u4e86\u767b\u9646\u9875\u9762\u3002<\/p>\n <\/p>\n \u4ec0\u4e48\u9b3c\uff0c\u88e4\u5b50\u6211\u90fd\u8131\u4e86\uff0c\u4f60\u5c31\u7ed9\u6211\u770b\u8fd9\u4e2a\uff1f\u666e\u901a\u7528\u6237\u53ef\u80fd\u4e0d\u4f1a\u89c9\u5f97\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u91cd\u65b0\u767b\u9646\u4e00\u6b21\u5c31\u662f\u4e86\u3002\u4f46\u5c0f\u660e\u4f5c\u4e3a\u4e00\u53ea\u4e25\u8c28\u7684\u7a0b\u5e8f\u733f\uff0c\u4ed6\u60f3\u5f04\u660e\u767d\u5176\u4e2d\u5230\u5e95\u53d1\u751f\u4e86\u4ec0\u4e48\u3002<\/p>\n \u53d1\u751f\u4ee5\u4e0a\u6545\u969c\uff0c\u5c0f\u660e\u4ee5\u4e3a\u81ea\u5df1\u4e0b\u5355\u7684\u90a3\u53f0\u670d\u52a1\u6302\u673a\u4e86\uff0c\u8bf7\u6c42\u88ab\u5206\u53d1\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u4e0a\uff0c\u4f46\u4e3a\u4ec0\u4e48\u4f1a\u8df3\u5230\u767b\u9646\u9875\u9762\u5462\uff1f\u4f5c\u4e3a\u4e00\u540d\u7a0b\u5e8f\u5458\uff0c\u5c0f\u660e\u6e05\u695a\u7684\u77e5\u9053\u670d\u52a1\u5206\u4e3a\u6709\u72b6\u6001\u548c\u65e0\u72b6\u6001\u7684\uff0c\u5c3d\u7ba1\u6211\u4eec\u5e73\u65f6\u7684HTTP\u8bf7\u6c42\u662f\u65e0\u72b6\u6001\u7684\uff0c\u4f46\u662f\u4e00\u822c\u4f1a\u901a\u8fc7cookie\u6216\u8005session\u6765\u786e\u5b9a\u7528\u6237\u72b6\u6001\u3002<\/p><\/blockquote>\n \u5230\u8fd9\u91cc\uff0c\u5404\u4f4d\u770b\u5b98\u5e94\u8be5\u660e\u767d\u5230\u5e95\u662f\u4e2a\u4ec0\u4e48\u9b3c\u4e86\u5427\u3002\u5c31\u62ff\u6211\u4eec\u6bd4\u8f83\u719f\u6089\u7684Tomcat\u6765\u8bf4\uff0c\u6211\u4eec\u7684\u7528\u6237\u4fe1\u606f\u4e00\u822c\u5b58\u50a8\u5728session\u4e2d\uff0c\u800csession\u5b58\u50a8\u5728Tomcat\u5185\u5b58\u4e2d\u3002\u6d4f\u89c8\u5668\u901a\u8fc7cookie\u4e2d\u7684JSESSIONID\u6765\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u8ba4\u8bc1\u3002<\/p>\n \u7136\u800c\u670d\u52a1\u5668\u6302\u4e86\uff0c\u4e0b\u5355\u8bf7\u6c42\u88ab\u5206\u53d1\u5230\u53e6\u4e00\u53f0\u670d\u52a1\uff0c\u81ea\u7136\u5c0f\u660e\u518d\u4e5f\u627e\u4e0d\u5230\u4ed6\u7684session\u4e86\u3002<\/p>\n \u5c0f\u660e\u540c\u5b66\u628a\u95ee\u9898\u53cd\u9988\u7ed9\u4e86TT\u732b\uff0c\u5c0f\u9a6c\u54e5\u4e00\u770b\u8fd9\u8fd8\u5f97\u4e86\uff0c\u96c6\u7fa4\u90fd\u505a\u4e86\u8fd8\u5dee\u8fd9\u70b9\uff0c\u4e8e\u662f\u8d76\u7d27\u53eb\u5de5\u7a0b\u5e08\u4eec\u62ff\u51fa\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n \u5de5\u7a0b\u5e08\u6700\u7ec8\u63d0\u51fa\u4e86\u4e24\u79cd\u65b9\u6848\uff1a<\/p>\n \u670d\u52a1\u5668\u7528\u6237\u72b6\u6001\u590d\u5236(\u6210\u672c\u5927\uff0c\u9700\u8981\u8f6f\u786c\u4ef6\u652f\u6301\uff0c\u6709\u5ef6\u8fdf\uff0c\u5b58\u5728\u5931\u8d25\u7684\u98ce\u9669)<\/span><\/p>\n<\/li>\n \u7edf\u4e00\u5b58\u50a8\u7528\u6237\u72b6\u6001(\u6211\u4e0d\u8bf4\u8bdd\uff0c\u6211\u5c31\u7b11\u7b11)<\/span><\/p>\n<\/li>\n<\/ul>\n <\/p>\n \u6700\u7ec8\uff0c\u5de5\u7a0b\u5e08\u4eec\u91c7\u7528\u7b2c\u4e8c\u79cd\u65b9\u6848\uff0c\u4f7f\u7528Redis\u5b58\u50a8\u7528\u6237\u72b6\u6001\u6570\u636e\u3002<\/p>\n \u6700\u8fd1\u63a5\u89e6\u5e76\u4f7f\u7528\u4e86\u963f\u91cc\u4e91\u7684\u8d1f\u8f7d\u5747\u8861SLB \uff0c\u5927\u4f53\u4e86\u89e3\u4e86\u4e00\u4e0bTT\u732b\u7684\u8d1f\u8f7d\u5747\u8861\u5b9e\u73b0\uff0c\u4ee5\u4e0b\u67b6\u6784\u5b9e\u73b0\u6e90\u4e8eTT\u732b\u3002<\/p>\n \u8d1f\u8f7d\u5747\u8861\u91c7\u7528\u96c6\u7fa4\u90e8\u7f72\uff0c\u53ef\u5b9e\u73b0\u4f1a\u8bdd\u540c\u6b65\uff0c\u4ee5\u6d88\u9664\u670d\u52a1\u5668\u5355\u70b9\u6545\u969c\uff0c\u63d0\u5347\u5197\u4f59\uff0c\u4fdd\u8bc1\u670d\u52a1\u7684\u7a33\u5b9a\u6027\u3002\u963f\u91cc\u4e91\u5f53\u524d\u63d0\u4f9b\u56db\u5c42\uff08TCP\u534f\u8bae\u548cUDP\u534f\u8bae\uff09\u548c\u4e03\u5c42\uff08HTTP\u548cHTTPS\u534f\u8bae\uff09\u7684\u8d1f\u8f7d\u5747\u8861\u670d\u52a1\u3002<\/p>\n <\/p>\n \u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5404\u4e2a\u5730\u57df\u7684\u56db\u5c42\u8d1f\u8f7d\u5747\u8861\u5b9e\u9645\u4e0a\u662f\u7531\u591a\u53f0LVS\u673a\u5668\u90e8\u7f72\u6210\u4e00\u4e2aLVS\u96c6\u7fa4\u6765\u8fd0\u884c\u7684\u3002\u91c7\u7528\u96c6\u7fa4\u90e8\u7f72\u6a21\u5f0f\u6781\u5927\u5730\u4fdd\u8bc1\u4e86\u5f02\u5e38\u60c5\u51b5\u4e0b\u8d1f\u8f7d\u5747\u8861\u670d\u52a1\u7684\u53ef\u7528\u6027\u3001\u7a33\u5b9a\u6027\u4e0e\u53ef\u6269\u5c55\u6027\u3002<\/p>\n <\/p>\n LVS\u96c6\u7fa4\u5185\u7684\u6bcf\u53f0LVS\u90fd\u4f1a\u8fdb\u884c\u4f1a\u8bdd\uff0c\u901a\u8fc7\u7ec4\u64ad\u62a5\u6587\u540c\u6b65\u5230\u8be5\u96c6\u7fa4\u5185\u7684\u5176\u5b83LVS\u673a\u5668\u4e0a\uff0c\u4ece\u800c\u5b9e\u73b0LVS\u96c6\u7fa4\u5185\u5404\u53f0\u673a\u5668\u95f4\u7684\u4f1a\u8bdd\u540c\u6b65\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5f53\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u7aef\u4f20\u8f93\u4e09\u4e2a\u6570\u636e\u5305\u540e\uff0c\u5728LVS1\u4e0a\u5efa\u7acb\u7684\u4f1a\u8bddA\u5f00\u59cb\u540c\u6b65\u5230\u5176\u5b83LVS\u673a\u5668\u4e0a\u3002\u56fe\u4e2d\u5b9e\u7ebf\u8868\u793a\u73b0\u6709\u7684\u8fde\u63a5\uff0c\u56fe\u4e2d\u865a\u7ebf\u8868\u793a\u5f53LVS1\u51fa\u73b0\u6545\u969c\u6216\u8fdb\u884c\u7ef4\u62a4\u65f6\uff0c\u8fd9\u90e8\u5206\u6d41\u91cf\u4f1a\u8d70\u5230\u4e00\u53f0\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\u7684\u673a\u5668LVS2\u4e0a\u3002\u56e0\u800c\u8d1f\u8f7d\u5747\u8861\u96c6\u7fa4\u652f\u6301\u70ed\u5347\u7ea7\uff0c\u5e76\u4e14\u5728\u673a\u5668\u6545\u969c\u548c\u96c6\u7fa4\u7ef4\u62a4\u65f6\u6700\u5927\u7a0b\u5ea6\u5bf9\u7528\u6237\u900f\u660e\uff0c\u4e0d\u5f71\u54cd\u7528\u6237\u4e1a\u52a1\u3002<\/p>\n <\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/23364.html<\/a><\/p>\n\n
\n
\n