{"id":24237,"date":"2019-08-29T21:05:51","date_gmt":"2019-08-29T13:05:51","guid":{"rendered":"https:\/\/www.growthhk.cn\/?p=24237"},"modified":"2019-08-29T21:05:54","modified_gmt":"2019-08-29T13:05:54","slug":"tidb-%e5%9c%a8%e5%b0%8f%e7%ba%a2%e4%b9%a6%e4%bb%8e-0-%e5%88%b0-200-%e8%8a%82%e7%82%b9%e7%9a%84%e6%8e%a2%e7%b4%a2%e5%92%8c%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.growthhk.cn\/mcn\/xiaohongshu\/24237.html","title":{"rendered":"TiDB \u5728\u5c0f\u7ea2\u4e66\u4ece 0 \u5230 200+ \u8282\u70b9\u7684\u63a2\u7d22\u548c\u5e94\u7528"},"content":{"rendered":"\n

<\/p>\n\n\n\n

\"\"<\/figure><\/div>\n\n\n\n

\u5c0f\u7ea2\u4e66<\/a><\/span>\u4f7f\u7528 TiDB \u5386\u53f2\u53ef\u4ee5\u8ffd\u6eaf\u5230 2017 \u5e74\u751a\u81f3\u66f4\u65e9\uff0c\u90a3\u65f6\u5728\u7269\u6d41\u3001\u4ed3\u5e93\u7b49\u5bf9\u65b0\u6280\u672f\u6bd4\u8f83\u611f\u5174\u8da3\u7684\u573a\u666f\u4e0b\u5e94\u7528\uff0c\u5728 2018 \u5e74 5 \u6708\u4e4b\u540e\uff0c\u6211\u4eec\u5c31\u5f00\u59cb\u9010\u6b65\u94fa\u5f00\uff0c\u5ef6\u5c55\u5230\u5176\u4ed6\u9002\u5408 TiDB \u7684\u573a\u666f\u4e2d\u53bb\u3002\u622a\u6b62\u76ee\u524d\uff0c\u5c0f\u7ea2\u4e66<\/a><\/span>\u4f7f\u7528\u7684 TiDB \u8282\u70b9\u6570\u5728 200+ \u4e2a\uff0c\u672a\u6765\u4e5f\u6709\u66f4\u5927\u6269\u5c55\u7a7a\u95f4\u3002<\/p>\n\n\n\n

\u672c\u6587\u6839\u636e\u8fd1\u4e24\u5e74 TiDB \u5728\u5c0f\u7ea2\u4e66\u7684\u843d\u5730\u8fc7\u7a0b\uff0c\u548c\u5927\u5bb6\u4e00\u8d77\u63a2\u8ba8\u4e00\u4e0b\uff0c\u5c0f\u7ea2\u4e66\u5728\u65b0\u6570\u636e\u5e93\u9009\u578b\u7684\u8003\u8651\u56e0\u7d20\u3001\u4ee5\u53ca TiDB \u4ece\u573a\u666f\u5206\u7c7b\u7684\u89d2\u5ea6\u662f\u5982\u4f55\u8003\u91cf\u53ca\u9010\u6b65\u63a8\u5e7f\u4f7f\u7528\u7684\u3002\u5177\u4f53\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n

  1. \u76ee\u524d\u5c0f\u7ea2\u4e66\u6570\u636e\u670d\u52a1\u6574\u4f53\u67b6\u6784\uff0c\u4ee5\u53ca\u4ece\u6570\u636e\u6d41\u89d2\u5ea6\u5982\u4f55\u5bf9\u4e0d\u540c\u6570\u636e\u5e93\u670d\u52a1\u8fdb\u884c\u5b9a\u4e49\u548c\u5212\u5206\u3002<\/li>
  2. \u4ece\u57fa\u672c\u529f\u80fd\u3001\u6570\u636e\u540c\u6b65\u3001\u90e8\u7f72\u7ba1\u7406\u3001\u8fd0\u7ef4\u3001\u4e8c\u6b21\u5f00\u53d1\u53ca\u4f18\u5316\u3001\u5b89\u5168\u7b49\u591a\u4e2a\u7ef4\u5ea6\u89e3\u8bfb\u5c0f\u7ea2\u4e66\u5728\u6570\u636e\u5e93\u9009\u578b\u7684\u8003\u8651\u56e0\u7d20\u53ca\u601d\u8003\u3002<\/li>
  3. TiDB \u7684\u9002\u7528\u573a\u666f<\/li>
  4. <\/li><\/ol>\n\n\n\n

    \u4e00\u3001\u5c0f\u7ea2\u4e66\u6570\u636e\u670d\u52a1\u6574\u4f53\u67b6\u6784<\/strong><\/p>\n\n\n\n

    \"\"<\/figure><\/div>\n\n\n\n

    \u5982\u56fe 1 \u6240\u793a\uff0c\u5c0f\u7ea2\u4e66\u6570\u636e\u670d\u52a1\u6574\u4f53\u67b6\u6784\u6700\u4e0a\u5c42\u662f\u5728\u7ebf\u5e94\u7528\u5c42\uff08online app\uff09\uff0c\u5e94\u7528\u5c42\u5f80\u4e0b\u80af\u5b9a\u4f1a\u4f9d\u8d56\u4e00\u4e9b\u79bb\u7ebf\uff08offline\uff09\u6216\u8005\u5728\u7ebf\uff08online\uff09\u7684 database\uff08\u5176\u5b9e\u5b83\u66f4\u591a\u7684\u610f\u4e49\u5e94\u8be5\u7b97\u5b58\u50a8\uff0c\u6bd4\u5982 Redis \u4e5f\u88ab\u6211\u4eec\u7406\u89e3\u4e3a database\uff0c\u6240\u4ee5\u79f0\u4e4b\u4e3a\u201c\u6570\u636e\u670d\u52a1\u201d\u53ef\u80fd\u4f1a\u66f4\u597d\uff09\uff0c\u8fd9\u4e9b\u5728\u7ebf\u6570\u636e\u670d\u52a1\uff08online database\uff09\u4f1a\u6709\u4e24\u6761\u7ebf\uff1a<\/p>\n\n\n\n

    \u901a\u8fc7\u5b9e\u65f6\u6570\u636e\u6d41\uff08dataflow\uff09\u5c06\u6570\u636e\u5bfc\u5165\u5230\u79bb\u7ebf\u6570\u636e\u5e93\uff08offline database\uff09\u652f\u6491\u79bb\u7ebf\u5206\u6790\u4ee5\u53ca\u5b9e\u65f6\u5c55\u793a\u7684\u573a\u666f\uff0c\u4e5f\u5c31\u662f\u56fe 1 \u6700\u4e0b\u5c42\u7684\u5c55\u793a\u7c7b\u670d\u52a1\uff08presentation\uff09\u548c\u6570\u4ed3\uff08data warehouse\uff09\u3002<\/p>\n\n\n\n

    \u8fd9\u4e9b\u6570\u636e\u8fd8\u53ef\u80fd\u4f1a\u56de\u704c\u5230\u7ebf\u4e0a\u5176\u4ed6 database \u4e0a\uff0c\u6709\u4e9b\u662f\u79bb\u7ebf\uff0c\u6709\u4e9b\u662f\u5b9e\u65f6\u3002<\/p>\n\n\n\n

    \u56fe 1 \u84dd\u6846\u4e2d\u7684\u90e8\u5206\u57fa\u672c\u4e0a\u90fd\u7531\u6211\u4eec\u56e2\u961f\u8d1f\u8d23\u3002\u6211\u4eec\u9996\u5148\u9700\u8981\u4fdd\u8bc1\u5728\u7ebf\u6570\u636e\u5e93\uff08online database\uff09 \u7684\u7a33\u5b9a\u6027\u3001\u5b89\u5168\u6027\u4ee5\u53ca\u6027\u80fd\u4f18\u5316\u7b49\uff0c\u5176\u6b21\u6211\u4eec\u7684\u591a\u79cd\u6570\u636e\u5e93\u6570\u636e\u540c\u6b65\u670d\u52a1\uff08database to database replication\uff09 \u6709\u70b9\u50cf\u963f\u91cc\u63d0\u51fa\u7684 data replication center \u8fd9\u4e2a\u6982\u5ff5\uff0c\u8fd9\u90e8\u5206\u4e5f\u57fa\u672c\u4e0a\u7531\u6211\u4eec\u56e2\u961f\u5168\u6743\u8d1f\u8d23\u3002<\/p>\n\n\n\n

    \u4e8c\u3001\u5c0f\u7ea2\u4e66\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u9009\u578b RoadMap<\/p>\n\n\n\n

    \u5bf9\u4e8e\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u5e93\u6216\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u9009\u578b\uff08\u5982 TiDB\uff09\uff0c\u6211\u4eec\u8be5\u4ece\u54ea\u4e9b\u65b9\u9762\u53bb\u5165\u624b\u641e\u6e05\u695a\u5b83\u7684\u7279\u6027\uff1f\u4e0b\u9762\u5206\u4eab\u4e00\u4e0b\u6211\u4eec\u7684\u7ecf\u9a8c\u3002<\/p>\n\n\n\n

    1. \u4ea7\u54c1\u7684\u57fa\u672c\u529f\u80fd<\/li><\/ol>\n\n\n\n

      \u7b2c\u4e00\u6b65\uff0c\u6211\u4eec\u9700\u8981\u8003\u5bdf\u8be5\u6570\u636e\u670d\u52a1\/\u7ec4\u4ef6\u7684\u57fa\u672c\u529f\u80fd\uff0c\u9996\u5148\uff0c\u6211\u4eec\u8981\u4e86\u89e3\u5b83\u7684\u8bfb\u5199\u573a\u666f\uff0c\u5305\u62ec\u70b9\u67e5\u3001\u6279\u91cf\u83b7\u53d6\uff08batch get\uff09\u3001\u8303\u56f4\u626b\u63cf\uff08range scan\uff09\u3001\u8fc7\u6ee4\u67e5\u8be2\uff08filter query\uff09\u3001\u805a\u5408\u67e5\u8be2\uff08aggregation\uff09\u7b49\u7b49\u3002\u7136\u540e\u6211\u4eec\u770b\u770b\u5b83\u662f\u5426\u7b26\u5408\u54cd\u5e94\u65f6\u95f4\uff08latency\uff09 \u4ee5\u53ca\u5e26\u5bbd\uff08bandwidth\uff0c\u5373\u80fd\u627f\u63a5\u591a\u5c11\u5e76\u53d1\uff09\u7684\u8981\u6c42\u3002\u6700\u540e\u6211\u4eec\u4f1a\u5173\u6ce8\u53ef\u6269\u5c55\u6027\uff0c\u6bd4\u5982 TiDB \u53ef\u80fd\u6700\u5927\u7684\u7279\u70b9\u5c31\u662f\u6269\u5c55\u6027\u975e\u5e38\u597d\u3002\u8fd9\u51e0\u70b9\u662f\u5927\u5bb6\u90fd\u4f1a\u60f3\u5230\u7684\u6700\u57fa\u672c\u7684\u8981\u6c42\uff0c\u8fd9\u91cc\u6211\u5c31\u4e00\u7b14\u7565\u8fc7\u3002<\/p>\n\n\n\n

      1. \u6570\u636e\u540c\u6b65\u4e0e\u5904\u7406\u76f8\u5173\u89e3\u51b3\u65b9\u6848<\/li><\/ol>\n\n\n\n

        \u7b2c\u4e8c\u90e8\u5206\u662f\u6570\u636e\u540c\u6b65\u4e0e\u5904\u7406\u76f8\u5173\u89e3\u51b3\u65b9\u6848\u3002\u8fd9\u91cc\u6211\u4eec\u6709\u4ee5\u4e0b 4 \u70b9\u8003\u8651\uff1a<\/p>\n\n\n\n

        \u9996\u5148\u8003\u8651\u8fd9\u4e2a\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u7684\u6570\u636e\u540c\u6b65\u662f\u540c\u6784\u6216\u5f02\u6784\u7684\u573a\u666f\uff0c\u540c\u6784\u7684\u540c\u6b65\u6bd4\u5982 Redis to Redis\u3001MongoDB to MongoDB\uff0c\u5f02\u6784\u7684\u540c\u6b65\u6bd4\u5982 TiDB \u5230 Kafka \u7b49\u7b49\u3002\u8fd9\u4e2a\u60c5\u51b5\u57fa\u672c\u4e0a\u5927\u5bb6\u4e5f\u4f1a\u9047\u5230\uff0c\u56e0\u4e3a\u4e00\u4e2a\u6570\u636e\u670d\u52a1\u5f88\u96be\u540c\u65f6\u652f\u6301\u4e24\u79cd\u6216\u66f4\u591a\u7684\u573a\u666f\uff0c\u4e0d\u540c\u7684\u6570\u636e\u670d\u52a1\u4e4b\u95f4\u7684\u6570\u636e\u8981\u4fdd\u6301\u4e00\u81f4\uff0c\u5c31\u4f1a\u4ea7\u751f\u6570\u636e\u540c\u6b65\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n

        \u63a5\u4e0b\u6765\u8003\u5bdf\u79bb\u7ebf\u5bfc\u51fa\uff0c\u6bd4\u5982\u5982\u679c\u6211\u4eec\u4f9d\u8d56 Hive\u3001 Spark \u505a\u79bb\u7ebf\u5206\u6790\uff0c\u90a3\u4e48\u53ef\u80fd\u8981\u653e\u5728 HDFS\u3001S3 \u7b49\u5bf9\u8c61\u5b58\u50a8\u4e0a\uff0c\u5c31\u9700\u8981\u79bb\u7ebf\u5bfc\u51fa\uff0c\u4e00\u822c\u662f\u6bcf\u5929\u5bfc\u51fa\u4e00\u6b21\u3002<\/p>\n\n\n\n

        \u7b2c\u4e09\u70b9\u662f\u5b9e\u65f6\u5bfc\u51fa\uff0c\u5373\u5728\u5b9e\u65f6\u573a\u666f\u4e0b\u53ef\u80fd\u9700\u8981\u5bfc\u51fa\u5230\u6d88\u606f\u4e2d\u95f4\u4ef6\uff0c\u6bd4\u5982 Kafka\u3001RocketMQ \u7b49\u3002<\/p>\n\n\n\n

        \u7b2c\u56db\u70b9\u662f\u79bb\u7ebf\u5bfc\u5165\uff0c\u5bfc\u5165\u7684\u573a\u666f\u4e00\u822c\u662f\u5728\u79bb\u7ebf\u7684\u5f15\u64ce\u8ba1\u7b97\u7684\u7ed3\u679c\uff0c\u4f5c\u4e3a\u8bc4\u4f30\u7684\u6307\u6807\u518d\u5199\u5165\u7ebf\u4e0a\u7684 database \u63d0\u4f9b\u6570\u636e\u670d\u52a1\u3002<\/p>\n\n\n\n

        \"\"<\/figure><\/div>\n\n\n\n
        1. \u4ea7\u54c1\u7684\u90e8\u7f72\u53ca\u7ba1\u7406<\/li><\/ol>\n\n\n\n

          \u90e8\u7f72\u5176\u5b9e\u975e\u5e38\u91cd\u8981\uff0c\u5b83\u6db5\u76d6\u4ee5\u4e0b 5 \u4e2a\u65b9\u9762\u3002<\/p>\n\n\n\n

          \u7b2c\u4e00\u70b9\u662f\u7ec4\u4ef6\u7ba1\u7406\u754c\u9762\u3002\u5f53\u96c6\u7fa4\u591a\u5230\u4e00\u5b9a\u7a0b\u5ea6\u65f6\uff0c\u5982\u679c\u4f60\u6ca1\u6709\u4e00\u4e2a\u5f88\u597d\u7684\u7ba1\u7406\u754c\u9762\uff0c\u4f1a\u8fde\u81ea\u5df1\u7528\u7684\u662f\u4ec0\u4e48\u96c6\u7fa4\u90fd\u8bb0\u4e0d\u6e05\u695a\u3002\u6240\u4ee5\u7ba1\u7406\u754c\u9762\u975e\u5e38\u5fc5\u8981\uff0c\u800c\u4e14\u6700\u521d\u53ef\u80fd\u662f 1 \u4e2a\u96c6\u7fa4 1 \u4e2a\u7ba1\u7406\u754c\u9762\uff0c\u7136\u540e\u662f 100 \u4e2a\u96c6\u7fa4 1 \u4e2a\u7ba1\u7406\u754c\u9762\u3002<\/p>\n\n\n\n

          \u7b2c\u4e8c\u70b9\u662f\u9009\u7248\u672c\u548c\u673a\u578b\u3002\u5728\u7248\u672c\u9009\u62e9\u65b9\u9762\uff0c\u4e0d\u540c\u7248\u672c\u63d0\u4f9b\u7684\u529f\u80fd\u4e0d\u4e00\u6837\uff0c\u540c\u65f6\u4e5f\u8981\u8003\u8651\u7248\u672c\u5347\u7ea7\u7684\u6210\u672c\u3002\u5728\u673a\u578b\u7684\u9009\u62e9\u65b9\u9762\uff0c\u65e0\u8bba\u662f\u81ea\u5efa\u673a\u623f\u3001\u7528\u4e91\u4e3b\u673a\uff0c\u8fd8\u662f\u4f7f\u7528\u6700\u8fd1\u63a8\u51fa\u6765\u7684\u65b0\u6982\u5ff5\u201cBare-Metal\u201d\uff08\u88f8\u91d1\u5c5e\uff09\uff0c\u673a\u578b\u9009\u62e9\u90fd\u662f\u975e\u5e38\u75db\u82e6\u7684\u4e8b\u60c5\uff0c\u4f46\u540c\u65f6\u673a\u578b\u9009\u62e9\u5bf9\u5b58\u50a8\u6765\u8bf4\u81f3\u5173\u91cd\u8981\u3002\u6211\u4eec\u76ee\u524d\u7edd\u5927\u591a\u6570\u90fd\u662f\u90e8\u7f72\u5728\u817e\u8baf\u4e91\u548c AWS \u4e0a\uff0c\u5e76\u4e14\u5f00\u59cb\u6162\u6162\u5c1d\u8bd5\u5728 Bare-Metal \u4e0a\u7684\u5e94\u7528\u3002<\/p>\n\n\n\n

          \u7b2c\u4e09\u70b9\u662f\u76d1\u63a7\u3001\u62a5\u8b66\u3001\u65e5\u5fd7\u6536\u96c6\u3002\u6211\u5c06\u8fd9\u4e2a\u95ee\u9898\u5206\u4e3a\u4e09\u4e2a\u7ea7\u522b\uff1a\u673a\u5668\u7ea7\u3001\u5e94\u7528\u7ea7\u548c\u4e1a\u52a1\u7ea7\u3002\u673a\u5668\u7ea7\u6307\u673a\u5668\u4e3b\u673a\u4e0a\u7684\u95ee\u9898\uff0c\u5305\u62ec\u5982\u4f55\u505a\u76d1\u63a7\u3001\u62a5\u8b66\u3001\u65e5\u5fd7\u6536\u96c6\uff0c\u867d\u7136\u8fd9\u70b9\u4e0e\u8be5\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u6ca1\u6709\u592a\u5927\u5173\u7cfb\uff0c\u4f46\u662f\u6211\u4eec\u4ecd\u7136\u9700\u8981\u5173\u6ce8\uff1b\u5e94\u7528\u7ea7\u6307\u8be5\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u7684\u62a5\u8b66\u3001\u76d1\u63a7\u3001\u65e5\u5fd7\u6536\u96c6\u5177\u4f53\u662f\u600e\u4e48\u505a\u7684\uff1b\u4e1a\u52a1\u7ea7\u6307\u7279\u5b9a\u7684\u4e1a\u52a1\u6709\u7279\u5b9a\u7684\u62a5\u8b66\u9700\u6c42\uff0c\u4f8b\u5982\u4e00\u4e2a\u8ba2\u5355\u8868\u7a81\u7136\u6709\u51e0\u5341\u4e07\u7684 QPS \u5199\u5165\uff0c\u5728\u5e73\u65f6\u5c5e\u4e8e\u5f02\u5e38\u7684\u60c5\u51b5\uff0c\u8fd9\u79cd\u5f02\u5e38\u662f\u9700\u8981\u81ea\u5b9a\u4e49\u7684\uff0c\u751a\u81f3\u9700\u8981\u6211\u4eec\u5728\u67d0\u4e9b\u7279\u5b9a\u4f4d\u7f6e\u57cb\u70b9\u5e76\u8f93\u51fa\u7ed3\u8bba\uff0c\u56e0\u4e3a\u5982\u679c\u4e0d\u5173\u6ce8\u8fd9\u4e9b\u5f02\u5e38\u60c5\u51b5\uff0c\u5c31\u5f88\u53ef\u80fd\u5bfc\u81f4\u8fd9\u4e09\u4ef6\u4e8b\u7528\u4e09\u79cd\u4e0d\u540c\u67b6\u6784\uff0c\u6700\u540e\u90e8\u7f72\u7684\u96c6\u7fa4\u6781\u5176\u590d\u6742\u7e41\u7410\uff0c\u4e09\u4e2a\u7ea7\u522b\u7528\u4e86\u4e09\u4e2a\u4e0d\u540c\u7684\u76d1\u63a7\u5de5\u5177\uff0c\u770b\u5230\u4e09\u4e2a\u4e0d\u540c\u7684\u76d1\u63a7\u754c\u9762\uff0c\u5bfc\u81f4\u8fd0\u7ef4\u6210\u672c\u589e\u52a0\u3002<\/p>\n\n\n\n

          \u7b2c\u56db\u70b9\u662f\u8de8\u533a\/\u8de8\u4e91\u90e8\u7f72\u3002\u8fd9\u4e00\u70b9\u53ef\u80fd\u662f\u4e92\u8054\u7f51\u516c\u53f8\u7684\u6bd4\u8f83\u5927\u7684\u9700\u6c42\u3002\u5728\u9047\u5230\u8de8\u533a\/\u8de8\u4e91\u7684\u90e8\u7f72\u7684\u65f6\u5019\uff0c\u9700\u8981\u8003\u5bdf\u8be5\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u662f\u5426\u5929\u751f\u652f\u6301\u8de8\u533a\/\u8de8\u4e91\u3002\u5982\u679c\u4e0d\u652f\u6301\uff0c\u9700\u8981\u518d\u8003\u8651\u662f\u5426\u9700\u8981\u518d\u542f\u52a8\u6570\u636e\u540c\u6b65\u3002<\/p>\n\n\n\n

          \u7b2c\u4e94\u70b9\u662f\u8003\u5bdf\u9644\u5c5e\u7ec4\u4ef6\uff0c\u4e5f\u5c31\u662f\u4e0e\u8be5\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u5f3a\u7ed1\u5b9a\u7684\u5176\u4ed6\u7ec4\u4ef6\uff0c\u6bd4\u5982 zk\u3001lb\u3001jmx_exporter \u7b49\u7b49\uff0c\u8fd9\u4e9b\u7ec4\u4ef6\u7684\u90e8\u7f72\u6210\u672c\u4e5f\u9700\u8981\u8003\u8651\u3002\u6211\u4eec\u9700\u8981\u51cf\u5c11 OPS \u6210\u672c\uff0c\u6216\u8005\u8bf4\uff0c\u4e00\u4e2a\u597d\u7684\u6574\u4f53\u67b6\u6784\u8bbe\u8ba1\u80fd\u591f\u9632\u6b62\u4e1a\u52a1\u75af\u72c2\u4e0a\u7ebf\u65f6\u5f88\u591a\u610f\u5916\u7684\u51fa\u73b0\u3002<\/p>\n\n\n\n

          1. \u8fd0\u7ef4\u7684\u6613\u7528\u6027<\/li><\/ol>\n\n\n\n

            \u8fd0\u7ef4\u5305\u62ec\u6269\u5bb9\u3001\u7f29\u5bb9\u3001\u8fc1\u79fb\uff0c\u5176\u4e2d\u8fc1\u79fb\u53ef\u80fd\u8981\u8003\u8651\u8de8\u533a\u8fc1\u79fb\u3001\u673a\u578b\u5347\u7ea7\u8fc1\u79fb\u7b49\u3002\u5728\u4f7f\u7528\u7ef4\u62a4\u67d0\u4e2a\u7ec4\u4ef6\u7684\u65f6\u5019\u4f1a\u4ea7\u51fa\u201cXX \u7ec4\u4ef6\u7684\u8fd0\u7ef4\u624b\u518c\u201d\uff0c\u8fd9\u6837\u4e0b\u6b21\u9047\u5230\u95ee\u9898\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5148\u53bb\u770b\u770b\u8fd0\u7ef4\u624b\u518c\u91cc\u5b83\u662f\u5426\u662f\u4e00\u4e2a\u5df2\u77e5\u95ee\u9898\uff0c\u6709\u6ca1\u6709\u73b0\u6210\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5728\u516c\u53f8\u4eba\u5458\u53d8\u52a8\u6bd4\u8f83\u9891\u7e41\u6216\u8005\u4e1a\u52a1\u65b9\u76f4\u63a5\u4ecb\u5165\u5230\u8fd9\u4e2a\u573a\u666f\u7684\u65f6\u5019\uff0c\u5982\u679c\u6ca1\u6709\u8fd0\u7ef4\u624b\u518c\uff0c\u6709\u4e9b\u9879\u76ee\u5f88\u96be\u843d\u5730\u3002<\/p>\n\n\n\n

            \"\"<\/figure><\/div>\n\n\n\n
            1. \u4ea7\u54c1\u53ef\u4f18\u5316\u7684\u7a7a\u95f4<\/li><\/ol>\n\n\n\n

              \u4f18\u5316\u90e8\u5206\u57fa\u672c\u4e0a\u5206\u4e3a\u914d\u7f6e\u8c03\u4f18\u3001\u5ba2\u6237\u7aef\u4ee3\u7801\u8c03\u4f18\u3001\u4e8c\u6b21\u5f00\u53d1\u3001\u4e09\u6b21\u5f00\u53d1\u3002\u5176\u4e2d\u4e8c\u6b21\u5f00\u53d1\u5c31\u662f\u5728\u73b0\u6709\u7684\u5f00\u6e90\u4ea7\u54c1\u4e0a\u518d\u5f00\u53d1\uff0c\u4fee\u590d bug \u6216\u8005\u81ea\u5df1\u5b9e\u73b0\u67d0\u4e9b\u65b0\u589e\u529f\u80fd\/\u5de5\u5177\uff0c\u672a\u6765\u53ef\u80fd\u8fd8\u4f1a\u8d21\u732e\u7ed9\u793e\u533a\uff1b\u800c\u4e09\u6b21\u5f00\u53d1\u5219\u662f\u81ea\u5df1\u5199\u4e00\u4e2a\u548c\u67d0\u4e9b\u7ec4\u4ef6\u7c7b\u4f3c\u7684\u4e1c\u897f\uff0c\u76f4\u63a5\u66ff\u6362\u6389\u3002\u5728\u5c0f\u7ea2\u4e66\u5185\u90e8\uff0c\u4e8c\u6b21\u5f00\u53d1\u662f\u6bd4\u8f83\u4e3b\u6d41\u7684\uff0c\u4e09\u6b21\u5f00\u53d1\u5f88\u5c11\uff0c\u6bd5\u7adf\u4ece\u96f6\u5f00\u59cb\u81ea\u7814\u4e00\u4e2a\u7ec4\u4ef6\u5230\u9002\u5e94\u7279\u5b9a\u4e1a\u52a1\u573a\u666f\uff0c\u5176\u5b9e\u662f\u8ddf\u4e0d\u4e0a\u6211\u4eec\u7684\u4e1a\u52a1\u4e0a\u7ebf\u8282\u594f\u7684\uff0c\u6240\u4ee5\u4e09\u6b21\u5f00\u53d1\u81f3\u5c11\u773c\u4e0b\u4e0d\u9002\u5408\u4f5c\u4e3a\u6211\u4eec\u4e3b\u8981\u7684\u653b\u575a\u65b9\u5411\u3002<\/p>\n\n\n\n

              1. \u5176\u4ed6\u8003\u8651\u56e0\u7d20<\/li><\/ol>\n\n\n\n

                \u672a\u6765\u5728\u5c0f\u7ea2\u4e66\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u7cfb\u7edf\uff0c\u6211\u4eec\u4f1a\u505a\u5f88\u591a\u5b8c\u5584\u5de5\u4f5c\uff0c\u6bd4\u5982\u5b89\u5168\u3001\u5ba1\u8ba1\u3001\u670d\u52a1\u5316\u3001\u5bb9\u5668\u5316\u7b49\u65b9\u9762\u7684\u4e8b\u60c5\u3002\u8b6c\u5982\u6211\u4eec\u76ee\u524d\u5728\u90e8\u7f72\u4e00\u4e2a\u7ec4\u4ef6\u7684\u65f6\u5019\uff0c\u5bb9\u5668\u5316\u8fd8\u6ca1\u6709\u5728\u8ba8\u8bba\u8303\u56f4\u4e4b\u5185\uff0c\u4e5f\u5c31\u662f\u9700\u8981\u7528\u5bb9\u5668\u90e8\u7f72\u5c31\u5bb9\u5668\u90e8\u7f72\uff0c\u9700\u8981\u5728\u865a\u62df\u673a\u4e0a\u90e8\u7f72\u5c31\u5728\u865a\u62df\u673a\u4e0a\u90e8\u7f72\uff0c\u5e76\u6ca1\u6709\u4e00\u4e2a\u660e\u786e\u7684\u7ed3\u8bba\u503e\u5411\u3002\u5f53\u7136\uff0c\u6211\u4e2a\u4eba\u8ba4\u4e3a\u672a\u6765\u5bb9\u5668\u5316\u662f\u4e00\u4e2a\u4e3b\u6d41\u8d8b\u52bf\u3002<\/p>\n\n\n\n

                \u4ee5\u4e0a\u5c31\u662f\u5c0f\u7ea2\u4e66\u7684\u6570\u636e\u670d\u52a1\u7ec4\u4ef6\u9009\u578b\u7684 RoadMap\uff0c\u770b\u8d77\u6765\u8ddf\u63a5\u4e0b\u6765\u8981\u8bb2\u7684\u201cTiDB \u5728\u5c0f\u7ea2\u4e66\u591a\u573a\u666f\u4e0b\u7684\u5e94\u7528\u201d\u6ca1\u6709\u592a\u5927\u7684\u5173\u7cfb\uff0c\u4f46\u6211\u8ba4\u4e3a\u5728\u505a\u5e94\u7528\u4e4b\u524d\u5e94\u8be5\u5148\u628a\u4e0a\u9762\u5217\u4e3e\u7684\u8fd9\u4e9b\u65b9\u5411\u601d\u8003\u6e05\u695a\uff0c\u8fd9\u6837\u4f1a\u5bf9\u672a\u6765\u843d\u5730\u5de5\u4f5c\u7684\u6295\u5165\u4ea7\u51fa\u6bd4\u4ea7\u751f\u975e\u5e38\u5927\u7684\u5f71\u54cd\uff0c\u6bd4\u5982\u6211\u4eec\u6700\u8fd1\u6309\u7167\u4e0a\u9762\u7684\u65b9\u5411\u8c03\u7814 Tidis \u548c TiFlash \u7684\u65f6\u5019\u901f\u5ea6\u5c31\u5feb\u5f88\u591a\u3002<\/p>\n\n\n\n

                \u4e09\u3001TiDB \u5728\u5c0f\u7ea2\u4e66\u591a\u573a\u666f\u4e0b\u7684\u5e94\u7528<\/p>\n\n\n\n

                \u573a\u666f 1\uff1a\u5c55\u793a\u7c7b\u4e1a\u52a1<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                TiDB \u5728\u5c0f\u7ea2\u4e66\u7684\u7b2c\u4e00\u4e2a\u5e94\u7528\u573a\u666f\u662f\u5c55\u793a\u7c7b\u4e1a\u52a1\uff0c\u5b83\u7684 pipeline \u5982\u56fe 4 \u4e2d\u7ea2\u8272\u90e8\u5206\u6240\u793a\uff0c\u7ebf\u4e0a\u4e00\u822c\u662f MongoDB \u6216\u8005 MySQL\uff0c\u901a\u8fc7\u4e00\u6761\u5b9e\u65f6\u6570\u636e\u6d41\uff08realtime dataflow\uff09 \u8fde\u63a5 Redis \u6216\u8005 TiDB\uff0c\u6700\u540e\u5b9e\u73b0 presentation \u529f\u80fd\u3002\u63a5\u4e0b\u6765\u4ecb\u7ecd\u8fd9\u7c7b\u573a\u666f\u4e0b\u7684\u4e24\u4e2a\u5177\u4f53\u9879\u76ee\u3002<\/p>\n\n\n\n

                \u9879\u76ee 1\uff1a\u5927\u4fc3\u5b9e\u65f6\u770b\u677f<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u7b2c\u4e00\u4e2a\u9879\u76ee\u662f\u5927\u4fc3\u5b9e\u65f6\u770b\u677f\uff0c\u5728\u53bb\u5e74\u53cc\u5341\u4e00\u671f\u95f4\u4e0a\u7ebf\uff0c\u5f53\u65f6\u6211\u4eec\u7684\u8282\u594f\u4e5f\u6bd4\u8f83\u5feb\uff0c7\u30018 \u6708\u5f00\u59cb\u8c03\u7814\uff0c11 \u6708\u5c31\u4e0a\u5927\u4fc3\u4e1a\u52a1\u3002<\/p>\n\n\n\n

                \u5f53\u65f6\u8be5\u9879\u76ee\u4e0b\u4e00\u5171\u6709 8 \u4e2a\u5b9e\u65f6\u62a5\u8868\uff0cQPS \u5199\u5165\u5747\u503c 5K\uff0c\u5927\u4fc3\u6d3b\u52a8\u5f00\u59cb\u65f6 QPS \u5cf0\u503c\u63a5\u8fd1 200K\/\u79d2\uff0c\u6bcf\u8fc7 2s \u4f1a\u6709\u8f83\u5927\u7684\u805a\u5408\u67e5\u8be2 query\uff0c\u805a\u5408\u7ed3\u679c\u8fd8\u9700\u8981\u5199\u5165 Redis \u518d pop \u5230 TiDB\uff0c\u96c6\u7fa4\u89c4\u6a21\u65b9\u9762\u53ea\u7528\u4e86 10 \u4e2a TiKV \u548c 3 \u4e2a PD\u3002\u8fd8\u6709\u4e00\u70b9\u503c\u5f97\u63d0\u4e00\u4e0b\uff0c\u5f53\u65f6\u6bcf\u4e2a\u8282\u70b9\u6302\u4e86 3.5T * 4 \u5757\u7684 NVME SSD\uff0c\u4f46\u662f\u540e\u6765\u4e8b\u5b9e\u8bc1\u660e\u8fd9\u4e2a\u9009\u578b\u662f\u6709\u95ee\u9898\u7684\uff0c\u56e0\u4e3a\u5927\u4fc3\u7684\u65f6\u5019\u6211\u4eec\u4eba\u4eba\u90fd\u5728\u76ef\u7740\uff0c\u78c1\u76d8\u574f\u4e86\u4f1a\u7acb\u523b\u5f97\u5230\u89e3\u51b3\uff0c\u6240\u4ee5\u5373\u4f7f\u628a\u56db\u5757\u76d8\u505a\u4e86 raid0\uff0c\u7136\u540e\u4e0a\u7ebf\u4e86\uff0c\u6839\u672c\u65e0\u6cd5\u786e\u5b9a NVME \u76d8\u51fa\u95ee\u9898\u7684\u6982\u7387\u662f\u591a\u5c11\uff0c\u540e\u6765\u5dee\u4e0d\u591a\u6bcf\u4e2a\u6708\u4f1a\u51fa\u73b0\u4e00\u4e24\u6b21\u7c7b\u4f3c\u7684\u6545\u969c\uff0c\u6545\u969c\u7387\u5f88\u9ad8\uff0c\u867d\u7136\u6211\u76f8\u4fe1\u672a\u6765 NVME \u4f1a\u505a\u5f97\u66f4\u597d\uff0c\u4f46\u8fd9\u6837\u9ad8\u7684\u6545\u969c\u7387\u4ece\u8bbe\u8ba1\u89d2\u5ea6\u6765\u770b\uff0c\u8fd9\u4e2a\u9009\u578b\u5c31\u672a\u5fc5\u662f\u6700\u5408\u9002\u7684\u3002<\/p>\n\n\n\n

                \u5728\u5b9e\u73b0\u4e0a\uff0c\u6211\u4eec\u9047\u5230\u7684\u7b2c\u4e00\u4e2a\u95ee\u9898\u662f\u4fdd\u8bc1\u6700\u7ec8\u4e00\u81f4\u6027\u7684\u5199\u5165\u3002\u6211\u4eec\u505a\u4e86\u591a\u7ebf\u7a0b\u5199\u5165\uff0c\u6bcf\u4e2a\u7ebf\u7a0b\u5199\u5165\u7279\u5b9a\u7684\u8bb0\u5f55\uff0c\u4fdd\u8bc1\u7ebf\u7a0b\u4e4b\u95f4\u4e0d\u4f1a\u51b2\u7a81\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u505a\u4e86\u4e00\u4e9b\u8c03\u4f18\u5de5\u4f5c\uff0c\u6211\u4eec\u53d1\u73b0\u6bcf\u4e00\u4e2a\u4e8b\u52a1\u7684 batch insert size \u8bbe\u7f6e\u4e3a 100 \u65f6\u80fd\u8fbe\u5230\u541e\u5410\u3001\u5ef6\u8fdf\u7efc\u5408\u6700\u4f18\u7684\u8981\u6c42\u3002\u6700\u521d\u4e1a\u52a1\u4fa7\u8bbe\u7f6e\u7684 batch size \u975e\u5e38\u5927\uff0c\u540e\u6765\u53d1\u73b0\u4e8b\u52a1\u4e4b\u95f4\u51b2\u7a81\u7684\u6982\u7387\u3001\u54cd\u5e94\u7684\u65f6\u95f4\u7b49\u7b49\u90fd\u4f1a\u51fa\u73b0\u4e00\u4e9b\u95ee\u9898\uff0c\u4f46 batch size \u8bbe\u7f6e\u4e3a 1\uff0c\u90a3\u4e48\u5e76\u53d1\u53c8\u4f1a\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u6240\u4ee5\u7ecf\u8fc7\u4e86\u4e00\u6bb5\u65f6\u95f4\u7684\u8c03\u4f18\uff0c\u6700\u540e\u5f97\u5230\u4e86\u524d\u9762\u7684\u7ed3\u8bba\u3002\u8fd9\u4e2a\u53c2\u6570\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5df1\u8c03\u6574\uff0c\u7528\u4e8c\u5206\u6cd5\/\u6298\u7eb8\u6cd5\u8bd5\u9a8c\u5c31\u53ef\u4ee5\u5f97\u5230\u3002<\/p>\n\n\n\n

                \u8fd9\u4e2a\u9879\u76ee\u6700\u7ec8\u5168\u7a0b\u5199\u5165\u548c\u67e5\u8be2\u5728\u5927\u4fc3\u671f\u95f4\u4fdd\u6301\u7a33\u5b9a\uff0c\u5199\u5165\u65f6\u5ef6\u5c0f\u4e8e 20ms\uff0c\u67e5\u8be2\u65f6\u5ef6\u5c0f\u4e8e 1s\uff0c\u56e0\u4e3a\u6211\u4eec\u9700\u8981 2s \u505a\u4e00\u6b21\u67e5\u8be2\uff0c\u8fd9\u4e2a\u54cd\u5e94\u65f6\u95f4\u662f\u80fd\u6ee1\u8db3\u8981\u6c42\u7684\u3002<\/p>\n\n\n\n

                \u9879\u76ee 2\uff1a\u5b9e\u65f6\u4e1a\u52a1\u6570\u636e\u5c55\u793a<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u8fd9\u4e2a\u9879\u76ee\u80cc\u666f\u6709\u4e24\u70b9\uff1a<\/p>\n\n\n\n

                \u7b2c\u4e00\uff0c\u6211\u4eec\u4e1a\u52a1\u65b9\u6709\u5b9e\u65f6\u5206\u6790\u7684\u9700\u6c42\uff0c\u9700\u8981\u5b9e\u65f6\u89c2\u6d4b\u7ebf\u4e0a\u5e93\u5199\u5165\u5185\u5bb9\uff0c\u53ef\u80fd\u662f\u9488\u5bf9\u67d0\u4e2a\u7528\u6237\u505a\u4e00\u4e9b\u67e5\u8be2\uff0c\u8fd8\u53ef\u80fd\u662f\u4e00\u4e2a\u975e\u5e38\u5927\u7684 query\uff0c\u6bd4\u5982\u9700\u8981\u5feb\u901f\u770b\u5230\u65b0\u4e0a\u7ebf\u529f\u80fd\u7684\u6548\u679c\uff0c\u5c24\u5176\u662f\u5728\u5b9e\u9a8c\u4ee5\u53ca\u98ce\u63a7\u7b49\u9879\u76ee\u4e0a\u54cd\u5e94\u65f6\u95f4\u8981\u6c42\u975e\u5e38\u9ad8\u3002<\/p>\n\n\n\n

                \u5176\u6b21\u9700\u8981\u4f5c\u4e3a\u79bb\u7ebf ETL \u4efb\u52a1\u7684\u6570\u636e\u6e90\uff0c\u540c\u65f6\u9700\u8981\u9884\u5907\u6539\u4e3a\u7ebf\u4e0a\u670d\u52a1\u3002\u76d8\u7b97\u4e00\u4e0b\u4e1a\u52a1\u91cf\uff0c\u603b\u5171\u652f\u6301\u9700\u8981\u8d85\u8fc7\u4e00\u767e\u4e2a MongoDB \u6216 MySQL \u6570\u636e\u5e93\u7684\u5b9e\u65f6\u5c55\u793a\uff0c\u5cf0\u503c\u603b\u8bfb\u5199 QPS \u8d85\u8fc7 500K\uff0c\u73b0\u5728\u7684\u4e1a\u52a1\u9700\u6c42\u5927\u6982\u8fd9\u4e2a\u91cf\u7ea7\uff0c\u672a\u6765\u53ef\u80fd\u4f1a\u66f4\u9ad8\u3002<\/p>\n\n\n\n

                \u6211\u4eec\u5f53\u524d\u8003\u8651\u662f\u6309\u4e1a\u52a1\u7ebf\u53bb\u62c6\u5206\u96c6\u7fa4\uff0c\u90e8\u5206\u6838\u5fc3\u8868\u4e00\u5f0f\u591a\u4efd\u3002\u6bd4\u5982\u7528\u6237\u8868\u53ef\u80fd\u6709\u591a\u4e2a\u4e1a\u52a1\u4f9d\u8d56\uff0c\u6bd4\u5982\u793e\u533a\u4e1a\u52a1\u3001\u8ba2\u5355\u7269\u6d41\u4e1a\u52a1\u7b49\u7b49\uff0c\u4f46\u5982\u679c\u6309\u7167\u4e1a\u52a1\u7ebf\u62c6\u5206\u96c6\u7fa4\u4e4b\u540e\uff0c\u5c31\u65e0\u6cd5\u505a Join \u4e86\uff0c\u8fd9\u4e5f\u662f\u6211\u4eec\u4e0d\u80fd\u63a5\u53d7\u7684\uff0c\u6240\u4ee5\u5bf9\u6838\u5fc3\u8868\u4f1a\u4ee5\u4e00\u5f0f\u591a\u4efd\u7684\u5f62\u5f0f\u5b58\u5728\u3002\u5b9e\u9645\u4f7f\u7528\u573a\u666f\u4e0b\uff0c\u5927\u90e8\u5206\u90fd\u662f\u70b9\u67e5\uff0c\u6bd4\u5982\u67e5\u7279\u5b9a\u7528\u6237\u3001\u7279\u5b9a\u8ba2\u5355\u7684\u7ebf\u4e0a\u72b6\u6001\uff0c\u540c\u65f6\u6709\u5c11\u91cf\u7684\u5355\u8868\u805a\u5408\u67e5\u8be2\u548c\u8de8\u8868 Join \u67e5\u8be2\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5b9e\u65f6\u7684\u6570\u636e\u4ed3\u5e93\uff0c\u4f46\u53c8\u4e0d\u505a\u590d\u6742 ETL\uff0c\u66f4\u591a\u4f9d\u8d56\u7ebf\u4e0a\u771f\u5b9e\u6570\u636e\u3002<\/p>\n\n\n\n

                \u6211\u4eec\u7684\u8bbe\u8ba1\u65b9\u6848\u662f\u628a TiDB \u4f5c\u4e3a\u4e00\u4e2a MySQL\/MongoDB \u7684\u4ece\u5e93\uff0c\u4f46\u5bf9\u4e8e MongoDB \u6765\u8bf4\u53ef\u80fd\u8fd8\u8981\u505a\u4e00\u70b9\u540c\u6b65\u4efb\u52a1\u7684\u6570\u636e\u6539\u9020\u5de5\u4f5c\u3002\u73b0\u5728\u89c4\u6a21\u662f 10 \u8282\u70b9 TiKV + 3 \u8282\u70b9 PD \u7684\u96c6\u7fa4\u603b\u5171\u6709 3 \u4e2a\uff0c\u540e\u9762\u53ef\u80fd\u4f1a\u6309\u9700\u6c42\u6269\u589e\u3002<\/p>\n\n\n\n

                \u5728\u5b9e\u8df5\u7ec6\u8282\u4e0a\uff0c\u9996\u5148\u6211\u4eec\u4f1a\u57fa\u4e8e Canal \u53bb\u505a oplog\/binlog \u7684\u5b9e\u65f6\u540c\u6b65\u3002\u5176\u6b21\uff0c\u76ee\u524d\u6211\u4eec\u5bf9\u52a0\u5217\u4e4b\u5916\u7684 DDL \u652f\u6301\u5f97\u4e0d\u591f\u597d\uff0c\u8fd9\u90e8\u5206\u8fd8\u9700\u8981 DBA \u624b\u5de5\u4ecb\u5165\uff0c\u4f46\u5728\u672a\u6765\u4f1a\u6709\u4e00\u4e9b\u6539\u8fdb\u3002\u6700\u540e\u662f\u591a\u79df\u6237\u95ee\u9898\uff0c\u6bd4\u5982\u5224\u65ad\u67d0\u4e2a\u90e8\u95e8\u7684\u540c\u4e8b\u662f\u5426\u6709\u6743\u9650\u8bbf\u95ee\u53e6\u4e00\u4e2a\u90e8\u95e8\u7684\u6570\u636e\u5e93\uff0c\u8fd9\u4ef6\u4e8b\u5728\u7ebf\u4e0a\u4f1a\u975e\u5e38\u5934\u75bc\uff0c\u73b0\u5728\u5728\u63a5\u5165\u5c42\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u5185\u90e8\u6709\u4e00\u4e2a\u53eb venus \u7684\u5c55\u793a\u5e73\u53f0\uff0c\u5c06\u4e0a\u5c42\u5168\u94fe\u63a7\u5236\u3001\u8ba4\u8bc1\u7b49\u4e8b\u60c5\u53bb\u6389\uff0c\u6240\u4ee5\u6211\u4eec\u5c31\u4e0d\u7528\u5173\u6ce8\u8fd9\u4ef6\u4e8b\u4e86\uff0c\u81f3\u5c11\u773c\u4e0b\u4e0d\u7528\u5173\u6ce8\u3002\u8fd9\u4e2a\u9879\u76ee\u5df2\u7ecf\u5f00\u59cb\u9010\u6b65\u4e0a\u7ebf\uff0c\u57fa\u672c\u4e0a\u67b6\u6784\u5df2\u7ecf\u786e\u5b9a\u3002<\/p>\n\n\n\n

                \u573a\u666f 2\uff1a\u5206\u6790\u7c7b\u4e1a\u52a1<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u5206\u6790\u7c7b\u4e1a\u52a1\u7684 pipeline \u5982\u56fe 7 \u6240\u793a\uff0c\u6700\u540e\u7684 data warehouse \u6784\u5efa\u5728 AWS \u4e0a\u3002<\/p>\n\n\n\n

                \u9879\u76ee 3\uff1a\u5206\u5e93\u5206\u8868 MySQL ETL<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u8fd9\u4e2a\u573a\u666f\u4e0b\u7684\u7b2c\u4e00\u4e2a\u9879\u76ee\u662f\u505a\u5206\u5e93\u5206\u8868\u7684 MySQL ETL\u3002\u4ee5\u6700\u5927\u7684\u8868\u4e3a\u4f8b\uff0c\u4e0a\u6e38 10 \u8282\u70b9\u7684MySQL\uff0c\u5171\u8ba1 10000 \u4e2a\u5206\u8868\uff0c\u5b58\u91cf\u6570\u636e 1000 \u4ebf\u6761\u5de6\u53f3\uff0c\u6bcf\u65e5\u589e\u91cf 10 \u4ebf+\uff0cQPS \u5199\u5165\u5747\u503c 3000 \u6761\/s\uff0c\u5cf0\u503c\u63a5\u8fd1 10000 \u6761\/s\uff0c\u5e73\u53f0\u4fc3\u9500\u6d3b\u52a8\u5bf9\u8fd9\u90e8\u5206\u5f71\u54cd\u4e5f\u4e0d\u5927\uff0c\u751a\u81f3\u53cd\u800c\u4f1a\u964d\u4f4e\uff0c\u56e0\u4e3a\u6d3b\u52a8\u4e3b\u8981\u662f\u7535\u5546\u90e8\u95e8\u5728\u505a\uff0c\u793e\u533a\u7684\u67e5\u8be2\u9700\u6c42\u53cd\u800c\u53d8\u5c11\u3002\u6211\u4eec\u5728 TiDB \u79bb\u7ebf\u5e93\u4fdd\u7559\u4e86\u5927\u7ea6 30 \u5929\u589e\u91cf\u76d1\u63a7\u6570\u636e\uff0c\u5168\u91cf\u6570\u636e\u5b58\u5728 S3 \u4e0a\uff0c\u6bcf\u65e5\u591c\u95f4\uff08\u767d\u5929\u5076\u5c14\uff09\u4f1a\u6709\u57fa\u4e8e sqoop \u7684\u62bd\u6570\u4efb\u52a1\u89e6\u53d1\u3002\u96c6\u7fa4\u89c4\u6a21\u65b9\u9762\uff0c\u76ee\u524d\u4f7f\u7528 10 \u8282\u70b9 TiKV + 3 \u8282\u70b9 PD\u3002<\/p>\n\n\n\n

                \u5728\u5b9e\u8df5\u7ec6\u8282\u65b9\u9762\uff0c\u9996\u5148\u6211\u4eec\u5bf9 MySQL \u81ea\u589e ID \u8fdb\u884c\u4e86\u5904\u7406\uff0c\u7136\u540e\u5bf9 sqoop \u8fdb\u884c\u4e86\u4e00\u4e9b\u57fa\u4e8e TiDB \u7684\u7ec6\u8282\u4e0a\u9002\u914d\uff0c\u6700\u540e\u8c03\u6574 TiDB \u7684 max transaction size \u4ee5\u4f18\u5316\u62bd\u53d6\u7387\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u6709\u4e00\u4e2a\u503c\u5f97\u4e00\u63d0\u7684\u4e8b\u60c5\uff0c\u56e0\u4e3a\u5b9e\u4f53\u6570\u636e\uff08\u7528\u6237\/\u7b14\u8bb0\/\u8ba2\u5355\u6570\u636e\u7b49\uff09\u4e0d\u5b9c\u786c\u5220\u9664\uff0c\u4f46\u662f\u5728 MySQL \u5173\u7cfb\u8868\u505a\u8f6f\u5220\u9664\u662f\u975e\u5e38\u53ef\u6015\u7684\u4e8b\u60c5\uff0c\u6700\u540e\u53ef\u80fd\u4f1a\u56e0\u4e3a\u6570\u636e\u91cf\u592a\u8fc7\u4e8e\u5e9e\u5927\u9020\u6210\u96ea\u5d29\u3002\u4f46 TiDB \u4e0d\u4e00\u6837\uff0c\u6211\u4eec\u628a\u7ebf\u4e0a\u7684\u786c\u5220\u9664\u53d8\u6210\u4e86 TiDB \u7684\u8f6f\u5220\u9664\uff0c\u8fd9\u5bf9\u4e8e\u6570\u4ed3\u6765\u8bf4\u662f\u975e\u5e38\u6709\u4ef7\u503c\u7684\u4e8b\u60c5\u3002\u5bf9\u4e8e\u6bcf\u5929\u5168\u91cf\u62bd\u6570\u7684\u8868\u6765\u8bf4\uff0c\u65e0\u8bba\u8f6f\u786c\u5220\u9664\uff0c\u7b2c\u4e8c\u5929\u6570\u4ed3\u91cc\u7684\u6570\u636e\u603b\u662f\u5bf9\u7684\u3002\u4f46\u662f\u5bf9\u4e8e\u5927\u6570\u91cf\u7684\u573a\u666f\uff0c\u5168\u91cf\u62bd\u6570\u4ee3\u4ef7\u8fc7\u9ad8\uff0c\u5c31\u4f1a\u91c7\u53d6\u589e\u91cf\u62bd\u53d6\u7684\u65b9\u5f0f\uff0c\u5373\u8bbe\u7f6e\u4e00\u4e2a\u6761\u4ef6\uff0c\u4e00\u822c\u662f update_time \u4e3a\u4eca\u5929\u3002\u8fd9\u65f6\u5019\u786c\u5220\u9664\u5c31\u5b58\u5728\u95ee\u9898\u4e86\uff1a\u4e0a\u9762\u7684 query \u6761\u4ef6\u65e0\u6cd5\u5224\u65ad\u4e00\u6761\u8bb0\u5f55\u7a76\u7adf\u662f\u88ab\u5220\u9664\u4e86\uff0c\u8fd8\u662f\u5728\u5f53\u5929\u6ca1\u6709\u88ab\u66f4\u65b0\u3002\u800c\u524d\u9762\u53c8\u63d0\u5230\uff0c\u5173\u7cfb\u8868\u4e0a\u662f\u4e0d\u9002\u5408\u505a\u8f6f\u5220\u9664\u7684\u3002\u6240\u4ee5\u6211\u4eec\u5728\u505a ETL \u7684\u65f6\u5019\uff0c\u7ebf\u4e0a\u505a delete \u7684\u64cd\u4f5c\uff0c\u6211\u4eec\u5728 TiDB \u4e0a\u4f1a\u65b0\u589e\u4e00\u4e2a is_deleted \u5b57\u6bb5\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a true\u3002\u8fd9\u4e2a\u65f6\u5019\u6709\u4e00\u4e2a\u5c0f\u7ec6\u8282\uff0c\u5220\u9664\u8fd9\u4e2a\u64cd\u4f5c\u7684\u65f6\u95f4\u6233\u600e\u4e48\u8bbe\u7f6e\u3002\u5220\u9664\u8fd9\u4e2a\u64cd\u4f5c\u65f6\u7684\u65f6\u95f4\u6233\u662f\u8ddf\u666e\u901a\u5199\u5165\u7684\u65f6\u95f4\u6233\u4e0d\u4e00\u6837\u7684\u3002\u666e\u901a\u7684\u5199\u5165\uff0c\u65f6\u95f4\u6233\u5c31\u662f\u7ebf\u4e0a\u5e93\u7684 update time\uff0c\u4f46\u662f\u5220\u9664\u7684\u65f6\u5019\u662f\u4e0d\u4f1a\u5e26\u4e0a\u7ebf\u4e0a\u7684 update_time \u7684\uff0c\u6240\u4ee5\u56e0\u4e3a\u8fd9\u6761\u8bb0\u5f55\u88ab\u786c\u5220\u9664\u4e86\uff0c\u65f6\u95f4\u6233\u90fd\u627e\u4e0d\u5230\u4e86\uff0c\u8fd9\u65f6\u6211\u4eec\u53ea\u80fd\u7528\u6536\u5230\u8fd9\u6761\u6d88\u606f\u7684 update_time \u53bb\u505a\u5b83\u7684\u65f6\u95f4\u6233\uff0c\u8fd9\u65f6\u5c31\u4f1a\u6709\u4e9b\u5c0f\u95ee\u9898\uff0c\u5f53\u7136\u8fd9\u4e2a\u95ee\u9898\u6211\u4eec\u8fd8\u6ca1\u6709\u5b8c\u5168\u89e3\u51b3\u6389\uff0c\u5047\u8bbe\u5927\u5bb6\u6709\u7c7b\u4f3c\u7684\u9700\u6c42\u7684\u8bdd\uff0c\u6211\u4eec\u53ef\u4ee5\u79c1\u4e0b\u4ea4\u6d41\u8ba8\u8bba\u3002\u76ee\u524d\u8fd9\u4e2a\u9879\u76ee\u5df2\u7ecf\u4e0a\u7ebf\uff0c\u8fd0\u884c\u7a33\u5b9a\u3002<\/p>\n\n\n\n

                \u9879\u76ee 4\uff1aMySQL \u5f52\u6863<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u9879\u76ee 4 MySQL \u5f52\u6863\u662f\u57fa\u4e8e\u9879\u76ee 3 \u7684\u6f14\u8fdb\u3002\u4e1a\u52a1\u80cc\u666f\u65b9\u9762\uff0c\u4ee5\u6700\u5927\u7684\u8868\u4e3a\u4f8b\uff0c\u4e3b\u8981\u4e3a\u7269\u6d41\u4ed3\u50a8\u90e8\u95e8\u7684\u8ba2\u5355\u53ca\u884d\u751f\u4fe1\u606f\uff0c\u5b58\u91cf\u975e\u5e38\u975e\u5e38\u5927\uff0c\u6bcf\u6708\u8fdb\u884c\u5f52\u6863\u5230 TiDB \u7684\u6570\u636e\u6709\u6570\u5341\u4ebf\uff0c\u4f46\u5bf9 QPS \u8981\u6c42\u4e0d\u662f\u5f88\u9ad8\uff0c\u4e0e\u4e1a\u52a1\u65b9\u8ba8\u8bba\u4e4b\u540e\u6682\u5b9a\uff0c\u8fc7\u53bb\u4e00\u5e74\u534a\u7684\u8bb0\u5f55\u5b58\u653e\u5728 TiDB \u4f9b\u4e1a\u52a1\u65b9\u67e5\u8be2\uff0c\u66f4\u4e45\u8fdc\u7684\u8bb0\u5f55\u5f52\u6863\u5230 S3\/Cos \u4e0a\u3002<\/p>\n\n\n\n

                \u9879\u76ee 4 \u4e0e\u9879\u76ee 3 \u4ee3\u7801\u76f8\u6bd4\u5904\u7406\u7684\u573a\u666f\u66f4\u590d\u6742\u4e00\u4e9b\uff0c\u56e0\u4e3a\u5b83\u4e4b\u524d MySQL \u7684\u5206\u5e93\u5206\u8868\u903b\u8f91\u4e0d\u50cf\u9879\u76ee 3 \u90a3\u4e9b\u6e05\u6670\uff0c\u96c6\u7fa4\u89c4\u6a21\u4e5f\u4f1a\u76f8\u5bf9\u5927\u4e00\u4e9b\uff0c\u76ee\u524d\u662f 25 \u4e2a TiKV \u8282\u70b9 + 3 \u4e2a PD \u8282\u70b9\uff0c\u672a\u6765\u53ef\u6709\u6269\u5bb9\u7684\u9700\u6c42\u3002\u5b9e\u73b0\u7ec6\u8282\u4e0a\uff0c\u9879\u76ee 4 \u548c\u9879\u76ee 3 \u7c7b\u4f3c\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8d58\u8ff0\u4e86\u3002<\/p>\n\n\n\n

                \u573a\u666f 3\uff1a\u7ebf\u4e0a\u670d\u52a1<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                TiDB \u63a5\u5165\u5b9e\u65f6\u6570\u636e\u5199\u5165\u670d\u52a1\u7684\u4e1a\u52a1\u6709\u4ee5\u4e0b\u56db\u4e2a\u8003\u8651\uff1a<\/p>\n\n\n\n

                \u7b2c\u4e00\u70b9\u662f\u4ee3\u7801\u66f4\u6539\u6210\u672c\uff0c\u8fd9\u4e00\u9879\u6210\u672c\u5df2\u7ecf\u6bd4\u8f83\u4f4e\u4e86\uff0c\u56e0\u4e3a\u57fa\u672c\u4e0a\u90fd\u662f jdbc \u8fde\u63a5\uff0c\u4f46\u591a\u591a\u5c11\u5c11\u4f1a\u6709\u4e00\u4e9b\u53d8\u66f4\u3002<\/p>\n\n\n\n

                \u7b2c\u4e8c\u70b9\u662f\u6570\u636e\u8fc1\u79fb\u6210\u672c\uff0c\u5bf9\u4e8e\u5df2\u7ecf\u4e0a\u7ebf\u7684\u4e1a\u52a1\u6765\u8bf4\uff0c\u8fc1\u79fb\u6570\u636e\u90fd\u662f\u4e00\u4ef6\u975e\u5e38\u8d39\u52b2\u7684\u4e8b\u60c5\uff0c\u5c24\u5176\u662f\u6211\u4eec\u8fd8\u8981\u6c42\u4e0d\u505c\u670d\u52a1\u8fdb\u884c\u70ed\u8fc1\u79fb\u7684\u8bdd\u3002<\/p>\n\n\n\n

                \u7b2c\u4e09\u70b9\u662f\u8fd0\u7ef4\u6210\u672c\uff0c\u4ece\u539f\u672c\u7684 MySQL \u5207\u6362\u5230\u6211\u4eec\u81ea\u5df1\u7ef4\u62a4 TiDB \uff0c\u5176\u5b9e\u65e0\u5f62\u4e2d\u589e\u52a0\u4e86\u8fd0\u7ef4\u6210\u672c\uff0c\u5c24\u5176\u662f\u5728\u6302\u76d8\u7387\u6bd4\u8f83\u9ad8\u7684\u573a\u666f\u4e0b\u3002<\/p>\n\n\n\n

                \u7b2c\u56db\u70b9\u662f\u6280\u672f\u6808\u6210\u672c\uff0c\u56e0\u4e3a\u6709\u4e9b\u4eba\u5bf9 TiDB \u4e0d\u719f\u6089\uff0c\u4f1a\u6bd4\u8f83\u5bb3\u6015\u63a5\u89e6\u548c\u4f7f\u7528\uff0c\u7edd\u5927\u90e8\u5206\u4eba\u66f4\u613f\u610f\u7528\u81ea\u5df1\u719f\u6089\u7684\u4e1c\u897f\uff0c\u6240\u4ee5\u9700\u8981\u6709\u4e00\u4e2a\u77e5\u8bc6\u5b66\u4e60\u7684\u8fc7\u7a0b\uff0c\u8fd9\u4e5f\u662f\u4e00\u4e2a\u6210\u672c\u3002<\/p>\n\n\n\n

                \u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u6709\u4e00\u90e8\u5206\u7ebf\u4e0a\u4e1a\u52a1\u4ece Hive \u79bb\u7ebf\u5bfc\u5165\u5230 TiDB \u505a T+1 \u7ea7\u522b\u6570\u636e\u670d\u52a1\uff0c\u800c\u4e14\u6211\u4eec\u65b0\u4e0a\u7ebf\u4e1a\u52a1\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u9009\u578b\u5df2\u7ecf\u5f00\u59cb\u503e\u5411\u4e8e TiDB\uff0c\u4e3b\u8981\u662f\u56e0\u4e3a\u5b83\u7684\u6269\u5c55\u6027\u4e3a\u6211\u4eec\u8282\u7701\u4e86\u5f88\u5927\u7684\u65f6\u95f4\u6210\u672c\uff0c\u5c24\u5176\u662f\u4e1a\u52a1\u589e\u957f\u6bd4\u8f83\u5feb\u7684\u60c5\u51b5\u4e0b\uff0c\u9009\u62e9 MySQL \u5206\u5e93\u5206\u8868\u5176\u5b9e\u662f\u4e00\u4ef6\u4ee3\u4ef7\u6781\u5176\u5927\u7684\u4e8b\u60c5\u3002<\/p>\n\n\n\n

                \u6211\u8bb0\u5f97\u4e4b\u524d\u6709\u540c\u4e8b\u95ee\u4e86\u4e00\u4e2a\u95ee\u9898\uff0c\u8bf4\u8fd9\u4e2a\u573a\u666f\u7528\u522b\u7684\u4e1c\u897f\u4e5f\u53ef\u4ee5\u505a\uff0c\u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u7528 TiDB \u5462\uff1f\u4e3a\u4ec0\u4e48\u8981\u7528\u725b\u5200\u6765\u6740\u4e00\u53ea\u9e21\u5462\uff1f\u6211\u56de\u7b54\u4ed6\uff1a\u6709\u79cd\u60c5\u51b5\u662f\u4f60\u627e\u4e0d\u5230\u4e00\u53ea\u725b\u6765\u6740\uff0c\u53ea\u80fd\u5148\u201c\u6740\u9e21\u201d\u6210\u529f\u4e86\uff0c\u672a\u6765\u624d\u6709\u201c\u6740\u725b\u201d\u7684\u673a\u4f1a\uff0c\u4f46\u662f\u5927\u5bb6\u4e0d\u8981\u8ba4\u4e3a\u201c\u6740\u9e21\u7528\u725b\u5200\u201d\u662f\u4e00\u4ef6\u5f88\u8822\u4e8b\u60c5\uff0c\u8fd9\u53ef\u4ee5\u7406\u89e3\u4e3a\u4e00\u4e2a\u9274\u5b9a\u6216\u8005\u6d4b\u8bd5\u7684\u8fc7\u7a0b\u3002<\/p>\n\n\n\n

                \u56db\u3001\u672a\u6765 TiDB \u5728\u5c0f\u7ea2\u4e66\u7684\u63a5\u5165\u8ba1\u5212<\/p>\n\n\n\n

                \"\"<\/figure><\/div>\n\n\n\n

                \u6700\u540e\u5206\u4eab\u4e00\u4e0b TiDB \u672a\u6765\u5728\u5c0f\u7ea2\u4e66\u7684\u63a5\u5165\u65b9\u5411\u3002<\/p>\n\n\n\n

                \u9996\u5148\u5728 ETL \u65b9\u9762\uff0cTiDB \u7684\u4e8b\u52a1\u9694\u79bb\u6027\u5bf9\u67d0\u4e9b\u573a\u666f\u6765\u8bf4\u6709\u70b9\u9ad8\uff0c\u6211\u4eec\u5e0c\u671b\u80fd\u81ea\u5b9a\u4e49\u4e8b\u52a1\u9694\u79bb\u9700\u6c42\uff0c\u6bd4\u5982\u4e24\u4e2a\u4e8b\u52a1\u6709\u51b2\u7a81\uff0c\u4f46\u6211\u4eec\u5b9e\u9645\u7684\u5199\u5165\u9700\u6c42\u53ea\u8981\u6700\u7ec8\u4e00\u81f4\u6027\u3002\u4f46\u662f\u4ece\u76ee\u524d TiDB \u7684\u8bbe\u8ba1\u6765\u8bf4\uff0c\u8fd9\u4e2a\u9700\u6c42\u53ef\u80fd\u6bd4\u8f83\u56f0\u96be\uff0c\u4f46\u662f\u4e5f\u4e0d\u6392\u9664\u5c06\u8fd9\u4e2a\u4e8b\u60c5 raise \u8d77\u6765\u7684\u53ef\u80fd\u6027\u3002<\/p>\n\n\n\n

                \u7b2c\u4e8c\u4e2a\u5f88\u91cd\u8981\u7684\u4e8b\u60c5\u662f\u8de8\u6570\u636e\u4e2d\u5fc3\u7684\u90e8\u7f72\uff0c\u8fd9\u662f\u6211\u4eec\u672a\u6765\u4f1a\u91cd\u70b9\u5173\u6ce8\u7684\u65b9\u5411\uff0c\u53ef\u80fd\u6700\u7ec8\u4f1a\u5f97\u5230\u4e00\u4e2a\u901a\u7528\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u76ee\u524d\u7684\u89c4\u5212\u8fd8\u4e0d\u662f\u7279\u522b\u660e\u6670\uff0c\u56e0\u4e3a\u672a\u6765\u4e1a\u52a1\u53ef\u80fd\u5728\u4e0d\u540c\u7684\u4e91\u4f1a\u6709\u4e0d\u540c\u7684\u5f62\u6001\uff0c\u6211\u4eec\u4e5f\u5e0c\u671b\u80fd\u627e\u5230\u6210\u672c\u76f8\u5bf9\u66f4\u4f4e\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n

                \u7b2c\u4e09\u70b9\u662f\u81ea\u52a8\u5316\u8fd0\u7ef4\uff0c\u76ee\u524d\u662f\u5f80 TiDB + K8s \u7684\u65b9\u5411\u63a8\u52a8\uff0c\u66f4\u597d\u7684\u89e3\u51b3\u96c6\u7fa4\u90e8\u7f72\u95ee\u9898\uff0c\u56e0\u4e3a\u5728\u865a\u673a\u4e0a\u90e8\u7f72\u8fd8\u662f\u6bd4\u8f83\u75db\u82e6\u7684\u3002<\/p>\n\n\n\n

                \u6700\u540e\uff0c\u6211\u4eec\u5df2\u7ecf\u6709\u540c\u4e8b\u8d1f\u8d23\u8c03\u7814 TiFlash\u3001Tidis\uff0c\u4f46\u76ee\u524d\u8fd8\u6ca1\u6709\u7ebf\u4e0a\u5e94\u7528\u5728\u4f9d\u8d56\u3002\u540c\u65f6\u6211\u4eec\u4e5f\u5728\u505a CK \u548c TiFlash \u7684\u5bf9\u6bd4\u8c03\u7814\uff0c\u76ee\u524d CK \u5df2\u7ecf\u5728\u7ebf\u4e0a\u63d0\u4f9b\u670d\u52a1\uff0c\u672a\u6765\u5982\u679c TiFlash \u7684\u8c03\u7814\u7ed3\u8bba\u662f\u6bd4\u8f83\u4f18\u79c0\u7684\uff0c\u80af\u5b9a\u4e5f\u4f1a\u6709\u8ba1\u5212\u66ff\u6362\u3002<\/p>\n\n\n\n

                \u6587\uff1a\u5f20\u4fca\u9a8f @PingCAP<\/p>\n\n\n\n

                PS\uff1a\u672c\u516c\u53f8\u627f\u63a5\u5c0f\u7ea2\u4e66\u5173\u952e\u8bcd\u6392\u540d\uff0c\u4e0b\u62c9\u63a8\u8350\uff0c\u70ed\u95e8\u641c\u7d22\uff0c\u8fbe\u4eba\u79cd\u8349\uff0c\u4ee3\u5199\u4ee3\u53d1\uff0c\u91d1\u51a0\u85af\uff0c\u6570\u636e\u4f18\u5316\u7b49\u4e1a\u52a1\uff1b<\/p>\n\n\n\n

                \u54a8\u8be2\u5fae\u4fe1\uff1a139 1053 2512 (\u540c\u7535\u8bdd)<\/p>\n\n\n\n

                \u9996\u5e2d\u589e\u957f\u5b98CGO\u8350\u8bfb\u5c0f\u7ea2\u4e66\u63a8\u5e7f<\/a><\/span>\uff1a<\/strong><\/p>\n\n\n\n