{"id":111818,"date":"2019-05-22T09:57:07","date_gmt":"2019-05-22T01:57:07","guid":{"rendered":"http:\/\/www.fagao.me\/?p=111818"},"modified":"2019-05-22T09:57:07","modified_gmt":"2019-05-22T01:57:07","slug":"hbase-%e5%9c%a8%e9%98%bf%e9%87%8c%e6%90%9c%e7%b4%a2%e4%b8%ad%e7%9a%84%e5%ba%94%e7%94%a8%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/www.fagao.me\/p\/111818.htm","title":{"rendered":"HBase \u5728\u963f\u91cc\u641c\u7d22\u4e2d\u7684\u5e94\u7528\u5b9e\u8df5"},"content":{"rendered":"<div class=\"focusup\"><\/div>\n<p><span>HBase \u4f5c\u4e3a\u6dd8\u5b9d\u5168\u7f51\u7d22\u5f15\u6784\u5efa\u4ee5\u53ca\u5728\u7ebf\u673a\u5668\u5b66\u4e60\u5e73\u53f0\u7684\u6838\u5fc3\u5b58\u50a8\u7cfb\u7edf\uff0c\u662f\u963f\u91cc\u641c\u7d22\u57fa\u7840\u67b6\u6784\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u672c\u6587\u5c06\u4ecb\u7ecd <strong>HBase \u5728\u963f\u91cc\u641c\u7d22\u7684\u5386\u53f2\u3001\u89c4\u6a21\uff0c\u5e94\u7528\u573a\u666f<\/strong>\u4ee5\u53ca<strong>\u5728\u5b9e\u9645\u5e94\u7528\u5f53\u4e2d\u9047\u5230\u7684\u95ee\u9898\u548c\u4f18\u5316<\/strong>\u3002<\/span><\/p>\n<p>\u4f5c\u8005\u4ecb\u7ecd<\/p>\n<p><span>\u674e\u94b0\uff0c\u82b1\u540d\u7edd\u9876\u3002\u73b0\u4efb\u963f\u91cc\u5df4\u5df4\u641c\u7d22\u4e8b\u4e1a\u90e8\u9ad8\u7ea7\u6280\u672f\u4e13\u5bb6\uff0cHBase \u5f00\u6e90\u793e\u533a PMC &amp; committer\u3002\u5f00\u6e90\u6280\u672f\u7231\u597d\u8005\uff0c\u4e3b\u8981\u5173\u6ce8\u5206\u5e03\u5f0f\u7cfb\u7edf\u8bbe\u8ba1\u3001\u5927\u6570\u636e\u57fa\u7840\u5e73\u53f0\u5efa\u8bbe\u7b49\u9886\u57df\u3002\u8fde\u7eed 3 \u5e74\u57fa\u4e8e HBase\/HDFS \u8bbe\u8ba1\u548c\u5f00\u53d1\u5b58\u50a8\u7cfb\u7edf\u5e94\u5bf9\u53cc11\u8bbf\u95ee\u538b\u529b\uff0c\u5177\u5907\u4e30\u5bcc\u7684\u5927\u89c4\u6a21\u96c6\u7fa4\u751f\u4ea7\u5b9e\u6218\u7ecf\u9a8c\u3002<\/span><\/p>\n<p><span>\u6ce8\uff1a\u672c\u7bc7\u5185\u5bb9\u6839\u636e\u7edd\u9876\u8001\u5e08\u5728 <strong><span>WOTA2017 \u201c\u5927\u6570\u636e\u7cfb\u7edf\u67b6\u6784\u201d\u4e13\u573a <\/span><\/strong>\u7684\u6f14\u8bb2\u5185\u5bb9\u6574\u7406\u3002<\/span><\/p>\n<p>HBase \u5728\u963f\u91cc\u641c\u7d22\u7684\u5386\u53f2\u3001\u89c4\u6a21\u548c\u670d\u52a1\u80fd\u529b<\/p>\n<p><span><span><strong>\u5386\u53f2\uff1a<\/strong><\/span>\u963f\u91cc\u641c\u7d22\u4e8e 2010 \u5e74\u5f00\u59cb\u4f7f\u7528 HBase\uff0c\u4ece\u6700\u65e9\u5230\u76ee\u524d\u5df2\u7ecf\u6709\u5341\u4f59\u4e2a\u7248\u672c\u3002\u76ee\u524d\u4f7f\u7528\u7684\u7248\u672c\u662f\u5728\u793e\u533a\u7248\u672c\u7684\u57fa\u7840\u4e0a\u7ecf\u8fc7\u5927\u91cf\u4f18\u5316\u800c\u6210\u3002<strong>\u793e\u533a\u7248\u672c\u5efa\u8bae\u4e0d\u8981\u4f7f\u7528 1.1.2\u7248\u672c<\/strong><strong>\uff0c\u6709\u8f83\u4e25\u91cd\u7684\u6027\u80fd\u95ee\u9898\uff0c1.1.3 \u4ee5\u540e\u7684\u7248\u672c\u4f53\u9a8c\u4f1a\u597d\u5f88\u591a\u3002<\/strong><\/span><\/p>\n<p><span><strong><span>\u96c6\u7fa4\u89c4\u6a21\uff1a<\/span><\/strong>\u76ee\u524d\uff0c\u4ec5\u5728\u963f\u91cc\u641c\u7d22\u8282\u70b9\u6570\u5c31\u8d85\u8fc7 3000 \u4e2a\uff0c\u6700\u5927\u96c6\u7fa4\u8d85\u8fc7 1500 \u4e2a\u3002\u963f\u91cc\u96c6\u56e2\u8282\u70b9\u6570\u8fdc\u8fdc\u8d85\u8fc7\u8fd9\u4e2a\u6570\u91cf\u3002<\/span><\/p>\n<p><span><span><strong>\u670d\u52a1\u80fd\u529b\uff1a<\/strong><\/span>\u53bb\u5e74\u53cc11\uff0c\u963f\u91cc\u641c\u7d22\u79bb\u7ebf\u96c6\u7fa4\u7684\u541e\u5410\u5cf0\u503c\u4e00\u79d2\u949f\u8bbf\u95ee\u8d85\u8fc7 4000 \u4e07\u6b21\uff0c\u5355\u673a\u4e00\u79d2\u949f\u541e\u5410\u5cf0\u503c\u8fbe\u5230 10 \u4e07\u6b21\u3002\u8fd8\u6709\u5728 CPU \u4f7f\u7528\u91cf\u8d85\u8fc7 70% \u7684\u60c5\u51b5\u4e0b\uff0c\u5355 cpu core \u8fd8\u53ef\u652f\u6491 8000+ QPS\u3002<\/span><\/p>\n<p>HBase \u5728\u963f\u91cc\u641c\u7d22\u7684\u89d2\u8272\u548c\u4e3b\u8981\u5e94\u7528\u573a\u666f<\/p>\n<p><span><strong><span>\u89d2\u8272\uff1a<\/span><\/strong><\/span><span>HBase \u662f\u963f\u91cc\u641c\u7d22\u7684\u6838\u5fc3\u5b58\u50a8\u7cfb\u7edf\uff0c\u5b83\u548c\u8ba1\u7b97\u5f15\u64ce\u7d27\u5bc6\u7ed3\u5408\uff0c\u4e3b\u8981\u670d\u52a1\u641c\u7d22\u548c\u63a8\u8350\u7684\u4e1a\u52a1\u3002<\/span><\/p>\n<\/p>\n<p><span>\u4e0a\u56fe\u662f HBase \u5728\u641c\u7d22\u548c\u63a8\u8350\u7684\u5e94\u7528\u6d41\u7a0b\u3002\u5728\u7d22\u5f15\u6784\u5efa\u6d41\u7a0b\u4e2d\uff0c\u4f1a\u4ece\u7ebf\u4e0a MySQL \u7b49\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u5546\u54c1\u548c\u7528\u6237\u4ea7\u751f\u7684\u6240\u6709\u7ebf\u4e0a\u6570\u636e\uff0c\u901a\u8fc7\u6d41\u5f0f\u7684\u65b9\u5f0f\u5bfc\u5165\u5230 HBase \u4e2d\uff0c\u5e76\u63d0\u4f9b\u7ed9<a class='tag-links' href=\"https:\/\/www.fagao.me\/p\/t\/121\">\u641c\u7d22\u5f15\u64ce<\/a>\u6784\u5efa\u7d22\u5f15\u3002<\/span><\/p>\n<p><span>\u5728\u63a8\u8350\u6d41\u7a0b\u4e2d\uff0c\u673a\u5668\u5b66\u4e60\u5e73\u53f0 Porshe \u4f1a\u5c06\u6a21\u578b\u548c\u7279\u5f81\u6570\u636e\u5b58\u50a8\u5728 HBase \u91cc\uff0c\u5e76\u5c06\u7528\u6237\u70b9\u51fb\u6570\u636e\u5b9e\u65f6\u7684\u5b58\u5165 HBase\uff0c\u901a\u8fc7\u5728\u7ebf training \u66f4\u65b0\u6a21\u578b\uff0c\u63d0\u9ad8\u7ebf\u4e0a\u63a8\u8350\u7684\u51c6\u786e\u5ea6\u548c\u6548\u679c\u3002<\/span><\/p>\n<p>\u5e94\u7528\u573a\u666f\u4e00<\/p>\n<p>\u7d22\u5f15\u6784\u5efa<\/p>\n<p><span>\u6dd8\u5b9d\u548c\u5929\u732b\u6709\u5404\u79cd\u5404\u6837\u7684\u7684\u7ebf\u4e0a\u6570\u636e\u6e90\uff0c\u8fd9\u53d6\u51b3\u4e8e\u6dd8\u5b9d\u6709\u975e\u5e38\u591a\u4e0d\u540c\u7684\u7ebf\u4e0a\u5e97\u94fa\u548c\u5404\u79cd\u7528\u6237\u8bbf\u95ee\u3002<\/span><\/p>\n<\/p>\n<p><span>\u5982\u56fe\u6240\u793a\u3002\u5728\u591c\u95f4\uff0c\u6211\u4eec\u4f1a\u5c06\u6570\u636e\u4ece HBase \u6279\u91cf\u5bfc\u51fa\uff0c\u4f9b\u7ed9<a class='tag-links' href=\"https:\/\/www.fagao.me\/p\/t\/121\">\u641c\u7d22\u5f15\u64ce<\/a>\u6765\u6784\u5efa\u5168\u91cf\u7d22\u5f15\u3002\u800c\u5728\u767d\u5929\uff0c\u7ebf\u4e0a\u5546\u54c1\u3001\u7528\u6237\u4fe1\u606f\u7b49\u90fd\u5728\u4e0d\u505c\u7684\u53d8\u5316\uff0c\u8fd9\u4e9b\u52a8\u6001\u7684\u53d8\u5316\u6570\u636e\u4e5f\u4f1a\u4ece\u7ebf\u4e0a\u5b58\u50a8\u5b9e\u65f6\u7684\u66f4\u65b0\u5230HBase\u5e76\u89e6\u53d1\u589e\u91cf\u7d22\u5f15\u6784\u5efa\uff0c\u8fdb\u800c\u4fdd\u8bc1\u641c\u7d22\u7ed3\u679c\u7684\u5b9e\u65f6\u6027\u3002<\/span><\/p>\n<p><span>\u76ee\u524d\uff0c\u53ef\u4ee5\u505a\u5230\u7aef\u5230\u7aef\u7684\u5ef6\u65f6\u63a7\u5236\u5728\u79d2\u7ea7\uff0c\u5373\u5e93\u5b58\u53d8\u5316\uff0c\u4ea7\u54c1\u4e0a\u67b6\u7b49\u4fe1\u606f\u5728\u670d\u52a1\u7aef\u66f4\u65b0\u540e\uff0c\u8fc5\u901f\u7684\u53ef\u5728\u7528\u6237\u7ec8\u7aef\u641c\u7d22\u5230\u3002<\/span><\/p>\n<\/p>\n<p><em><span>\u7d22\u5f15\u6784\u5efa\u5e94\u7528\u573a\u666f\u62bd\u8c61\u56fe<\/span><\/em><\/p>\n<p><span>\u6574\u4e2a\u7d22\u5f15\u6784\u5efa\u8fc7\u7a0b\u53ef\u4ee5\u62bd\u8c61\u6210\u4e00\u4e2a\u6301\u7eed\u66f4\u65b0\u7684\u6d41\u7a0b\u3002\u5982\u628a\u5168\u91cf\u548c\u589e\u91cf\u770b\u505a\u662f\u4e00\u4e2a Join\uff0c\u7ebf\u4e0a\u6709\u4e0d\u540c\u7684\u6570\u636e\u6e90\u4e14\u5b9e\u65f6\u5904\u4e8e\u66f4\u65b0\u72b6\u6001\uff0c\u6574\u4e2a\u8fc7\u7a0b\u662f\u957f\u671f\u6301\u7eed\u7684\u8fc7\u7a0b\u3002\u8fd9\u91cc\uff0c\u5c31\u51f8\u663e\u51fa HBase \u548c\u6d41\u5f0f\u8ba1\u7b97\u5f15\u64ce\u76f8\u7ed3\u5408\u7684\u7279\u70b9\u3002<\/span><\/p>\n<p>\u5e94\u7528\u573a\u666f\u4e8c<\/p>\n<p>\u673a\u5668\u5b66\u4e60<\/p>\n<p><span>\u8fd9\u91cc\u4e3e\u4e00\u4e2a\u7b80\u5355\u7684\u673a\u5668\u5b66\u4e60\u793a\u4f8b\uff1a\u7528\u6237\u60f3\u4e70\u4e00\u6b3e\u4e09\u5343\u5143\u7684\u624b\u673a\uff0c\u4e8e\u662f\u5728\u6dd8\u5b9d\u6309\u7167\u4e09\u5343\u5143\u7684\u6761\u4ef6\u7b5b\u9009\u4e0b\u6765\uff0c\u4f46\u662f\u6ca1\u6709\u4e2d\u610f\u7684\u3002\u4e4b\u540e \uff0c\u7528\u6237\u4f1a\u4ece\u5934\u641c\u7d22\uff0c\u8fd9\u65f6\u5c31\u4f1a\u5229\u7528\u673a\u5668\u5b66\u4e60\u6a21\u578b\u628a\u4e09\u5343\u5757\u94b1\u5de6\u53f3\u7684\u624b\u673a\u6392\u5728\u641c\u7d22\u7ed3\u679c\u7684\u9760\u524d\u4f4d\u7f6e\uff0c\u4e5f\u5c31\u662f\u7528\u524d\u4e00\u4e2a\u641c\u7d22\u7ed3\u679c\u6765\u5f71\u54cd\u540e\u4e00\u4e2a\u641c\u7d22\u7ed3\u679c\u7684\u6392\u5e8f\u3002<\/span><\/p>\n<\/p>\n<p><em><span>\u5206\u6790\u7ebf\u4e0a\u65e5\u5fd7<\/span><\/em><\/p>\n<p><span>\u5982\u4e0a\u56fe\uff0c\u5206\u6790\u7ebf\u4e0a\u65e5\u5fd7\u3002\u5f52\u7ed3\u4e3a\u5546\u54c1\u548c\u7528\u6237\u4e24\u4e2a\u7eac\u5ea6\uff0c\u5bfc\u5165\u5206\u5e03\u5f0f\u3001\u6301\u4e45\u5316\u6d88\u606f\u961f\u5217\uff0c\u5b58\u653e\u5230 HBase \u4e0a\u3002\u968f\u7ebf\u4e0a\u7528\u6237\u7684\u70b9\u51fb\u884c\u4e3a\u65e5\u5fd7\u6765\u4ea7\u751f\u6570\u636e\u66f4\u65b0\uff0c\u5bf9\u5e94\u6a21\u578b\u968f\u4e4b\u66f4\u65b0\uff0c\u8fdb\u884c\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\uff0c\u8fd9\u662f\u4e00\u4e2a\u53cd\u590d\u8fed\u4ee3\u7684\u8fc7\u7a0b\u3002<\/span><\/p>\n<p>HBase \u5728\u963f\u91cc\u641c\u7d22\u5e94\u7528\u4e2d\u9047\u5230\u7684\u95ee\u9898\u548c\u4f18\u5316<\/p>\n<p>HBase \u67b6\u6784\u5206\u5c42<\/p>\n<p><span>\u5728\u8bf4\u95ee\u9898\u548c\u4f18\u5316\u4e4b\u524d\uff0c\u5148\u6765\u770b HBase \u7684\u67b6\u6784\u56fe\uff0c\u5927\u81f4\u5206\u4e3a\u5982\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<\/span><\/p>\n<\/p>\n<p><em><span>HBase \u7684\u67b6\u6784\u56fe<\/span><\/em><\/p>\n<p><span>\u9996\u5148\u662f API\uff0c\u4e00\u4e9b\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3\u3002RPC\uff0c\u8fd9\u91cc\u628a\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\u534f\u8bae\u5206\u4e3a\u5ba2\u6237\u7aef\u4f1a\u53d1\u8d77\u8bbf\u95ee\u4e0e\u670d\u52a1\u7aef\u6765\u5904\u7406\u8bbf\u95ee\u4e24\u90e8\u5206\u3002MTTR \u6545\u969c\u6062\u590d\u3001Replication \u6570\u636e\u590d\u5236\u3001\u8868\u5904\u7406\u7b49\uff0c\u8fd9\u4e9b\u90fd\u662f\u5206\u5e03\u5f0f\u7ba1\u7406\u7684\u8303\u7574\u3002\u4e2d\u95f4 Core \u662f\u6838\u5fc3\u7684\u6570\u636e\u5904\u7406\u6d41\u7a0b\u90e8\u5206\uff0c\u50cf\u5199\u5165\u3001\u67e5\u8be2\u7b49\uff0c\u6700\u5e95\u5c42\u662f HDFS\uff08\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff09\u3002<\/span><\/p>\n<p><span>HBase \u5728\u963f\u91cc\u641c\u7d22\u5e94\u7528\u4e2d\u9047\u5230\u7684\u95ee\u9898\u548c\u4f18\u5316\u6709\u5f88\u591a\uff0c\u4e0b\u9762\u6311\u9009\u8fd1\u671f\u6bd4\u8f83\u91cd\u70b9\u7684\u4e94\u65b9\u9762\u8fdb\u884c\u5c55\u5f00\u3002<\/span><\/p>\n<ul>\n<li>\n<p><span>RPC \u7684\u74f6\u9888\u548c\u4f18\u5316<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u5f02\u6b65\u4e0e\u541e\u5410<\/span><\/p>\n<\/li>\n<li>\n<p><span>GC \u4e0e\u6bdb\u523a<\/span><\/p>\n<\/li>\n<li>\n<p><span>IO \u9694\u79bb\u4e0e\u4f18\u5316<\/span><\/p>\n<\/li>\n<li>\n<p><span>IO \u5229\u7528<\/span><\/p>\n<\/li>\n<\/ul>\n<p>\u95ee\u9898\u4e0e\u4f18\u5316\u4e00<\/p>\n<p>RPC \u7684\u74f6\u9888\u548c\u4f18\u5316<\/p>\n<\/p>\n<p><span><strong>\u5b9e\u9645\u95ee\u9898\uff1a<\/strong><\/span><\/p>\n<ul>\n<li>\n<p><span>\u539f\u6709 RpcServer \u7684\u7ebf\u7a0b\u6a21\u578b\u6548\u7387\u8f83\u4f4e<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span><strong><span>\u4f18\u5316\u624b\u6bb5\uff1a<\/span><\/strong><\/span><\/p>\n<ul>\n<li>\n<p><span>Netty \u53ef\u4ee5\u66f4\u9ad8\u6548\u7684\u590d\u7528\u7ebf\u7a0b<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u57fa\u4e8e Netty \u5b9e\u73b0 HBase RpcServer<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span><strong><span>\u7ebf\u4e0a\u6548\u679c\uff1a<\/span><\/strong><\/span><\/p>\n<ul>\n<li>\n<p><span>Rpc \u5e73\u5747\u54cd\u5e94\u65f6\u95f4\u4ece 0.92ms \u4e0b\u964d\u5230 0.25ms<\/span><\/p>\n<\/li>\n<li>\n<p><span>Rpc \u541e\u5410\u80fd\u529b\u63d0\u9ad8\u63a5\u8fd1 <span>2 \u500d<\/span><\/span><\/p>\n<\/li>\n<\/ul>\n<p>\u95ee\u9898\u4e0e\u4f18\u5316\u4e8c<\/p>\n<p>\u5f02\u6b65\u4e0e\u541e\u5410<\/p>\n<\/p>\n<p><strong><span>\u5b9e\u9645\u95ee\u9898\uff1a<\/span><\/strong><\/p>\n<ul>\n<li>\n<p><span>\u6d41\u5f0f\u8ba1\u7b97\u5bf9\u4e8e\u5b9e\u65f6\u6027\u7684\u8981\u6c42\u5f88\u9ad8<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u5206\u5e03\u5f0f\u7cfb\u7edf\u65e0\u6cd5\u907f\u514d\u79d2\u7ea7\u6bdb\u523a<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u540c\u6b65\u6a21\u5f0f\u5bf9\u6bdb\u523a\u654f\u611f\uff0c\u541e\u5410\u5b58\u5728\u74f6\u9888<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span><strong><span>\u4f18\u5316\u624b\u6bb5\uff1a<\/span><\/strong><\/span><\/p>\n<ul>\n<li>\n<p><span>\u57fa\u4e8e ne_y \u5b9e\u73b0 non-blocking client<\/span><\/p>\n<\/li>\n<li>\n<p><span>\u57fa\u4e8e protobuf \u7684 non-blockingStub\/RpcCallback \u5b9e\u73b0 callback \u56de\u8c03<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span><strong><span>\u7ebf\u4e0a\u6548\u679c\uff1a<\/span><\/strong><\/span><\/p>\n<ul>\n<li>\n<p><span>\u548c flink \u96c6\u6210\u540e\u5b9e\u6d4b\u541e\u5410\u8f83\u540c\u6b65\u6a21\u5f0f\u63d0\u9ad8 <span>2 \u500d<\/span><\/span><\/p>\n<\/li>\n<\/ul>\n<p>\u95ee\u9898\u4e0e\u4f18\u5316\u4e09<\/p>\n<p>GC\u4e0e\u6bdb\u523a<\/p>\n<\/p>\n<p><span><strong><span>\u5b9e\u9645\u95ee\u9898\uff1a<\/span><\/strong><\/span><\/p>\n<p><span>PCIe-SSD \u7684\u9ad8 IO \u541e\u5410\u80fd\u529b\u4e0b\uff0c\u8bfb cache \u7684\u6362\u5165\u6362\u51fa\u901f\u7387\u5927\u5e45\u63d0\u9ad8<\/span><\/p>\n<p><span>\u5806\u4e0a\u7684 cache \u5185\u5b58\u56de\u6536\u4e0d\u53ca\u65f6\uff0c\u5bfc\u81f4\u9891\u7e41\u7684 CMS gc \u751a\u81f3 fullGC<\/span><\/p>\n<p><span><strong><span>\u4f18\u5316\u624b\u6bb5\uff1a<\/span><\/strong><\/span><\/p>\n<p><span>\u5b9e\u73b0\u8bfb\u8def\u5f84 E2E \u7684 odeap<\/span><\/p>\n<p><span><strong><span>\u7ebf\u4e0a\u6548\u679c\uff1a<\/span><\/strong><\/span><\/p>\n<p><span>Full \u548c CMS gc \u9891\u7387\u964d\u4f4e 200% \u4ee5\u4e0a<\/span><\/p>\n<p><span>\u8bfb\u541e\u5410\u63d0\u9ad8 20% \u4ee5\u4e0a<\/span><\/p>\n<\/p>\n<p><span>\u5982\u4e0a\u56fe\uff0c\u662f\u7ebf\u4e0a\u7684\u4e00\u4e2a\u7ed3\u679c\uff0cQPS \u4e4b\u524d\u662f 17.86 M\uff0c\u4f18\u5316\u4e4b\u540e\u662f 25.31 M\u3002<\/span><\/p>\n<p>\u95ee\u9898\u4e0e\u4f18\u5316\u56db<\/p>\n<p>IO\u9694\u79bb\u4e0e\u4f18\u5316<\/p>\n<p><span>HBase \u672c\u8eab\u5bf9 IO \u975e\u5e38\u654f\u611f\uff0c\u78c1\u76d8\u6253\u6ee1\u4f1a\u9020\u6210\u5927\u91cf\u6bdb\u523a\u3002\u5728\u8ba1\u7b97\u5b58\u50a8\u6df7\u5408\u90e8\u7f72\u73af\u5883\u4e0b\uff0cMapReduce \u4f5c\u4e1a\u4ea7\u751f\u7684 shuffle \u6570\u636e\u548c HBase \u81ea\u8eab Flush\/Compaction \u8fd9\u4e24\u65b9\u9762\u90fd\u662f\u5927 IO \u6765\u6e90\u3002<\/span><\/p>\n<p><span>\u5982\u4f55\u89c4\u907f\u8fd9\u4e9b\u5f71\u54cd\u5462\uff1f\u5229\u7528 HDFS \u7684 Heterogeneous Storage \u529f\u80fd\uff0c\u5bf9 WAL(write-ahead-log) \u548c\u91cd\u8981\u4e1a\u52a1\u8868\u7684 HFile \u4f7f\u7528 ALL_SSD \u7b56\u7565\u3001\u666e\u901a\u4e1a\u52a1\u8868\u7684 HFile \u4f7f\u7528 ONE_SSD \u7b56\u7565\uff0c\u4fdd\u8bc1 Bulkload \u652f\u6301\u6307\u5b9a storage policy\u3002\u540c\u65f6\uff0c\u786e\u4fdd MR \u4e34\u65f6\u6570\u636e\u76ee\u5f55(mapreduce.cluster.local.dir)\u53ea\u4f7f\u7528 SATA \u76d8\u3002<\/span><\/p>\n<\/p>\n<p><em><span>HBase \u96c6\u7fa4 IO \u9694\u79bb\u540e\u7684\u6bdb\u523a\u4f18\u5316\u6548\u679c<\/span><\/em><\/p>\n<p><span>\u5bf9\u4e8e HBase \u81ea\u8eab\u7684 IO \u5e26\u6765\u7684\u5f71\u54cd\uff0c\u91c7\u7528 Compaction \u9650\u6d41\u3001Flush \u9650\u6d41\u548c Per-CF flush \u4e09\u5927\u624b\u6bb5\u3002\u4e0a\u56fe\u4e3a\u7ebf\u4e0a\u6548\u679c\uff0c\u7eff\u7ebf\u4ece\u5de6\u5230\u53f3\u5206\u522b\u662f\u54cd\u5e94\u65f6\u95f4\u3001\u5904\u7406\u65f6\u95f4\u548c\u7b49\u5f85\u65f6\u95f4\u7684 p999 \u6570\u636e\uff0c\u4ee5\u54cd\u5e94\u65f6\u95f4\u4e3a\u4f8b\uff0c99.9% \u7684\u8bf7\u6c42\u4e0d\u4f1a\u8d85\u8fc7 250ms\u3002<\/span><\/p>\n<p>\u95ee\u9898\u4e0e\u4f18\u5316\u4e94<\/p>\n<p>IO \u5229\u7528<\/p>\n<\/p>\n<p><span><em>\u5355 WAL \u65e0\u6cd5\u5145\u5206\u4f7f\u7528\u78c1\u76d8 IO<\/em><\/span><\/p>\n<p><span>HDFS \u5199 3 \u4efd\u526f\u672c\u3001\u901a\u7528\u673a\u578b\u6709 12 \u5757 HDD \u76d8\u3001SSD \u7684 IO \u80fd\u529b\u8fdc\u8d85 HDD\u3002\u5982\u4e0a\u56fe\uff0c\u5b9e\u9645\u95ee\u9898\u662f\u5355 WAL \u65e0\u6cd5\u5145\u5206\u4f7f\u7528\u78c1\u76d8 IO\u3002<\/span><\/p>\n<\/p>\n<p><em><span>\u5408\u7406\u6620\u5c04\u5bf9 region \u8fdb\u884c\u5206\u7ec4<\/span><\/em><\/p>\n<p><span>\u5982\u4e0a\u56fe\uff0c\u4e3a\u4e86\u5145\u5206\u5229\u7528 IO\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5408\u7406\u6620\u5c04\u5bf9 region \u8fdb\u884c\u5206\u7ec4\uff0c\u6765\u5b9e\u73b0\u591a WAL\u3002\u57fa\u4e8e Namespace\u7684WAL \u5206\u7ec4\uff0c\u652f\u6301 App \u95f4 IO \u9694\u79bb\u3002\u4ece\u4e0a\u7ebf\u6548\u679c\u6765\u770b\uff0c\u5168 HDD \u76d8\u4e0b\u5199\u541e\u5410\u63d0\u9ad8 20%\uff0c\u5168 SSD \u76d8\u4e0b\u5199\u541e\u5410\u63d0\u9ad8 40%\u3002\u7ebf\u4e0a\u5199\u5165\u5e73\u5747\u54cd\u5e94\u5ef6\u65f6\u4ece 0.5ms \u4e0b\u964d\u5230 0.3ms\u3002<\/span><\/p>\n<p>\u5f00\u6e90&amp;\u672a\u6765<\/p>\n<p><span>\u4e3a\u4ec0\u4e48\u8981\u62e5\u62b1\u5f00\u6e90\uff1f\u5176\u4e00\uff0c\u8bd5\u60f3\u5982\u679c\u5927\u5bb6\u505a\u4e86\u4f18\u5316\u90fd\u4e0d\u62ff\u51fa\u6765\uff0c\u8ba4\u4e3a\u8fd9\u662f\u81ea\u5df1\u5f3a\u4e8e\u522b\u4eba\u7684\u4f18\u52bf\uff0c\u7ed3\u679c\u4f1a\u600e\u6837\uff1f\u5982\u679c\u5927\u5bb6\u628a\u81ea\u5df1\u7684\u4f18\u52bf\u90fd\u62ff\u51fa\u6765\u5206\u4eab\uff0c\u5f97\u5230\u7684\u4f1a\u662f\u6b63\u5411\u7684\u53cd\u9988\u3002\u5176\u4e8c\uff0c HBase \u7684\u56e2\u961f\u4e00\u822c\u90fd\u6bd4\u8f83\u5c0f\uff0c\u4eba\u5458\u6d41\u5931\u4f1a\u4ea7\u751f\u5f88\u5927\u7684\u635f\u5931\u3002\u5982\u628a\u5185\u5bb9\u8d21\u732e\u7ed9\u793e\u533a\uff0c\u4ee3\u7801\u7684\u7ef4\u62a4\u6210\u672c\u53ef\u4ee5\u5927\u5927\u964d\u4f4e\u3002\u5f00\u6e90\u4e00\u8d77\u505a\uff0c\u6bd4\u4e00\u4e2a\u516c\u53f8\u4e00\u4e2a\u4eba\u505a\u8981\u597d\u5f88\u591a\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u6709\u8d21\u732e\u7cbe\u795e\u3002<\/span><\/p>\n<p><span>\u672a\u6765\uff0c\u4e00\u65b9\u9762\uff0c\u963f\u91cc\u641c\u7d22\u4f1a\u8fdb\u4e00\u6b65\u628a PPC \u670d\u52a1\u7aef\u4e5f\u505a\u5f02\u6b65\uff0c\u628a HBase \u5185\u6838\u7528\u5728\u6d41\u5f0f\u8ba1\u7b97\u3001\u4e3a HBase \u63d0\u4f9b\u5d4c\u5165\u5f0f\u7684\u6a21\u5f0f\u3002\u53e6\u4e00\u65b9\u9762\uff0c\u5c1d\u8bd5\u66f4\u6362 HBase \u5185\u6838\uff0c\u7528\u65b0\u7684 DB \u6765\u66ff\u4ee3\uff0c\u8fbe\u5230\u66f4\u9ad8\u7684\u6027\u80fd\u3002<\/span><\/p>\n<p><strong><span>\u8ba9\u6211\u4eec\u5171\u540c\u671f\u5f85\uff0c 2017\u5e748\u67084\u65e5\u4e8e\u6df1\u5733\u4e3e\u884c\u7684 HBaseCon Asia\uff0c\u73b0\u573a\u89c1\uff01<\/span><\/strong><\/p>\n<p><span><strong><span>\u76f8\u5173\u63a8\u8350\uff1a<\/span><\/strong><\/span><\/p>\n<\/p>\n<\/p>\n<div class=\"articleend\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>HBase \u4f5c\u4e3a\u6dd8\u5b9d\u5168\u7f51\u7d22\u5f15\u6784\u5efa\u4ee5\u53ca\u5728\u7ebf\u673a\u5668\u5b66\u4e60\u5e73\u53f0\u7684\u6838\u5fc3\u5b58\u50a8\u7cfb\u7edf\uff0c\u662f\u963f\u91cc\u641c\u7d22\u57fa\u7840\u67b6\u6784\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002\u672c\u6587\u5c06\u4ecb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[183],"class_list":["post-111818","post","type-post","status-publish","format-standard","hentry","category-news","tag-183"],"_links":{"self":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/111818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/comments?post=111818"}],"version-history":[{"count":0,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/111818\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/media?parent=111818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/categories?post=111818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/tags?post=111818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}