{"id":233165,"date":"2020-12-29T17:58:11","date_gmt":"2020-12-29T09:58:11","guid":{"rendered":"http:\/\/4563.org\/?p=233165"},"modified":"2020-12-29T17:58:11","modified_gmt":"2020-12-29T09:58:11","slug":"%e6%9c%89%e4%ba%86%e8%a7%a3-clickhouse-%e8%bf%99%e4%b8%aa%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e8%80%81%e5%93%a5%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=233165","title":{"rendered":"\u6709\u4e86\u89e3 clickhouse \u8fd9\u4e2a\u6570\u636e\u5e93\u7684\u8001\u54e5\u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u4e86\u89e3 clickhouse \u8fd9\u4e2a\u6570\u636e\u5e93\u7684\u8001\u54e5\u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <span><i><\/i> 7<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u60f3\u628a clickhouse \u7528\u5728\u516c\u53f8\u6e38\u620f\u4e1a\u52a1\u7684\u57cb\u70b9\u7edf\u8ba1\u4e0a. \u6570\u636e\u5e93\u7528\u8d77\u6765\u6548\u679c\u5f88\u597d, \u4f46\u662f\u7ed9\u4e0a\u53f8\u6f14\u793a\u7684\u65f6\u5019\u53d1\u73b0 clickhouse-serv \u8fd9\u4e2a\u8fdb\u7a0b\u4f1a\u957f\u65f6\u95f4\u5360\u7528 cpu \u8d44\u6e90, \u5360\u7528\u5927\u6982 5-10%\u7684\u6d6e\u52a8, \u6211\u865a\u62df\u673a\u7684\u914d\u7f6e\u662f i7 8700k, \u5206\u4e86 12 \u4e2a\u6838\u5fc3, 8G \u5185\u5b58, ssd \u50a8\u5b58.<\/p>\n<p>\u6211\u6709\u4e86\u89e3\u8fc7 clickhouse \u7684\u540e\u53f0\u8fdb\u7a0b\u4f1a\u4e0d\u65ad\u8fdb\u884c\u5408\u5e76, \u6392\u5e8f\u6570\u636e, \u4f46\u662f\u5b9e\u9645\u60c5\u51b5\u662f\u5df2\u7ecf\u5341\u51e0\u4e2a\u5c0f\u65f6\u6ca1\u6709\u66f4\u65b0\u8fc7\u6570\u636e\u4e86, \u4f46\u662f\u8fd9\u4e2a\u8fdb\u7a0b\u8fd8\u662f\u4e0d\u65ad\u5360\u7528 cpu \u8d44\u6e90<\/p>\n<p>\u6211\u77e5\u9053\u8fd9\u70b9\u8d44\u6e90\u5176\u5b9e\u6839\u672c\u4e0d\u7b97\u4ec0\u4e48, \u4f46\u662f\u516c\u53f8\u670d\u52a1\u5668\u8d44\u6e90\u7533\u8bf7\u56f0\u96be, \u4e0a\u53f8\u8bf4\u627e\u4e0d\u5230\u539f\u56e0\u5c31\u4e0d\u7528\u8fd9\u4e2a\u6570\u636e\u5e93\u4e86<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>21<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4622571\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : newtype0092 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4eec\u90fd\u662f mysql \u6570\u636e\u8fc7\u4ebf\u67e5\u8be2\u6548\u7387\u592a\u4f4e\u7684\u65f6\u5019\u624d\u5207\u5230 clickhouse \u4e0a\u7684\uff0c\u9664\u4e86\u63d2\u5165\u548c\u4fee\u6539\u6210\u672c\u6bd4\u8f83\u9ad8\uff0c\u9700\u8981\u4ece\u4e1a\u52a1\u6d41\u7a0b\u60f3\u529e\u6cd5\u89c4\u907f\uff0c\u5176\u4ed6\u6ca1\u9047\u5230\u592a\u5927\u95ee\u9898\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622572\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alexanderchiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             cpu \u5360\u7528\u9ad8\uff0c\u4f60\u662f\u5728\u4e00\u76f4\u63d2\u5165\u6570\u636e\u5417\uff1f<br \/>\u53e6\u5916\u53ef\u4ee5\u7528\u963f\u91cc\u4e91\u7684 clickhouse\uff0c\u540e\u53f0\u4f1a\u6709\u5f00\u53d1\u4e3a\u4f60\u63d0\u4f9b\u6280\u672f\u5efa\u8bae\u548c\u89e3\u51b3 cpu \u5360\u7528\u8fc7\u9ad8\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622573\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @newtype0092 mysql \u5e94\u8be5\u662f\u76f4\u63a5\u5426\u4e86, \u8fd9\u8fb9\u505a\u7684\u57cb\u70b9\u4e1a\u52a1\u57fa\u672c\u4e0d\u9700\u8981\u66f4\u65b0, \u53ea\u8981\u63d2\u5165, \u5e76\u4e14\u9700\u8981\u505a\u590d\u6742\u7684\u805a\u5408\u7edf\u8ba1. \u73b0\u5728\u57fa\u672c\u53ea\u6709 clickhouse \u80fd\u6ee1\u8db3\u9700\u6c42\u4e86, \u4f46\u662f\u8fd9\u4e2a\u5360\u7528\u8d44\u6e90\u7684\u73b0\u8c61\u5f88\u8d39\u89e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622574\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @alexanderchiu \u4e0d\u662f cpu \u5360\u7528\u9ad8, \u800c\u662f clickhouse \u7684\u540e\u53f0\u8fdb\u7a0b\u957f\u65f6\u95f4\u90fd\u4f1a\u5360\u7528\u90e8\u5206\u7684 cpu \u8d44\u6e90, \u5176\u5b9e\u5df2\u7ecf\u5f88\u4e45\u6ca1\u63d2\u5165\u6570\u636e\u5e93\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622575\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : monsterxx03 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u7528\u8fc7, \u4e0d\u8fc7\u4e00\u822c\u601d\u8def\u662f gdb attach \u4e0a\u53bb\u770b\u770b\u6709\u54ea\u4e9b\u6d3b\u8dc3\u7ebf\u7a0b, \u770b\u770b\u5bf9\u5e94\u4ee3\u7801\u5927\u81f4\u5728\u505a\u4ec0\u4e48.<br \/>\u8fd9\u4e48\u70b9 CPU \u5360\u7528\u7387, \u5f88\u6b63\u5e38\u554a, \u5c31\u7b97\u6ca1\u6570\u636e\u63d2\u5165, \u540e\u53f0\u7ebf\u7a0b\u626b\u63cf\u4e5f\u662f\u6709\u5f00\u9500\u7684, \u770b\u770b\u6709\u4ec0\u4e48\u5bf9\u5e94\u53c2\u6570\u9650\u5236\u7ebf\u7a0b\u6c60\u5927\u5c0f\u6216\u626b\u63cf\u5e73\u7387.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622576\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alexanderchiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hsk9044 \u6211\u8bb0\u5f97\u5982\u679c\u5373\u4f7f\u662f\u4e0d\u63d2\u5165\u6570\u636e\u7684\u8bdd\uff0c\u5176\u5b9e mergeTree \u8fd8\u662f\u4f1a\u5b9a\u671f\u6839\u636e\u4e00\u5b9a\u65f6\u95f4\u95f4\u9694\u6765\u7ee7\u7eed\u5408\u5e76\u538b\u7f29\u6570\u636e\u3002\u5408\u5e76\u7b56\u7565\u6709\u6309\u65e5\u671f\u5408\u5e76\u3002\u53ef\u80fd\u8fd9\u90e8\u5206\u4f1a\u4e00\u76f4\u5360\u7528\u4e00\u5b9a\u7684 cpu \u3002\u6216\u8005\u4f60\u53ef\u4ee5\u53bb\u9489\u9489\u7684 clickhouse \u6280\u672f\u4ea4\u6d41\u7fa4\u54a8\u8be2\u4e0b\uff0c\u963f\u91cc\u4e91 clickhouse \u9875\u9762\u6709\u7fa4\u53f7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622577\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alexanderchiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u987a\u4fbf\u6253\u4e2a\u5e7f\u544a\u54c8\u54c8 \u53ef\u4ee5\u5c1d\u8bd5\u8bd5\u4e0b\u963f\u91cc\u4e91\u7684 clickhouse \uff08\u5229\u76ca\u76f8\u5173\uff1a\u5728\u4ed6\u4eec\u7684 ck \u7ec4\u5b9e\u4e60\u8fc7 \u4ed6\u4eec\u4f1a\u6709\u6280\u672f\u4e13\u5bb6\u4e13\u95e8\u4e3a\u4f60\u5b9a\u5236\u65b9\u6848 \/\u6392\u67e5\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622578\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DoctorCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53c2\u8003\uff1a https:\/\/github.com\/ClickHouse\/ClickHouse\/issues\/542#issuecomment-283416542                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622579\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dbskcnc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8bd5\u8bd5 doris https:\/\/github.com\/apache\/incubator-doris                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622580\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @alexanderchiu \u597d\u7684, \u6211\u53bb\u4e70\u4e00\u4e2a\u770b\u770b<\/p>\n<p>@DoctorCat \u90a3\u4e2a issue \u7684\u60c5\u51b5\u4f3c\u4e4e\u4e0d\u592a\u4e00\u6837, \u6211\u8fd9\u8fb9\u67e5\u7684\u5b9e\u9645\u4e0a\u662f\u6ca1\u6709\u5728\u5408\u5e76\u8d44\u6e90\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622581\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aladdindingding <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6309\u7167\u4ec0\u4e48\u5206\u533a\u7684 \u6211\u4eec\u90fd\u662f\u6309\u7167\u5929\u5206\u533a\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622582\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @aladdindingding \u6309\u5929+\u57cb\u70b9\u7c7b\u578b, \u4e0d\u8fc7\u76ee\u524d\u5206\u533a\u4e5f\u4e0d\u591a, \u5927\u6982 100 \u4e2a\u5de6\u53f3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622583\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tikazyq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u8981\u53eb\u8001\u54e5\uff0c\u53eb\u8001\u5927                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622584\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lancelee01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ClickHouse \u8fdb\u7a0b\u5360\u7528 CPU \u662f\u56e0\u4e3a\u91cc\u9762\u6709\u5f88\u591a\u7ebf\u7a0b\u6c60\uff0c\u6b63\u5e38\u7684\u884c\u4e3a\u6d3b\u52a8\u5427\uff0c\u5305\u62ec\u548c ZK \u4ea4\u4e92\u3001\u68c0\u67e5\u65e7\u5206\u533a\u8fd9\u4e9b\u3002\u540c\u65f6\u4f60\u662f\u6ca1\u6709\u5199\u5165\u4e1a\u52a1\u6570\u636e\uff0c\u4e0d\u4ee3\u8868\u6ca1\u6709\u7cfb\u7edf\u6570\u636e\uff0c\u6bd4\u5982 ClickHouse \u7684\u5404\u79cd log \u8868\uff0c\u81ea\u5df1\u4f1a\u5199\uff0c\u4e5f\u4f1a merge\uff0c\u79fb\u9664\u65e7\u7684\u6570\u636e\u5224\u65ad\u3002\u6240\u4ee5\uff0c\u5360\u7528 CPU \u662f\u6b63\u5e38\u884c\u4e3a\uff0c\u96be\u4e0d\u6210\u4f60\u4e0d\u8fdb\u884c\u64cd\u4f5c\uff0c\u6570\u636e\u5e93\u5c31\u5f97\u88c5\u6b7b\u51ac\u7720\u5417\u3002\u3002\u3002\u54c8\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622585\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lancelee01 \u7cbe\u8f9f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622586\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : f6x <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u66f2\u7ebf\u7b97\u5e73\u5747\u503c\u628a. \u6709\u4e9b db \u5e73\u65f6 cpu \u5f88\u4f4e, \u7a81\u7136\u4e00\u4e0b\u5b50 300%\u624d\u771f\u662f\u4e0d\u80fd\u7528.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622587\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DoctorCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             There are two types of background actions:<\/p>\n<p>merging of data parts;<br \/>fetching of data part from replica.<\/p>\n<p>\u90a3\u662f\u4e0d\u662f issue \u4e2d alexey-milovidov \u63d0\u5230\u7684\u7b2c\u4e8c\u79cd\u539f\u56e0\u5462\uff1f <br \/>@hsk9044                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622588\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : hsk9044 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @DoctorCat \u6211\u7406\u89e3\u7684\u7b2c\u4e8c\u4e2a\u539f\u56e0\u662f\u5f00\u4e86 clickhouse \u7684\u96c6\u7fa4\u590d\u5236, \u5b9e\u9645\u4e0a\u6211\u8fd9\u8fb9\u53ea\u5f00\u7528\u4e86\u5355\u673a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622589\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DoctorCat <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hsk9044 \u90a3\u5c31\u53ea\u80fd perf \u770b\u4e0b\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622590\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cholerae <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             perf \u4e00\u4e0b\u4e0d\u5c31\u5b8c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4622591\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : levelworm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6570\u636e\u91cf\u591a\u5927\u591a\u9891\u7e41\u554a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u4e86\u89e3 clickhouse \u8fd9\u4e2a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/233165"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=233165"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/233165\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233165"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}