{"id":71557,"date":"2023-11-28T14:50:11","date_gmt":"2023-11-28T06:50:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=71557"},"modified":"2023-11-28T14:50:11","modified_gmt":"2023-11-28T06:50:11","slug":"study-sql","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/study-sql.html","title":{"rendered":"\u673a\u5668\u5b66\u4e60\u53ef\u81ea\u52a8\u4f18\u5316\u4f60\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u8fd0\u7ef4\u662f\u5426\u4f1a\u5931\u4e1a"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\u662f\u4efb\u4f55\u6570\u636e\u5bc6\u96c6\u578b\u5e94\u7528\u7cfb\u7edf\u4e2d\u6700\u91cd\u8981\u7684\u4e00\u4e2a\u90e8\u5206\u3002\u5b83\u4eec\u53ef\u4ee5\u5904\u7406\u5927\u91cf\u7684\u6570\u636e\u548c\u590d\u6742\u7684\u5de5\u4f5c\u8d1f\u8f7d\u3002\u4f46\u662f\u7531\u4e8e\u5b83\u4eec\u6709\u6210\u767e\u4e0a\u5343\u4e2a\u914d\u7f6e\u201c\u6309\u94ae\u201d\uff08knob\uff09\uff0c\u8fd9\u4e9b\u914d\u7f6e\u6309\u94ae\u63a7\u5236\u7740\u8bf8\u591a\u56e0\u7d20\uff0c\u6bd4\u5982\u7528\u4e8e\u7f13\u5b58\u7684\u5185\u5b58\u5bb9\u91cf\u548c\u6570\u636e\u5199\u5165\u5230\u5b58\u50a8\u8bbe\u5907\u7684\u9891\u6b21\uff0c\u56e0\u800c\u7ba1\u7406\u8d77\u6765\u5f88\u96be\u3002\u4f01\u4e1a\u7ec4\u7ec7\u5e38\u5e38\u8058\u8bf7\u4e13\u5bb6\u5e2e\u52a9\u8c03\u4f18\u6d3b\u52a8\uff0c\u4e0d\u8fc7\u5bf9\u8bb8\u591a\u4f01\u4e1a\u6765\u8bf4\u4e13\u5bb6\u7684\u6210\u672c\u9ad8\u5f97\u79bb\u8c31\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u672c\u6587\u662f\u7531\u5361\u5185\u57fa\u00b7\u6885\u9686\u5927\u5b66\u7684\u4e09\u4f4d\u5609\u5bbe\u8fbe\u5a1c\u00b7\u8303\u00b7\u963f\u80af\uff08Dana Van Aken\uff09\u3001\u5b89\u8fea\u00b7\u5e15\u592b\u6d1b\uff08Andy Pavlo\uff09\u548c\u6770\u592b\u00b7\u6208\u767b\uff08Geoff Gordon\uff09\u5171\u540c\u64b0\u5199\u7684\u6587\u7ae0\u3002\u8be5\u9879\u76ee\u6f14\u793a\u4e86\u5b66\u672f\u7814\u7a76\u4eba\u5458\u5982\u4f55\u53ef\u4ee5\u4f7f\u7528AWS Cloud Credits for Research Program\uff08https:\/\/aws.amazon.com\/research-credits\/\uff09\u6765\u652f\u6301\u5176\u79d1\u7814\u7a81\u7834\u3002<\/p>\n

OtterTune\u662f\u7531\u5361\u5185\u57fa\u00b7\u6885\u9686\u5927\u5b66\u6570\u636e\u5e93\u5c0f\u7ec4\uff08http:\/\/db.cs.cmu.edu\/projects\/autotune\/\uff09\u7684\u5b66\u751f\u548c\u7814\u7a76\u4eba\u5458\u5f00\u53d1\u7684\u4e00\u79cd\u65b0\u5de5\u5177\uff0c\u5b83\u80fd\u81ea\u52a8\u4e3aDBMS\u7684\u914d\u7f6e\u6309\u94ae\u627e\u5230\u5408\u9002\u7684\u8bbe\u7f6e\u3002\u76ee\u7684\u5728\u4e8e\u8ba9\u4efb\u4f55\u4eba\u90fd\u66f4\u5bb9\u6613\u90e8\u7f72DBMS\uff0c\u751a\u81f3\u662f\u6570\u636e\u5e93\u7ba1\u7406\u65b9\u9762\u6beb\u65e0\u4e13\u957f\u7684\u90a3\u4e9b\u4eba\u3002<\/p>\n

OtterTune\u6709\u522b\u4e8e\u5176\u4ed6\u7684DBMS\u914d\u7f6e\u5de5\u5177\uff0c\u539f\u56e0\u5728\u4e8e\u5b83\u5145\u5206\u5229\u7528\u4ece\u8c03\u4f18\u4e4b\u524d\u90e8\u7f72\u7684DBMS\u83b7\u5f97\u7684\u77e5\u8bc6\u6765\u8c03\u4f18\u65b0\u90e8\u7f72\u7684DBMS\u3002\u8fd9\u5927\u5927\u51cf\u5c11\u4e86\u8c03\u4f18\u65b0\u90e8\u7f72\u7684DBMS\u6240\u9700\u8981\u7684\u65f6\u95f4\u548c\u8d44\u6e90\u3002\u4e3a\u6b64\uff0cOtterTune\u7ef4\u62a4\u4e00\u4e2a\u8d44\u6599\u5e93\uff0c\u5305\u542b\u4ece\u4e4b\u524d\u7684\u8c03\u4f18\u4f1a\u8bdd\u6536\u96c6\u800c\u6765\u7684\u8c03\u4f18\u6570\u636e\u3002\u5b83\u4f7f\u7528\u8be5\u6570\u636e\u6765\u6784\u5efa\u673a\u5668\u5b66\u4e60\u6a21\u578b\uff0c\u8fd9\u4e9b\u6a21\u578b\u91c7\u96c6\u4e86DBMS\u5bf9\u4e0d\u540c\u914d\u7f6e\u4f5c\u51fa\u53cd\u5e94\u7684\u4fe1\u606f\u3002OtterTune\u4f7f\u7528\u8fd9\u4e9b\u6a21\u578b\u6765\u6307\u5bfc\u7528\u6237\u9488\u5bf9\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u5c1d\u8bd5\uff0c\u5efa\u8bae\u4f7f\u7528\u6539\u5584\u7279\u5b9a\u76ee\u6807\uff08\u6bd4\u5982\u7f29\u77ed\u5ef6\u8fdf\u6216\u63d0\u9ad8\u541e\u5410\u91cf\uff09\u7684\u8bbe\u7f6e\u3002<\/p>\n

\u6211\u4eec\u5728\u672c\u6587\u4e2d\u63a2\u8ba8\u4e86OtterTune\u7684\u673a\u5668\u5b66\u4e60\u7ba1\u9053\u7684\u6bcf\u4e2a\u7ec4\u4ef6\uff0c\u5e76\u6f14\u793a\u4e86\u5b83\u4eec\u5f7c\u6b64\u5982\u4f55\u8054\u7cfb\uff0c\u4ece\u800c\u8c03\u4f18DBMS\u7684\u914d\u7f6e\u3002\u4e4b\u540e\uff0c\u6211\u4eec\u8bc4\u4f30\u4e86OtterTune\u5bf9MySQL\u548cPostgres\u7684\u8c03\u4f18\u6548\u679c\uff1a\u5c06\u5176\u6700\u4f73\u914d\u7f6e\u7684\u6027\u80fd\u4e0e\u6570\u636e\u5e93\u7ba1\u7406\u5458\uff08DBA\uff09\u53ca\u5176\u4ed6\u81ea\u52a8\u8c03\u4f18\u5de5\u5177\u9009\u62e9\u7684\u914d\u7f6e\u4f5c\u4e86\u4e00\u756a\u6bd4\u8f83\u3002<\/p>\n

OtterTune\u662f\u7531\u5361\u5185\u57fa\u00b7\u6885\u9686\u5927\u5b66\u6570\u636e\u5e93\u5c0f\u7ec4\u7684\u5b66\u751f\u548c\u7814\u7a76\u4eba\u5458\u5f00\u53d1\u7684\u4e00\u79cd\u5f00\u6e90\u5de5\u5177\u3002\u6240\u6709\u4ee3\u7801\u90fd\u653e\u5728GitHub\u4e0a\uff08https:\/\/github.com\/cmu-db\/ottertune\uff09\uff0c\u91c7\u7528\u4e86Apache License 2.0\u8fd9\u79cd\u8bb8\u53ef\u8bc1\u6765\u53d1\u884c\u3002<\/p>\n

\u5de5\u4f5c\u539f\u7406<\/strong><\/div>\n

\u4e0b\u9762\u8fd9\u5f20\u56fe\u663e\u793a\u4e86OtterTune\u7684\u7ec4\u4ef6\u53ca\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n

\"\"<\/p>\n

\u5728\u65b0\u7684\u8c03\u4f18\u4f1a\u8bdd\u7684\u5f00\u59cb\u9636\u6bb5\uff0c\u7528\u6237\u544a\u8bc9OtterTune\u4f18\u5316\u54ea\u4e2a\u7279\u5b9a\u76ee\u6807\uff08\u6bd4\u5982\u5ef6\u8fdf\u6216\u541e\u5410\u91cf\uff09\u3002\u5ba2\u6237\u7aef\u63a7\u5236\u5668\u8fde\u63a5\u81f3\u76ee\u6807DBMS\uff0c\u5e76\u6536\u96c6Amazon EC2\u5b9e\u4f8b\u7c7b\u578b\u548c\u5f53\u524d\u76ee\u6807\u3002<\/p>\n

\u7136\u540e\uff0c\u63a7\u5236\u5668\u5f00\u59cb\u4e86\u7b2c\u4e00\u4e2a\u89c2\u5bdf\u671f\uff0c\u5728\u6b64\u671f\u95f4\u5b83\u89c2\u5bdfDBMS\uff0c\u5e76\u8bb0\u5f55\u7279\u5b9a\u76ee\u6807\u3002\u89c2\u5bdf\u671f\u7ed3\u675f\u540e\uff0c\u63a7\u5236\u5668\u6536\u96c6\u6765\u81eaDBMS\u7684\u5185\u90e8\u5ea6\u91cf\u6307\u6807\uff0c\u6bd4\u5982MySQL\u9488\u5bf9\u4ece\u78c1\u76d8\u8bfb\u53d6\u7684\u9875\u9762\u548c\u5199\u5165\u5230\u78c1\u76d8\u7684\u9875\u9762\u7684\u8ba1\u6570\u3002\u63a7\u5236\u5668\u5c06\u7279\u5b9a\u76ee\u6807\u548c\u5185\u90e8\u5ea6\u91cf\u6307\u6807\u90fd\u8fd4\u56de\u7ed9\u8c03\u4f18\u7ba1\u7406\u5668\u3002<\/p>\n

OtterTune\u7684\u8c03\u4f18\u7ba1\u7406\u5668\u6536\u5230\u5ea6\u91cf\u6307\u6807\u540e\uff0c\u5c06\u5b83\u4eec\u5b58\u50a8\u5728\u8d44\u6599\u5e93\u4e2d\u3002OtterTune\u4f7f\u7528\u7ed3\u679c\u6765\u8ba1\u7b97\u63a7\u5236\u5668\u5e94\u5b89\u88c5\u5230\u76ee\u6807DBMS\u4e0a\u7684\u4e0b\u4e00\u4e2a\u914d\u7f6e\u3002\u8c03\u4f18\u7ba1\u7406\u5668\u5c06\u8be5\u914d\u7f6e\u8fd4\u56de\u7ed9\u63a7\u5236\u5668\uff0c\u5e76\u901a\u8fc7\u5b9e\u9645\u8fd0\u884c\u6765\u4f30\u8ba1\u9884\u671f\u7684\u6539\u8fdb\u3002\u7528\u6237\u53ef\u4ee5\u51b3\u5b9a\u7ee7\u7eed\u8c03\u4f18\u4f1a\u8bdd\uff0c\u8fd8\u662f\u7ec8\u7ed3\u8c03\u4f18\u4f1a\u8bdd\u3002<\/p>\n

\u8bf4\u660e<\/strong><\/div>\n

OtterTune\u4e3a\u5b83\u652f\u6301\u7684\u6bcf\u4e2aDBMS\u7248\u672c\u7ef4\u62a4\u4e00\u4efd\u6309\u94ae\u9ed1\u540d\u5355\u3002\u8be5\u9ed1\u540d\u5355\u5305\u62ec\u6ca1\u5fc5\u8981\u8c03\u4f18\u7684\u6309\u94ae\uff08\u6bd4\u5982DBMS\u5b58\u50a8\u6587\u4ef6\u7684\u8def\u5f84\u540d\u79f0\uff09\uff0c\u6216\u8005\u53ef\u80fd\u6709\u4e25\u91cd\u540e\u679c\u6216\u9690\u6027\u540e\u679c\u7684\u6309\u94ae\uff08\u6bd4\u5982\u53ef\u80fd\u4f1a\u5f15\u8d77DBMS\u4e22\u5931\u6570\u636e\uff09\u3002\u5728\u6bcf\u6b21\u8c03\u4f18\u4f1a\u8bdd\u7684\u5f00\u59cb\u9636\u6bb5\uff0cOtterTune\u5411\u7528\u6237\u63d0\u4f9b\u9ed1\u540d\u5355\uff0c\u90a3\u6837\u7528\u6237\u5c31\u80fd\u6dfb\u52a0\u4ed6\u4eec\u60f3\u8981OtterTune\u907f\u514d\u8c03\u4f18\u7684\u5176\u4ed6\u4efb\u4f55\u6309\u94ae\u3002<\/p>\n

OtterTune\u4f5c\u51fa\u67d0\u4e9b\u5047\u8bbe\uff0c\u53ef\u80fd\u4f1a\u9650\u5236\u5176\u5bf9\u4e00\u4e9b\u7528\u6237\u800c\u8a00\u7684\u7528\u5904\u3002\u6bd4\u5982\u8bf4\uff0c\u5b83\u5047\u8bbe\u7528\u6237\u62e5\u6709\u7ba1\u7406\u5458\u6743\u9650\uff0c\u8ba9\u63a7\u5236\u5668\u53ef\u4ee5\u4fee\u6539DBMS\u7684\u914d\u7f6e\u3002\u5982\u679c\u7528\u6237\u6ca1\u6709\u7ba1\u7406\u5458\u6743\u9650\uff0c\u90a3\u4e48\u4ed6\u4eec\u53ef\u4ee5\u5c06\u6570\u636e\u5e93\u7684\u7b2c\u4e8c\u4e2a\u526f\u672c\u90e8\u7f72\u5230\u5176\u4ed6\u786c\u4ef6\u4e0a\uff0c\u4ee5\u4fbfOtterTune\u7684\u8c03\u4f18\u8bd5\u9a8c\u3002\u8fd9\u8981\u6c42\u7528\u6237\u91cd\u653e\u5de5\u4f5c\u8d1f\u8f7d\u8ddf\u8e2a\uff0c\u6216\u8005\u8f6c\u53d1\u6765\u81ea\u751f\u4ea7\u7ea7DBMS\u7684\u67e5\u8be2\u3002\u60f3\u4e86\u89e3\u5047\u8bbe\u548c\u9650\u5236\u65b9\u9762\u7684\u5b8c\u6574\u8ba8\u8bba\uff0c\u8bf7\u53c2\u9605\u6211\u4eec\u7684\u8bba\u6587\uff08http:\/\/db.cs.cmu.edu\/papers\/2017\/tuning-sigmod2017.pdf\uff09\u3002<\/p>\n

\u673a\u5668\u5b66\u4e60\u7ba1\u9053<\/strong><\/div>\n

\u4e0b\u9762\u8fd9\u5f20\u56fe\u663e\u793a\u4e86\u6570\u636e\u5728\u901a\u8fc7OtterTune\u7684\u673a\u5668\u5b66\u4e60\u7ba1\u9053\u4f20\u8f93\u65f6\u5982\u4f55\u52a0\u4ee5\u5904\u7406\u3002\u6240\u6709\u89c2\u5bdf\u7ed3\u679c\u90fd\u653e\u5728OtterTune\u7684\u8d44\u6599\u5e93\u4e2d\u3002<\/p>\n

OtterTune\u5148\u628a\u89c2\u5bdf\u7ed3\u679c\u4f20\u9001\u5230Workload Characterization\u7ec4\u4ef6\u3002\u8be5\u7ec4\u4ef6\u8bc6\u522b\u4e00\u5c0f\u6279\u6700\u51c6\u786e\u5730\u91c7\u96c6\u6027\u80fd\u53d8\u5316\u548c\u4e0d\u540c\u5de5\u4f5c\u8d1f\u8f7d\u72ec\u7279\u7279\u70b9\u7684DBMS\u5ea6\u91cf\u6307\u6807\u3002<\/p>\n

\u63a5\u4e0b\u6765\uff0cKnob Identification\u7ec4\u4ef6\u751f\u6210\u4e00\u4efd\u6309\u94ae\u6392\u5e8f\u8868\uff0c\u5217\u51fa\u4e86\u5bf9DBMS\u7684\u6027\u80fd\u5f71\u54cd\u6700\u5927\u7684\u6309\u94ae\u3002\u7136\u540e\uff0cOtterTune\u5c06\u6240\u6709\u8fd9\u4e9b\u4fe1\u606f\u9988\u9001\u7ed9Automatic Tuner\u3002\u8be5\u7ec4\u4ef6\u5c06\u76ee\u6807DBMS\u7684\u5de5\u4f5c\u8d1f\u8f7d\u4e0e\u6570\u636e\u8d44\u6599\u5e93\u4e2d\u6700\u76f8\u4f3c\u7684\u5de5\u4f5c\u8d1f\u8f7d\u5bf9\u5e94\u8d77\u6765\uff0c\u5e76\u91cd\u590d\u4f7f\u7528\u8be5\u5de5\u4f5c\u8d1f\u8f7d\u6570\u636e\uff0c\u751f\u6210\u66f4\u5408\u9002\u7684\u914d\u7f6e\u3002<\/p>\n

\"\u8fd0\u7ef4\u8981\u5931\u4e1a\u4e86\uff1f\u673a\u5668\u5b66\u4e60\u53ef\u81ea\u52a8\u4f18\u5316\u4f60\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\"\"\"<\/p>\n

\u73b0\u5728\u4e0d\u59a8\u6df1\u5165\u63a2\u7a76\u673a\u5668\u5b66\u4e60\u7ba1\u9053\u4e2d\u7684\u6bcf\u4e00\u4e2a\u7ec4\u4ef6\u3002<\/p>\n

Workload Characterization\uff1aOtterTune\u4f7f\u7528DBMS\u7684\u5185\u90e8\u8fd0\u884c\u65f6\u5ea6\u91cf\u6307\u6807\u6765\u63cf\u8ff0\u5de5\u4f5c\u8d1f\u8f7d\u7684\u884c\u4e3a\u7279\u70b9\u3002\u8fd9\u4e9b\u5ea6\u91cf\u6307\u6807\u51c6\u786e\u5730\u8868\u8ff0\u4e86\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u56e0\u4e3a\u5b83\u4eec\u91c7\u96c6\u4e86\u8fd0\u884c\u65f6\u884c\u4e3a\u7684\u8bb8\u591a\u65b9\u9762\u3002\u7136\u800c\uff0c\u8bb8\u591a\u5ea6\u91cf\u6307\u6807\u662f\u5197\u4f59\u7684\uff1a\u4e00\u4e9b\u662f\u4ee5\u4e0d\u540c\u5355\u4f4d\u8bb0\u5f55\u7684\u540c\u4e00\u4e2a\u5ea6\u91cf\u503c\uff0c\u53e6\u4e00\u4e9b\u8868\u793aDBMS\u4e2d\u6570\u503c\u9ad8\u5ea6\u5173\u8054\u7684\u72ec\u7acb\u90e8\u5206\u3002\u7cbe\u7b80\u5197\u4f59\u7684\u5ea6\u91cf\u6307\u6807\u5f88\u91cd\u8981\uff0c\u56e0\u4e3a\u8fd9\u964d\u4f4e\u4e86\u4f7f\u7528\u5b83\u4eec\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u590d\u6742\u6027\u3002\u4e3a\u6b64\uff0c\u6211\u4eec\u57fa\u4e8e\u5173\u8054\u6a21\u5f0f\uff0c\u5c06DBMS\u7684\u5ea6\u91cf\u6307\u6807\u5206\u6210\u805a\u7c7b\uff08cluster\uff09\u3002\u7136\u540e\uff0c\u6211\u4eec\u4ece\u6bcf\u4e2a\u805a\u7c7b\u4e2d\u9009\u62e9\u4e00\u4e2a\u4ee3\u8868\u6027\u5ea6\u91cf\u6307\u6807\uff0c\u5177\u4f53\u6765\u8bf4\u662f\u6700\u9760\u8fd1\u805a\u7c7b\u4e2d\u5fc3\u7684\u90a3\u4e2a\u5ea6\u91cf\u6307\u6807\u3002\u673a\u5668\u5b66\u4e60\u7ba1\u9053\u4e2d\u7684\u540e\u7eed\u7ec4\u4ef6\u4f7f\u7528\u8fd9\u4e9b\u5ea6\u91cf\u6307\u6807\u3002<\/p>\n

Knob Identification\uff1aDBMS\u53ef\u80fd\u6709\u6570\u767e\u4e2a\u6309\u94ae\uff0c\u4f46\u53ea\u6709\u4e00\u5c0f\u6279\u6309\u94ae\u5f71\u54cdDBMS\u7684\u6027\u80fd\u3002OtterTune\u4f7f\u7528\u4e00\u79cd\u6d41\u884c\u7684\u7279\u5f81\u9009\u62e9\u6280\u672f\uff08\u540d\u4e3aLasso\uff09\uff0c\u51b3\u5b9a\u54ea\u4e9b\u6309\u94ae\u663e\u8457\u5f71\u54cd\u7cfb\u7edf\u7684\u6574\u4f53\u6027\u80fd\u3002\u901a\u8fc7\u5c06\u8fd9\u79cd\u6280\u672f\u8fd0\u7528\u4e8e\u8d44\u6599\u5e93\u4e2d\u7684\u6570\u636e\uff0cOtterTune\u53ef\u8bc6\u522bDBMS\u7684\u6309\u94ae\u91cd\u8981\u6027\u6b21\u5e8f\u3002<\/p>\n

\u968f\u540e\uff0cOtterTune\u5f97\u51b3\u5b9a\u5728\u5efa\u8bae\u914d\u7f6e\u65f6\u4f7f\u7528\u591a\u5c11\u4e2a\u6309\u94ae\u3002\u4f7f\u7528\u592a\u591a\u7684\u6309\u94ae\u5927\u5927\u589e\u52a0\u4e86OtterTune\u7684\u4f18\u5316\u65f6\u95f4\u3002\u4f7f\u7528\u592a\u5c11\u7684\u6309\u94ae\u53c8\u8ba9OtterTune\u65e0\u6cd5\u627e\u5230\u6700\u4f73\u914d\u7f6e\u3002\u4e3a\u4e86\u4f7f\u8fd9\u4e2a\u8fc7\u7a0b\u5b9e\u73b0\u81ea\u52a8\u5316\uff0cOtterTune\u4f7f\u7528\u4e86\u4e00\u79cd\u589e\u91cf\u65b9\u6cd5\u3002\u5b83\u9010\u6b65\u589e\u52a0\u7528\u4e8e\u8c03\u4f18\u4f1a\u8bdd\u4e2d\u7684\u6309\u94ae\u6570\u91cf\u3002\u8fd9\u79cd\u65b9\u6cd5\u8ba9OtterTune\u5f97\u4ee5\u4e3a\u4e00\u5c0f\u6279\u6700\u91cd\u8981\u7684\u6309\u94ae\u63a2\u7a76\u548c\u4f18\u5316\u914d\u7f6e\uff0c\u7136\u540e\u6269\u5927\u8303\u56f4\u3001\u8003\u8651\u5176\u4ed6\u6309\u94ae\u3002<\/p>\n

Automatic Tuner\uff1aAutomated Tuning\u7ec4\u4ef6\u901a\u8fc7\u5728\u6bcf\u4e2a\u89c2\u5bdf\u671f\u4e4b\u540e\u6267\u884c\u5206\u4e24\u6b65\u8d70\u7684\u5206\u6790\uff0c\u51b3\u5b9aOtterTune\u5e94\u8be5\u5efa\u8bae\u4f7f\u7528\u54ea\u4e2a\u914d\u7f6e\u3002<\/p>\n

\u9996\u5148\uff0c\u7cfb\u7edf\u4f7f\u7528\u9488\u5bf9Workload Characterization\u7ec4\u4ef6\u4e2d\u8bc6\u522b\u7684\u5ea6\u91cf\u6307\u6807\u7684\u6027\u80fd\u6570\u636e\uff0c\u4ece\u6700\u80fd\u8868\u793a\u76ee\u6807DBMS\u5de5\u4f5c\u8d1f\u8f7d\u7684\u4e4b\u524d\u8c03\u4f18\u4f1a\u8bdd\u8bc6\u522b\u5de5\u4f5c\u8d1f\u8f7d\u3002\u5b83\u5c06\u4f1a\u8bdd\u7684\u5ea6\u91cf\u6307\u6807\u4e0e\u6765\u81ea\u4e4b\u524d\u5de5\u4f5c\u8d1f\u8f7d\u7684\u5ea6\u91cf\u6307\u6807\u8fdb\u884c\u6bd4\u8f83\uff0c\u770b\u770b\u54ea\u4e9b\u5bf9\u4e0d\u540c\u7684\u6309\u94ae\u8bbe\u7f6e\u6709\u7c7b\u4f3c\u7684\u53cd\u5e94\u3002<\/p>\n

\u7136\u540e\uff0cOtterTune\u9009\u62e9\u53e6\u4e00\u4e2a\u6309\u94ae\u914d\u7f6e\u6765\u8bd5\u4e00\u8bd5\u3002\u5b83\u4f7f\u7edf\u8ba1\u6a21\u578b\u9002\u5408\u5df2\u6536\u96c6\u7684\u6570\u636e\uff0c\u4ee5\u53ca\u6765\u81ea\u8d44\u6599\u5e93\u4e2d\u6700\u76f8\u4f3c\u7684\u5de5\u4f5c\u8d1f\u8f7d\u7684\u6570\u636e\u3002\u8be5\u6a21\u578b\u8ba9OtterTune\u53ef\u4ee5\u9884\u6d4bDBMS\u4f7f\u7528\u6bcf\u4e00\u79cd\u53ef\u80fd\u7684\u914d\u7f6e\u4f1a\u6709\u600e\u6837\u7684\u6027\u80fd\u3002OtterTune\u4f18\u5316\u4e0b\u4e00\u4e2a\u914d\u7f6e\uff0c\u5728\u63a2\u7d22\uff08\u6536\u96c6\u4fe1\u606f\u6765\u6539\u5584\u6a21\u578b\uff09\u548c\u5229\u7528\uff08\u5c3d\u53ef\u80fd\u5728\u7279\u5b9a\u5ea6\u91cf\u6307\u6807\u65b9\u9762\u8868\u73b0\u4e0d\u4fd7\uff09\u4e4b\u95f4\u6c42\u5f97\u5e73\u8861\u3002<\/p>\n

\u5b9e\u73b0<\/strong><\/div>\n

OtterTune\u662f\u7528Python\u7f16\u5199\u7684\u3002<\/p>\n

\u5c31Workload Characterization\u548cKnob Identification\u8fd9\u4e24\u4e2a\u7ec4\u4ef6\u800c\u8a00\uff0c\u8fd0\u884c\u65f6\u6027\u80fd\u5e76\u4e0d\u662f\u62c5\u5fc3\u7684\u4e3b\u8981\u95ee\u9898\uff0c\u4e8e\u662f\u6211\u4eec\u7528scikit-learn\u5b9e\u73b0\u4e86\u5bf9\u5e94\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u3002\u8fd9\u4e9b\u7b97\u6cd5\u5728\u540e\u53f0\u8fdb\u7a0b\u4e2d\u8fd0\u884c\uff0c\u4e00\u65e6OtterTune\u7684\u8d44\u6599\u5e93\u4e2d\u6709\u4e86\u65b0\u7684\u6570\u636e\uff0c\u5c31\u4f1a\u6574\u5408\u65b0\u6570\u636e\u3002<\/p>\n

\u81f3\u4e8eAutomatic Tuner\uff0c\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u4f4d\u4e8e\u5173\u952e\u8def\u5f84\u4e0a\u3002\u5b83\u4eec\u5728\u6bcf\u6b21\u89c2\u5bdf\u671f\u540e\u8fd0\u884c\uff0c\u6574\u5408\u65b0\u6570\u636e\uff0c\u90a3\u6837OtterTune\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u6309\u94ae\u914d\u7f6e\u63a5\u4e0b\u6765\u5c1d\u8bd5\u3002\u7531\u4e8e\u6027\u80fd\u662f\u4e2a\u8003\u91cf\u56e0\u7d20\uff0c\u6211\u4eec\u4f7f\u7528TensorFlow\u5b9e\u73b0\u4e86\u8fd9\u4e9b\u7b97\u6cd5\u3002<\/p>\n

\u4e3a\u4e86\u6536\u96c6DBMS\u786c\u4ef6\u65b9\u9762\u7684\u6570\u636e\u3001\u6309\u94ae\u914d\u7f6e\u548c\u8fd0\u884c\u65f6\u6027\u80fd\u5ea6\u91cf\u6307\u6807\uff0c\u6211\u4eec\u5c06OtterTune\u7684\u63a7\u5236\u5668\u4e0eOLTP-Bench\u57fa\u51c6\u6d4b\u8bd5\u6846\u67b6\u6574\u5408\u8d77\u6765\u3002<\/p>\n

\u8bc4\u4f30<\/strong><\/div>\n

\u4e3a\u4e86\u8bc4\u4f30\uff0c\u6211\u4eec\u9488\u5bf9MySQL\u548cPostgres\u7684\u6027\u80fd\uff0c\u5c06OtterTune\u9009\u62e9\u7684\u6700\u4f73\u914d\u7f6e\u4e0e\u4e0b\u5217\u914d\u7f6e\u8fdb\u884c\u4e86\u6bd4\u8f83\uff1a<\/p>\n