{"id":5142,"date":"2022-05-31T09:30:03","date_gmt":"2022-05-31T01:30:03","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=5142"},"modified":"2022-05-31T12:31:37","modified_gmt":"2022-05-31T04:31:37","slug":"large-sites-system-architecture-evolution-path","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/large-sites-system-architecture-evolution-path.html","title":{"rendered":"\u5927\u578b\u7f51\u7ad9\u7cfb\u7edf\u67b6\u6784\u6f14\u5316\u4e4b\u8def"},"content":{"rendered":"
\u672c\u6587\u7531lrxjmw.cn\u56e2\u961f\u6210\u5458\u51af\u632f\u534e<\/span>\u6574\u7406\u53d1\u5e03\uff0c\u70b9\u6b64\u62a5\u540dLinux\u57f9\u8bad<\/a><\/span><\/strong>\u3002<\/p>\n<\/div>\n \u4e00\u4e2a\u6210\u719f\u7684\u5927\u578b\u7f51\u7ad9\uff08\u5982\u6dd8\u5b9d\u3001\u5929\u732b\u3001\u817e\u8baf\u7b49\uff09\u7684\u7cfb\u7edf\u67b6\u6784\u5e76\u4e0d\u662f\u4e00\u5f00\u59cb\u8bbe\u8ba1\u65f6\u5c31\u5177\u5907\u5b8c\u6574\u7684\u9ad8\u6027\u80fd\u3001\u9ad8\u53ef\u7528\u3001\u9ad8\u4f38\u7f29\u7b49\u7279\u6027\u7684\uff0c\u5b83\u662f\u968f\u7740\u7528\u6237\u91cf\u7684\u589e\u52a0\uff0c\u4e1a\u52a1\u529f\u80fd\u7684\u6269\u5c55\u9010\u6e10\u6f14\u53d8\u5b8c\u5584\u7684\uff0c\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u5f00\u53d1\u6a21\u5f0f\u3001\u6280\u672f\u67b6\u6784\u3001\u8bbe\u8ba1\u601d\u60f3\u4e5f\u53d1\u751f\u4e86\u5f88\u5927\u7684\u53d8\u5316\uff0c\u5c31\u8fde\u6280\u672f\u4eba\u5458\u4e5f\u4ece\u51e0\u4e2a\u4eba\u53d1\u5c55\u5230\u4e00\u4e2a\u90e8\u95e8\u751a\u81f3\u4e00\u6761\u4ea7\u54c1\u7ebf\u3002\u6240\u4ee5\u6210\u719f\u7684\u7cfb\u7edf\u67b6\u6784\u662f\u968f\u7740\u4e1a\u52a1\u7684\u6269\u5c55\u800c\u9010\u6b65\u5b8c\u5584\u7684\uff0c\u5e76\u4e0d\u662f\u4e00\u8e74\u800c\u5c31\uff1b\u4e0d\u540c\u4e1a\u52a1\u7279\u5f81\u7684\u7cfb\u7edf\uff0c\u4f1a\u6709\u5404\u81ea\u7684\u4fa7\u91cd\u70b9\uff0c\u4f8b\u5982\u6dd8\u5b9d\u8981\u89e3\u51b3\u6d77\u91cf\u7684\u5546\u54c1\u4fe1\u606f\u7684\u641c\u7d22\u3001\u4e0b\u5355\u3001\u652f\u4ed8\uff1b\u4f8b\u5982\u817e\u8baf\u8981\u89e3\u51b3\u6570\u4ebf\u7528\u6237\u7684\u5b9e\u65f6\u6d88\u606f\u4f20\u8f93\uff1b\u767e\u5ea6\u5b83\u8981\u5904\u7406\u6d77\u91cf\u7684\u641c\u7d22\u8bf7\u6c42\uff1b\u4ed6\u4eec\u90fd\u6709\u5404\u81ea\u7684\u4e1a\u52a1\u7279\u6027\uff0c\u7cfb\u7edf\u67b6\u6784\u4e5f\u6709\u6240\u4e0d\u540c\u3002\u5c3d\u7ba1\u5982\u6b64\u6211\u4eec\u4e5f\u53ef\u4ee5\u4ece\u8fd9\u4e9b\u4e0d\u540c\u7684\u7f51\u7ad9\u80cc\u666f\u4e0b\uff0c\u627e\u51fa\u5176\u4e2d\u5171\u7528\u7684\u6280\u672f\uff0c\u8fd9\u4e9b\u6280\u672f\u548c\u624b\u6bb5\u5e7f\u6cdb\u8fd0\u7528\u5728\u5927\u578b\u7f51\u7ad9\u7cfb\u7edf\u7684\u67b6\u6784\u4e2d\uff0c\u4e0b\u9762\u5c31\u901a\u8fc7\u4ecb\u7ecd\u5927\u578b\u7f51\u7ad9\u7cfb\u7edf\u7684\u6f14\u5316\u8fc7\u7a0b\uff0c\u6765\u8ba4\u8bc6\u8fd9\u4e9b\u6280\u672f\u548c\u624b\u6bb5\u3002 \u6700\u521d\u7684\u67b6\u6784\uff0c\u5e94\u7528\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u3001\u6587\u4ef6\u90fd\u90e8\u7f72\u5728\u4e00\u53f0\u670d\u52a1\u5668\u4e0a\uff0c\u5982\u56fe\uff1a \u4e8c\u3001\u5e94\u7528\u3001\u6570\u636e\u3001\u6587\u4ef6\u5206\u79bb<\/span><\/strong><\/p>\n \u968f\u7740\u4e1a\u52a1\u7684\u6269\u5c55\uff0c\u4e00\u53f0\u670d\u52a1\u5668\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u6027\u80fd\u9700\u6c42\uff0c\u6545\u5c06\u5e94\u7528\u7a0b\u5e8f\u3001\u6570\u636e\u5e93\u3001\u6587\u4ef6\u5404\u81ea\u90e8\u7f72\u5728\u72ec\u7acb\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u4e14\u6839\u636e\u670d\u52a1\u5668\u7684\u7528\u9014\u914d\u7f6e\u4e0d\u540c\u7684\u786c\u4ef6\uff0c\u8fbe\u5230\u6700\u4f73\u7684\u6027\u80fd\u6548\u679c\u3002 \u4e09\u3001\u5229\u7528\u7f13\u5b58\u6539\u5584\u7f51\u7ad9\u6027\u80fd<\/span><\/strong><\/p>\n \u5728\u786c\u4ef6\u4f18\u5316\u6027\u80fd\u7684\u540c\u65f6\uff0c\u540c\u65f6\u4e5f\u901a\u8fc7\u8f6f\u4ef6\u8fdb\u884c\u6027\u80fd\u4f18\u5316\uff0c\u5728\u5927\u90e8\u5206\u7684\u7f51\u7ad9\u7cfb\u7edf\u4e2d\uff0c\u90fd\u4f1a\u5229\u7528\u7f13\u5b58\u6280\u672f\u6539\u5584\u7cfb\u7edf\u7684\u6027\u80fd\uff0c\u4f7f\u7528\u7f13\u5b58\u4e3b\u8981\u6e90\u4e8e\u70ed\u70b9\u6570\u636e\u7684\u5b58\u5728\uff0c\u5927\u90e8\u5206\u7f51\u7ad9\u8bbf\u95ee\u90fd\u9075\u5faa28\u539f\u5219\uff08\u537380%\u7684\u8bbf\u95ee\u8bf7\u6c42\uff0c\u6700\u7ec8\u843d\u572820%\u7684\u6570\u636e\u4e0a\uff09\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u5bf9\u70ed\u70b9\u6570\u636e\u8fdb\u884c\u7f13\u5b58\uff0c\u51cf\u5c11\u8fd9\u4e9b\u6570\u636e\u7684\u8bbf\u95ee\u8def\u5f84\uff0c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002 \u56db\u3001\u4f7f\u7528\u96c6\u7fa4\u6539\u5584\u5e94\u7528\u670d\u52a1\u5668\u6027\u80fd<\/span><\/strong><\/p>\n \u5e94\u7528\u670d\u52a1\u5668\u4f5c\u4e3a\u7f51\u7ad9\u7684\u5165\u53e3\uff0c\u4f1a\u627f\u62c5\u5927\u91cf\u7684\u8bf7\u6c42\uff0c\u6211\u4eec\u5f80\u5f80\u901a\u8fc7\u5e94\u7528\u670d\u52a1\u5668\u96c6\u7fa4\u6765\u5206\u62c5\u8bf7\u6c42\u6570\u3002\u5e94\u7528\u670d\u52a1\u5668\u524d\u9762\u90e8\u7f72\u8d1f\u8f7d\u5747\u8861\u670d\u52a1\u5668\u8c03\u5ea6\u7528\u6237\u8bf7\u6c42\uff0c\u6839\u636e\u5206\u53d1\u7b56\u7565\u5c06\u8bf7\u6c42\u5206\u53d1\u5230\u591a\u4e2a\u5e94\u7528\u670d\u52a1\u5668\u8282\u70b9\u3002 \u4e94\u3001\u6570\u636e\u5e93\u8bfb\u5199\u5206\u79bb\u548c\u5206\u5e93\u5206\u8868<\/span><\/strong><\/p>\n \u968f\u7740\u7528\u6237\u91cf\u7684\u589e\u52a0\uff0c\u6570\u636e\u5e93\u6210\u4e3a\u6700\u5927\u7684\u74f6\u9888\uff0c\u6539\u5584\u6570\u636e\u5e93\u6027\u80fd\u5e38\u7528\u7684\u624b\u6bb5\u662f\u8fdb\u884c\u8bfb\u5199\u5206\u79bb\u4ee5\u53ca\u5206\u5e93\u5206\u8868\uff0c\u8bfb\u5199\u5206\u79bb\u987e\u540d\u601d\u4e49\u5c31\u662f\u5c06\u6570\u636e\u5e93\u5206\u4e3a\u8bfb\u5e93\u548c\u5199\u5e93\uff0c\u901a\u8fc7\u4e3b\u5907\u529f\u80fd\u5b9e\u73b0\u6570\u636e\u540c\u6b65\u3002\u5206\u5e93\u5206\u8868\u5219\u5206\u4e3a\u6c34\u5e73\u5207\u5206\u548c\u5782\u76f4\u5207\u5206\uff0c\u6c34\u5e73\u5207\u5206\u5219\u662f\u5bf9\u4e00\u4e2a\u6570\u636e\u5e93\u7279\u5927\u7684\u8868\u8fdb\u884c\u62c6\u5206\uff0c\u4f8b\u5982\u7528\u6237\u8868\u3002\u5782\u76f4\u5207\u5206\u5219\u662f\u6839\u636e\u4e1a\u52a1\u7684\u4e0d\u540c\u6765\u5207\u5206\uff0c\u5982\u7528\u6237\u4e1a\u52a1\u3001\u5546\u54c1\u4e1a\u52a1\u76f8\u5173\u7684\u8868\u653e\u5728\u4e0d\u540c\u7684\u6570\u636e\u5e93\u4e2d\u3002 \u516d\u3001\u4f7f\u7528CDN\u548c\u53cd\u5411\u4ee3\u7406\u63d0\u9ad8\u7f51\u7ad9\u6027\u80fd<\/span><\/strong><\/p>\n \u5047\u5982\u6211\u4eec\u7684\u670d\u52a1\u5668\u90fd\u90e8\u7f72\u5728\u6210\u90fd\u7684\u673a\u623f\uff0c\u5bf9\u4e8e\u56db\u5ddd\u7684\u7528\u6237\u6765\u8bf4\u8bbf\u95ee\u662f\u8f83\u5feb\u7684\uff0c\u800c\u5bf9\u4e8e\u5317\u4eac\u7684\u7528\u6237\u8bbf\u95ee\u662f\u8f83\u6162\u7684\uff0c\u8fd9\u662f\u7531\u4e8e\u56db\u5ddd\u548c\u5317\u4eac\u5206\u522b\u5c5e\u4e8e\u7535\u4fe1\u548c\u8054\u901a\u7684\u4e0d\u540c\u53d1\u8fbe\u5730\u533a\uff0c\u5317\u4eac\u7528\u6237\u8bbf\u95ee\u9700\u8981\u901a\u8fc7\u4e92\u8054\u8def\u7531\u5668\u7ecf\u8fc7\u8f83\u957f\u7684\u8def\u5f84\u624d\u80fd\u8bbf\u95ee\u5230\u6210\u90fd\u7684\u670d\u52a1\u5668\uff0c\u8fd4\u56de\u8def\u5f84\u4e5f\u4e00\u6837\uff0c\u6240\u4ee5\u6570\u636e\u4f20\u8f93\u65f6\u95f4\u6bd4\u8f83\u957f\u3002\u5bf9\u4e8e\u8fd9\u79cd\u60c5\u51b5\uff0c\u5e38\u5e38\u4f7f\u7528CDN\u89e3\u51b3\uff0cCDN\u5c06\u6570\u636e\u5185\u5bb9\u7f13\u5b58\u5230\u8fd0\u8425\u5546\u7684\u673a\u623f\uff0c\u7528\u6237\u8bbf\u95ee\u65f6\u5148\u4ece\u6700\u8fd1\u7684\u8fd0\u8425\u5546\u83b7\u53d6\u6570\u636e\uff0c\u8fd9\u6837\u5927\u5927\u51cf\u5c11\u4e86\u7f51\u7edc\u8bbf\u95ee\u7684\u8def\u5f84\u3002\u6bd4\u8f83\u4e13\u4e1a\u7684CDN\u8fd0\u8425\u5546\u6709\u84dd\u6c5b\u3001\u7f51\u5bbf\u3002 \u4e03\u3001\u4f7f\u7528\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf<\/span><\/strong><\/p>\n \u7528\u6237\u4e00\u5929\u5929\u589e\u52a0\uff0c\u4e1a\u52a1\u91cf\u8d8a\u6765\u8d8a\u5927\uff0c\u4ea7\u751f\u7684\u6587\u4ef6\u8d8a\u6765\u8d8a\u591a\uff0c\u5355\u53f0\u7684\u6587\u4ef6\u670d\u52a1\u5668\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u9700\u6c42\uff0c\u8fd9\u65f6\u5c31\u9700\u8981\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u7684\u652f\u6491\u3002\u5e38\u7528\u7684\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u6709GFS\u3001HDFS\u3001TFS\u3002 \u516b\u3001\u4f7f\u7528NoSql\u548c\u641c\u7d22\u5f15\u64ce<\/span><\/strong><\/p>\n \u5bf9\u4e8e\u6d77\u91cf\u6570\u636e\u7684\u67e5\u8be2\u548c\u5206\u6790\uff0c\u6211\u4eec\u4f7f\u7528nosql\u6570\u636e\u5e93\u52a0\u4e0a\u641c\u7d22\u5f15\u64ce\u53ef\u4ee5\u8fbe\u5230\u66f4\u597d\u7684\u6027\u80fd\u3002\u5e76\u4e0d\u662f\u6240\u6709\u7684\u6570\u636e\u90fd\u8981\u653e\u5728\u5173\u7cfb\u578b\u6570\u636e\u4e2d\u3002\u5e38\u7528\u7684NOSQL\u6709mongodb\u3001hbase\u3001redis\uff0c\u641c\u7d22\u5f15\u64ce\u6709lucene\u3001solr\u3001elasticsearch\u3002 \u4e5d\u3001\u5c06\u5e94\u7528\u670d\u52a1\u5668\u8fdb\u884c\u4e1a\u52a1\u62c6\u5206<\/span><\/strong><\/p>\n \u968f\u7740\u4e1a\u52a1\u8fdb\u4e00\u6b65\u6269\u5c55\uff0c\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u975e\u5e38\u81c3\u80bf\uff0c\u8fd9\u65f6\u6211\u4eec\u9700\u8981\u5c06\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u4e1a\u52a1\u62c6\u5206\uff0c\u5982\u767e\u5ea6\u5206\u4e3a\u65b0\u95fb\u3001\u7f51\u9875\u3001\u56fe\u7247\u7b49\u4e1a\u52a1\u3002\u6bcf\u4e2a\u4e1a\u52a1\u5e94\u7528\u8d1f\u8d23\u76f8\u5bf9\u72ec\u7acb\u7684\u4e1a\u52a1\u8fd0\u4f5c\u3002\u4e1a\u52a1\u4e4b\u95f4\u901a\u8fc7\u6d88\u606f\u8fdb\u884c\u901a\u4fe1\u6216\u8005\u5171\u4eab\u6570\u636e\u5e93\u6765\u5b9e\u73b0\u3002 \u5341\u3001\u642d\u5efa\u5206\u5e03\u5f0f\u670d\u52a1<\/span><\/strong><\/p>\n \u8fd9\u65f6\u6211\u4eec\u53d1\u73b0\u5404\u4e2a\u4e1a\u52a1\u5e94\u7528\u90fd\u4f1a\u4f7f\u7528\u5230\u4e00\u4e9b\u57fa\u672c\u7684\u4e1a\u52a1\u670d\u52a1\uff0c\u4f8b\u5982\u7528\u6237\u670d\u52a1\u3001\u8ba2\u5355\u670d\u52a1\u3001\u652f\u4ed8\u670d\u52a1\u3001\u5b89\u5168\u670d\u52a1\uff0c\u8fd9\u4e9b\u670d\u52a1\u662f\u652f\u6491\u5404\u4e1a\u52a1\u5e94\u7528\u7684\u57fa\u672c\u8981\u7d20\u3002\u6211\u4eec\u5c06\u8fd9\u4e9b\u670d\u52a1\u62bd\u53d6\u51fa\u6765\u5229\u7528\u5206\u90e8\u5f0f\u670d\u52a1\u6846\u67b6\u642d\u5efa\u5206\u5e03\u5f0f\u670d\u52a1\u3002\u963f\u91cc\u7684Dubbo\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002 \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.jobbole.com\/77748\/<\/a><\/p>\n
\n\u4e00\u3001\u6700\u5f00\u59cb\u7684\u7f51\u7ad9\u67b6\u6784<\/span><\/strong><\/p>\n
\n
\n<\/p>\n
\n
\n<\/p>\n
\n
\n
\n\u7f13\u5b58\u5e38\u89c1\u7684\u5b9e\u73b0\u65b9\u5f0f\u662f\u672c\u5730\u7f13\u5b58\u3001\u5206\u5e03\u5f0f\u7f13\u5b58\u3002\u5f53\u7136\u8fd8\u6709CDN\u3001\u53cd\u5411\u4ee3\u7406\u7b49\uff0c\u8fd9\u4e2a\u540e\u9762\u518d\u8bb2\u3002\u672c\u5730\u7f13\u5b58\uff0c\u987e\u540d\u601d\u4e49\u662f\u5c06\u6570\u636e\u7f13\u5b58\u5728\u5e94\u7528\u670d\u52a1\u5668\u672c\u5730\uff0c\u53ef\u4ee5\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u5b58\u5728\u6587\u4ef6\uff0cOSCache\u5c31\u662f\u5e38\u7528\u7684\u672c\u5730\u7f13\u5b58\u7ec4\u4ef6\u3002\u672c\u5730\u7f13\u5b58\u7684\u7279\u70b9\u662f\u901f\u5ea6\u5feb\uff0c\u4f46\u56e0\u4e3a\u672c\u5730\u7a7a\u95f4\u6709\u9650\u6240\u4ee5\u7f13\u5b58\u6570\u636e\u91cf\u4e5f\u6709\u9650\u3002\u5206\u5e03\u5f0f\u7f13\u5b58\u7684\u7279\u70b9\u662f\uff0c\u53ef\u4ee5\u7f13\u5b58\u6d77\u91cf\u7684\u6570\u636e\uff0c\u5e76\u4e14\u6269\u5c55\u975e\u5e38\u5bb9\u6613\uff0c\u5728\u95e8\u6237\u7c7b\u7f51\u7ad9\u4e2d\u5e38\u5e38\u88ab\u4f7f\u7528\uff0c\u901f\u5ea6\u6309\u7406\u6ca1\u6709\u672c\u5730\u7f13\u5b58\u5feb\uff0c\u5e38\u7528\u7684\u5206\u5e03\u5f0f\u7f13\u5b58\u662fMemcached\u3001Redis\u3002<\/p>\n
\n
\n
\n\u5e38\u7528\u7684\u8d1f\u8f7d\u5747\u8861\u6280\u672f\u786c\u4ef6\u7684\u6709F5\uff0c\u4ef7\u683c\u6bd4\u8f83\u8d35\uff0c\u8f6f\u4ef6\u7684\u6709LVS\u3001Nginx\u3001HAProxy\u3002LVS\u662f\u56db\u5c42\u8d1f\u8f7d\u5747\u8861\uff0c\u6839\u636e\u76ee\u6807\u5730\u5740\u548c\u7aef\u53e3\u9009\u62e9\u5185\u90e8\u670d\u52a1\u5668\uff0cNginx\u548cHAProxy\u662f\u4e03\u5c42\u8d1f\u8f7d\u5747\u8861\uff0c\u53ef\u4ee5\u6839\u636e\u62a5\u6587\u5185\u5bb9\u9009\u62e9\u5185\u90e8\u670d\u52a1\u5668\uff0c\u56e0\u6b64LVS\u5206\u53d1\u8def\u5f84\u4f18\u4e8eNginx\u548cHAProxy\uff0c\u6027\u80fd\u8981\u9ad8\u4e9b\uff0c\u800cNginx\u548cHAProxy\u5219\u66f4\u5177\u914d\u7f6e\u6027\uff0c\u5982\u53ef\u4ee5\u7528\u6765\u505a\u52a8\u9759\u5206\u79bb\uff08\u6839\u636e\u8bf7\u6c42\u62a5\u6587\u7279\u5f81\uff0c\u9009\u62e9\u9759\u6001\u8d44\u6e90\u670d\u52a1\u5668\u8fd8\u662f\u5e94\u7528\u670d\u52a1\u5668\uff09\u3002<\/p>\n
\n
\n<\/p>\n
\n
\n
\n\u800c\u53cd\u5411\u4ee3\u7406\uff0c\u5219\u662f\u90e8\u7f72\u5728\u7f51\u7ad9\u7684\u673a\u623f\uff0c\u5f53\u7528\u6237\u8bf7\u6c42\u8fbe\u5230\u65f6\u9996\u5148\u8bbf\u95ee\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\u5c06\u7f13\u5b58\u7684\u6570\u636e\u8fd4\u56de\u7ed9\u7528\u6237\uff0c\u5982\u679c\u6ca1\u6709\u7f13\u5b58\u6570\u636e\u624d\u4f1a\u7ee7\u7eed\u8bbf\u95ee\u5e94\u7528\u670d\u52a1\u5668\u83b7\u53d6\uff0c\u8fd9\u6837\u505a\u51cf\u5c11\u4e86\u83b7\u53d6\u6570\u636e\u7684\u6210\u672c\u3002\u53cd\u5411\u4ee3\u7406\u6709Squid\uff0cNginx\u3002<\/p>\n
\n
\n<\/p>\n
\n
\n<\/p>\n
\n
\n<\/p>\n
\n
\n<\/p>\n\n