{"id":87403,"date":"2024-01-24T10:03:13","date_gmt":"2024-01-24T02:03:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=87403"},"modified":"2024-01-24T10:03:13","modified_gmt":"2024-01-24T02:03:13","slug":"automation-dbms","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/automation-dbms.html","title":{"rendered":"\u673a\u5668\u5b66\u4e60\u81ea\u52a8\u5316\u8fd0\u7ef4 DBMS"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u672c\u6587\u662f\u5361\u8010\u57fa\u6885\u9686\u5927\u5b66\u7684 Dana Van Aken\u3001Andy Pavlo \u548c Geoff Gordon \u6240\u5199\u3002\u8fd9\u4e2a\u9879\u76ee\u5c55\u793a\u4e86\u5b66\u672f\u7814\u7a76\u4eba\u5458\u5982\u4f55\u5229\u7528 AWS Cloud Credits for Research Program \u6765\u52a9\u529b\u4ed6\u4eec\u7684\u79d1\u6280\u7a81\u7834\u7684\u3002 \n<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\u662f\u4efb\u4f55\u6570\u636e\u5bc6\u96c6\u5e94\u7528\u7684\u5173\u952e\u90e8\u5206\u3002\u5b83\u4eec\u53ef\u4ee5\u5904\u7406\u5927\u91cf\u6570\u636e\u548c\u590d\u6742\u7684\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u4f46\u540c\u65f6\u4e5f\u96be\u4ee5\u7ba1\u7406\uff0c\u56e0\u4e3a\u6709\u6210\u767e\u4e0a\u5343\u4e2a\u201c\u65cb\u94ae\u201d\uff08\u5373\u914d\u7f6e\u53d8\u91cf\uff09\u63a7\u5236\u7740\u5404\u79cd\u8981\u7d20\uff0c\u6bd4\u5982\u8981\u4f7f\u7528\u591a\u5c11\u5185\u5b58\u505a\u7f13\u5b58\u548c\u5199\u5165\u78c1\u76d8\u7684\u9891\u7387\u3002\u7ec4\u7ec7\u673a\u6784\u7ecf\u5e38\u8981\u96c7\u4f63\u4e13\u5bb6\u6765\u505a\u8c03\u4f18\uff0c\u800c\u4e13\u5bb6\u5bf9\u5f88\u591a\u7ec4\u7ec7\u6765\u8bf4\u592a\u8fc7\u6602\u8d35\u4e86\u3002\u5361\u8010\u57fa\u6885\u9686\u5927\u5b66\u6570\u636e\u5e93\u7814\u7a76\u7ec4\u7684\u5b66\u751f\u548c\u7814\u7a76\u4eba\u5458\u5728\u5f00\u53d1\u4e00\u4e2a\u65b0\u7684\u5de5\u5177\uff0c\u540d\u4e3a OtterTune\uff0c\u53ef\u4ee5\u81ea\u52a8\u4e3a DBMS \u7684\u201c\u65cb\u94ae\u201d\u627e\u5230\u5408\u9002\u7684\u8bbe\u7f6e\u3002\u5de5\u5177\u7684\u76ee\u7684\u662f\u8ba9\u4efb\u4f55\u4eba\u90fd\u53ef\u4ee5\u90e8\u7f72 DBMS\uff0c\u5373\u4f7f\u6ca1\u6709\u4efb\u4f55\u6570\u636e\u5e93\u7ba1\u7406\u4e13\u957f\u3002<\/p>\n OtterTune \u8ddf\u5176\u4ed6 DBMS \u8bbe\u7f6e\u5de5\u5177\u4e0d\u540c\uff0c\u56e0\u4e3a\u5b83\u662f\u5229\u7528\u5bf9\u4ee5\u524d\u7684 DBMS \u8c03\u4f18\u77e5\u8bc6\u6765\u8c03\u4f18\u65b0\u7684 DBMS\uff0c\u8fd9\u663e\u8457\u964d\u4f4e\u4e86\u6240\u8017\u65f6\u95f4\u548c\u8d44\u6e90\u3002OtterTune \u901a\u8fc7\u7ef4\u62a4\u4e00\u4e2a\u4e4b\u524d\u8c03\u4f18\u79ef\u7d2f\u7684\u77e5\u8bc6\u5e93\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u8fd9\u4e9b\u79ef\u7d2f\u7684\u6570\u636e\u7528\u6765\u6784\u5efa\u673a\u5668\u5b66\u4e60\uff08ML\uff09\u6a21\u578b\uff0c\u53bb\u6355\u83b7 DBMS \u5bf9\u4e0d\u540c\u7684\u8bbe\u7f6e\u7684\u53cd\u5e94\u3002OtterTune \u5229\u7528\u8fd9\u4e9b\u6a21\u578b\u6307\u5bfc\u65b0\u7684\u5e94\u7528\u7a0b\u5e8f\u5b9e\u9a8c\uff0c\u5bf9\u63d0\u5347\u6700\u7ec8\u76ee\u6807\uff08\u6bd4\u5982\u964d\u4f4e\u5ef6\u8fdf\u548c\u589e\u52a0\u541e\u5410\u91cf\uff09\u7ed9\u51fa\u5efa\u8bae\u7684\u914d\u7f6e\u3002<\/p>\n \u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba OtterTune \u7684\u6bcf\u4e00\u4e2a\u673a\u5668\u5b66\u4e60\u6d41\u6c34\u7ebf\u7ec4\u4ef6\uff0c\u4ee5\u53ca\u5b83\u4eec\u662f\u5982\u4f55\u4e92\u52a8\u4ee5\u4fbf\u8c03\u4f18 DBMS \u7684\u8bbe\u7f6e\u3002\u7136\u540e\uff0c\u6211\u4eec\u8bc4\u4f30 OtterTune \u5728 MySQL \u548c Postgres \u4e0a\u7684\u8c03\u4f18\u8868\u73b0\uff0c\u5c06\u5b83\u7684\u6700\u4f18\u914d\u7f6e\u4e0e DBA \u548c\u5176\u4ed6\u81ea\u52a8\u8c03\u4f18\u5de5\u5177\u8fdb\u884c\u5bf9\u6bd4\u3002<\/p>\n OtterTune \u662f\u5361\u8010\u57fa\u6885\u9686\u5927\u5b66\u6570\u636e\u5e93\u7814\u7a76\u7ec4\u7684\u5b66\u751f\u548c\u7814\u7a76\u4eba\u5458\u5f00\u53d1\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u6240\u6709\u7684\u4ee3\u7801\u90fd\u6258\u7ba1\u5728 Github \u4e0a\uff0c\u4ee5 Apache License 2.0 \u8bb8\u53ef\u8bc1\u53d1\u5e03\u3002<\/p>\n OtterTune \u5de5\u4f5c\u539f\u7406<\/strong><\/div>\n \u4e0b\u56fe\u662f OtterTune \u7ec4\u4ef6\u548c\u5de5\u4f5c\u6d41\u7a0b<\/p>\n <\/p>\n \u8c03\u4f18\u8fc7\u7a0b\u5f00\u59cb\uff0c\u7528\u6237\u544a\u77e5 OtterTune \u8981\u8c03\u4f18\u7684\u6700\u7ec8\u76ee\u6807\uff08\u6bd4\u5982\uff0c\u5ef6\u8fdf\u6216\u541e\u5410\u91cf\uff09\uff0c\u5ba2\u6237\u7aef\u63a7\u5236\u5668\u7a0b\u5e8f\u8fde\u63a5\u76ee\u6807 DBMS\uff0c\u6536\u96c6 Amazon EC2 \u5b9e\u4f8b\u7c7b\u578b\u548c\u5f53\u524d\u914d\u7f6e\u3002<\/p>\n \u7136\u540e\uff0c\u63a7\u5236\u5668\u542f\u52a8\u9996\u6b21\u89c2\u5bdf\u671f\uff0c\u6765\u89c2\u5bdf\u5e76\u8bb0\u5f55\u6700\u7ec8\u76ee\u6807\u3002\u89c2\u5bdf\u7ed3\u675f\u540e\uff0c\u63a7\u5236\u5668\u6536\u96c6 DBMS \u7684\u5185\u90e8\u6307\u6807\uff0c\u6bd4\u5982 MySQL \u78c1\u76d8\u9875\u8bfb\u53d6\u548c\u5199\u5165\u7684\u8ba1\u6570\u3002\u63a7\u5236\u5668\u5c06\u8fd9\u4e9b\u6570\u636e\u8fd4\u56de\u7ed9\u8c03\u4f18\u7ba1\u7406\u5668\u7a0b\u5e8f\u3002<\/p>\n OtterTune \u7684\u8c03\u4f18\u7ba1\u7406\u5668\u5c06\u63a5\u6536\u5230\u7684\u6307\u6807\u6570\u636e\u4fdd\u5b58\u5230\u77e5\u8bc6\u5e93\u3002OtterTune \u7528\u8fd9\u4e9b\u7ed3\u679c\u8ba1\u7b97\u51fa\u76ee\u6807 DBMS \u7684\u4e0b\u4e00\u4e2a\u914d\u7f6e\uff0c\u8fde\u540c\u9884\u4f30\u7684\u6027\u80fd\u63d0\u5347\uff0c\u8fd4\u56de\u7ed9\u63a7\u5236\u5668\u3002\u7528\u6237\u53ef\u4ee5\u51b3\u5b9a\u662f\u5426\u7ee7\u7eed\u6216\u7ec8\u6b62\u8c03\u4f18\u8fc7\u7a0b\u3002<\/p>\n \u6ce8\u610f<\/strong><\/div>\n OtterTune \u5bf9\u6bcf\u4e2a\u652f\u6301\u7684 DBMS \u7248\u672c\u7ef4\u62a4\u4e86\u4e00\u4efd\u201c\u65cb\u94ae\u201d\u9ed1\u540d\u5355\uff0c\u5305\u62ec\u4e86\u5bf9\u8c03\u4f18\u65e0\u5173\u7d27\u8981\u7684\u90e8\u5206\uff08\u6bd4\u5982\u4fdd\u5b58\u6570\u636e\u6587\u4ef6\u7684\u8def\u5f84\uff09\uff0c\u6216\u8005\u90a3\u4e9b\u4f1a\u4ea7\u751f\u4e25\u91cd\u6216\u9690\u6027\u540e\u679c\uff08\u6bd4\u5982\u4e22\u6570\u636e\uff09\u7684\u90e8\u5206\u3002\u8c03\u4f18\u8fc7\u7a0b\u5f00\u59cb\u65f6\uff0cOtterTune \u4f1a\u5411\u7528\u6237\u63d0\u4f9b\u8fd9\u4efd\u9ed1\u540d\u5355\uff0c\u7528\u6237\u53ef\u4ee5\u6dfb\u52a0\u4ed6\u4eec\u5e0c\u671b OtterTune \u907f\u5f00\u7684\u5176\u5b83\u201c\u65cb\u94ae\u201d\u3002<\/p>\n OtterTune \u6709\u4e00\u4e9b\u9884\u5b9a\u5047\u8bbe\uff0c\u5bf9\u67d0\u4e9b\u7528\u6237\u53ef\u80fd\u4f1a\u9020\u6210\u4e00\u5b9a\u7684\u9650\u5236\u3002\u6bd4\u5982\uff0c\u5b83\u5047\u8bbe\u7528\u6237\u62e5\u6709\u7ba1\u7406\u5458\u6743\u9650\uff0c\u4ee5\u4fbf\u63a7\u5236\u5668\u6765\u4fee\u6539 DBMS \u914d\u7f6e\u3002\u5426\u5219\uff0c\u7528\u6237\u5fc5\u987b\u5728\u5176\u4ed6\u786c\u4ef6\u4e0a\u90e8\u7f72\u4e00\u4efd\u6570\u636e\u5e93\u62f7\u8d1d\u7ed9 OtterTune \u505a\u8c03\u4f18\u5b9e\u9a8c\u3002\u8fd9\u8981\u6c42\u7528\u6237\u6216\u8005\u91cd\u73b0\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u6216\u8005\u8f6c\u53d1\u751f\u4ea7 DBMS \u7684\u67e5\u8be2\u3002\u5b8c\u6574\u7684\u9884\u8bbe\u548c\u9650\u5236\u8bf7\u770b\u6211\u4eec\u7684\u8bba\u6587 \u3002<\/p>\n \u673a\u5668\u5b66\u4e60\u6d41\u6c34\u7ebf<\/strong><\/div>\n \u4e0b\u56fe\u662f OtterTune ML \u6d41\u6c34\u7ebf\u5904\u7406\u6570\u636e\u7684\u8fc7\u7a0b\uff0c\u6240\u6709\u7684\u89c2\u5bdf\u7ed3\u679c\u90fd\u4fdd\u5b58\u5728\u77e5\u8bc6\u5e93\u4e2d\u3002<\/p>\n OtterTune \u5148\u5c06\u89c2\u5bdf\u6570\u636e\u8f93\u9001\u5230\u201c\u5de5\u4f5c\u6d41\u7279\u5f81\u5316\u7ec4\u4ef6\u201dWorkload Characterization component\uff0c\u8fd9\u4e2a\u7ec4\u4ef6\u53ef\u4ee5\u8bc6\u522b\u4e00\u5c0f\u90e8\u5206 DBMS \u6307\u6807\uff0c\u8fd9\u4e9b\u6307\u6807\u80fd\u6700\u6709\u6548\u5730\u6355\u6349\u5230\u6027\u80fd\u53d8\u5316\u548c\u4e0d\u540c\u5de5\u4f5c\u8d1f\u8f7d\u7684\u663e\u8457\u7279\u5f81\u3002<\/p>\n \u4e0b\u4e00\u6b65\uff0c\u201c\u65cb\u94ae\u8bc6\u522b\u7ec4\u4ef6\u201dKnob Identification component\u751f\u6210\u4e00\u4e2a\u65cb\u94ae\u6392\u5e8f\u8868\uff0c\u5305\u542b\u54ea\u4e9b\u5bf9 DBMS \u6027\u80fd\u5f71\u54cd\u6700\u5927\u7684\u65cb\u94ae\u3002OtterTune \u63a5\u7740\u628a\u6240\u6709\u8fd9\u4e9b\u4fe1\u606f\u201c\u5582\u201d\u7ed9\u81ea\u52a8\u8c03\u4f18\u5668Automatic Tuner\uff0c\u540e\u8005\u5c06\u76ee\u6807 DBMS \u7684\u5de5\u4f5c\u8d1f\u8f7d\u4e0e\u77e5\u8bc6\u5e93\u91cc\u6700\u63a5\u8fd1\u7684\u8d1f\u8f7d\u8fdb\u884c\u6620\u5c04\uff0c\u91cd\u65b0\u4f7f\u7528\u8fd9\u4efd\u8d1f\u8f7d\u6570\u636e\u6765\u751f\u6210\u66f4\u4f73\u7684\u914d\u7f6e\u3002<\/p>\n <\/p>\n \u6211\u4eec\u6765\u6df1\u5165\u6316\u6398\u4ee5\u4e0b\u673a\u5668\u5b66\u4e60\u6d41\u6c34\u7ebf\u7684\u6bcf\u4e2a\u7ec4\u4ef6\u3002<\/p>\n \u5de5\u4f5c\u8d1f\u8f7d\u7279\u5f81\u5316\uff1a OtterTune \u5229\u7528 DBMS \u7684\u5185\u90e8\u8fd0\u884c\u65f6\u6307\u6807\u6765\u7279\u5f81\u5316\u67d0\u4e2a\u5de5\u4f5c\u8d1f\u8f7d\u7684\u884c\u4e3a\uff0c\u8fd9\u4e9b\u6307\u6807\u7cbe\u786e\u5730\u4ee3\u8868\u4e86\u5de5\u4f5c\u8d1f\u8f7d\uff0c\u56e0\u4e3a\u5b83\u4eec\u6355\u83b7\u4e86\u8d1f\u8f7d\u7684\u591a\u4e2a\u65b9\u9762\u884c\u4e3a\u3002\u7136\u800c\uff0c\u5f88\u591a\u6307\u6807\u662f\u5197\u4f59\u7684\uff1a\u6709\u4e9b\u662f\u7528\u4e0d\u540c\u7684\u5355\u4f4d\u8868\u793a\u76f8\u540c\u7684\u5ea6\u91cf\u503c\uff0c\u5176\u4ed6\u7684\u8868\u793a DBMS \u7684\u4e00\u4e9b\u72ec\u7acb\u7ec4\u4ef6\uff0c\u4f46\u5b83\u4eec\u7684\u503c\u9ad8\u5ea6\u76f8\u5173\u3002\u68b3\u7406\u5197\u4f59\u5ea6\u91cf\u503c\u975e\u5e38\u91cd\u8981\uff0c\u53ef\u4ee5\u964d\u4f4e\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u590d\u6742\u5ea6\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u57fa\u4e8e\u76f8\u5173\u6027\u5c06 DBMS \u7684\u5ea6\u91cf\u503c\u96c6\u4e2d\u8d77\u6765\uff0c\u7136\u540e\u9009\u51fa\u5176\u4e2d\u6700\u5177\u4ee3\u8868\u6027\u7684\u4e00\u4e2a\uff0c\u5177\u4f53\u8bf4\u5c31\u662f\u6700\u63a5\u8fd1\u4e2d\u95f4\u503c\u7684\u3002\u673a\u5668\u5b66\u4e60\u7684\u540e\u7eed\u7ec4\u4ef6\u5c06\u4f7f\u7528\u8fd9\u4e9b\u5ea6\u91cf\u503c\u3002<\/p>\n \u65cb\u94ae\u8bc6\u522b\uff1a DBMS \u53ef\u4ee5\u6709\u51e0\u767e\u4e2a\u65cb\u94ae\uff0c\u4f46\u53ea\u6709\u4e00\u90e8\u5206\u5f71\u54cd\u6027\u80fd\u3002OtterTune \u4f7f\u7528\u4e00\u79cd\u6d41\u884c\u7684\u201c\u7279\u6027-\u9009\u62e9\u201d\u6280\u672f\uff0c\u53eb\u505a Lasso\uff0c\u6765\u5224\u65ad\u54ea\u4e9b\u65cb\u94ae\u5bf9\u7cfb\u7edf\u7684\u6574\u4f53\u6027\u80fd\u5f71\u54cd\u6700\u5927\u3002\u7528\u8fd9\u4e2a\u6280\u672f\u5904\u7406\u77e5\u8bc6\u5e93\u4e2d\u7684\u6570\u636e\uff0cOtterTune \u5f97\u4ee5\u786e\u5b9a DBMS \u65cb\u94ae\u7684\u91cd\u8981\u6027\u987a\u5e8f\u3002<\/p>\n \u63a5\u7740\uff0cOtterTune \u5fc5\u987b\u51b3\u5b9a\u5728\u505a\u51fa\u914d\u7f6e\u5efa\u8bae\u65f6\u4f7f\u7528\u591a\u5c11\u4e2a\u65cb\u94ae\uff0c\u65cb\u94ae\u7528\u7684\u592a\u591a\u4f1a\u660e\u663e\u589e\u52a0 OtterTune \u7684\u8c03\u4f18\u65f6\u95f4\uff0c\u800c\u65cb\u94ae\u7528\u7684\u592a\u5c11\u5219\u96be\u4ee5\u627e\u5230\u6700\u597d\u7684\u914d\u7f6e\u3002OtterTune \u7528\u4e86\u4e00\u4e2a\u589e\u91cf\u65b9\u6cd5\u6765\u81ea\u52a8\u5316\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u5728\u4e00\u6b21\u8c03\u4f18\u8fc7\u7a0b\u4e2d\uff0c\u9010\u6b65\u589e\u52a0\u4f7f\u7528\u7684\u65cb\u94ae\u3002\u8fd9\u4e2a\u65b9\u6cd5\u8ba9 OtterTune \u53ef\u4ee5\u5148\u7528\u5c11\u91cf\u6700\u91cd\u8981\u7684\u65cb\u94ae\u6765\u63a2\u7d22\u5e76\u8c03\u4f18\u914d\u7f6e\uff0c\u7136\u540e\u518d\u6269\u5927\u8303\u56f4\u8003\u8651\u5176\u4ed6\u65cb\u94ae\u3002<\/p>\n \u81ea\u52a8\u8c03\u4f18\u5668\uff1a \u81ea\u52a8\u8c03\u4f18\u5668\u7ec4\u4ef6\u5728\u6bcf\u6b21\u89c2\u5bdf\u9636\u6bb5\u540e\uff0c\u901a\u8fc7\u4e24\u6b65\u5206\u6790\u6cd5\u6765\u51b3\u5b9a\u63a8\u8350\u54ea\u4e2a\u914d\u7f6e\u3002<\/p>\n \u9996\u5148\uff0c\u7cfb\u7edf\u4f7f\u7528\u5de5\u4f5c\u8d1f\u8f7d\u7279\u5f81\u5316\u7ec4\u4ef6\u627e\u5230\u7684\u6027\u80fd\u6570\u636e\u6765\u786e\u8ba4\u4e0e\u5f53\u524d\u7684\u76ee\u6807 DBMS \u5de5\u4f5c\u8d1f\u8f7d\u6700\u63a5\u8fd1\u7684\u5386\u53f2\u8c03\u4f18\u8fc7\u7a0b\uff0c\u6bd4\u8f83\u4e24\u8005\u7684\u5ea6\u91cf\u503c\u4ee5\u786e\u8ba4\u54ea\u4e9b\u503c\u5bf9\u4e0d\u540c\u7684\u65cb\u94ae\u8bbe\u7f6e\u6709\u76f8\u4f3c\u7684\u53cd\u5e94\u3002<\/p>\n \u7136\u540e\uff0cOtterTune \u5c1d\u8bd5\u53e6\u4e00\u4e2a\u65cb\u94ae\u914d\u7f6e\uff0c\u5c06\u4e00\u4e2a\u7edf\u8ba1\u6a21\u578b\u5e94\u7528\u5230\u6536\u96c6\u7684\u6570\u636e\uff0c\u4ee5\u53ca\u77e5\u8bc6\u5e93\u4e2d\u6700\u8d34\u8fd1\u7684\u5de5\u4f5c\u8d1f\u8f7d\u6570\u636e\u3002\u8fd9\u4e2a\u6a21\u578b\u8ba9 OtterTune \u9884\u6d4b DBMS \u5728\u6bcf\u4e2a\u53ef\u80fd\u7684\u914d\u7f6e\u4e0b\u7684\u8868\u73b0\u3002OtterTune \u8c03\u4f18\u4e0b\u4e00\u4e2a\u914d\u7f6e\uff0c\u5728\u63a2\u7d22\uff08\u6536\u96c6\u7528\u6765\u6539\u8fdb\u6a21\u578b\u7684\u4fe1\u606f\uff09\u548c\u5229\u7528\uff08\u8d2a\u5a6a\u5730\u63a5\u8fd1\u76ee\u6807\u5ea6\u91cf\u503c\uff09\u4e4b\u95f4\u4ea4\u66ff\u8fdb\u884c\u3002<\/p>\n \u5b9e\u73b0<\/strong><\/div>\n OtterTune \u7528 Python \u7f16\u5199\u3002<\/p>\n \u5bf9\u4e8e\u5de5\u4f5c\u8d1f\u8f7d\u7279\u5f81\u5316\u548c\u65cb\u94ae\u8bc6\u522b\u7ec4\u4ef6\uff0c\u8fd0\u884c\u65f6\u6027\u80fd\u4e0d\u662f\u7740\u91cd\u8003\u8651\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u7528 scikit-learn\u5b9e\u73b0\u5bf9\u5e94\u7684\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u3002\u8fd9\u4e9b\u7b97\u6cd5\u8fd0\u884c\u5728\u540e\u53f0\u8fdb\u7a0b\u4e2d\uff0c\u628a\u65b0\u751f\u6210\u7684\u6570\u636e\u5438\u6536\u5230\u77e5\u8bc6\u5e93\u91cc\u3002<\/p>\n \u5bf9\u4e8e\u81ea\u52a8\u8c03\u4f18\u7ec4\u4ef6\uff0c\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\u5c31\u975e\u5e38\u5173\u952e\u4e86\u3002\u6bcf\u6b21\u89c2\u5bdf\u9636\u6bb5\u5b8c\u6210\u540e\u5c31\u9700\u8981\u8fd0\u884c\uff0c\u5438\u6536\u65b0\u6570\u636e\u4ee5\u4fbf OtterTune \u6311\u9009\u4e0b\u4e00\u4e2a\u65cb\u94ae\u6765\u8fdb\u884c\u6d4b\u8bd5\u3002\u7531\u4e8e\u9700\u8981\u8003\u8651\u6027\u80fd\uff0c\u6211\u4eec\u7528 TensorFlow\u6765\u5b9e\u73b0\u3002<\/p>\n \u4e3a\u4e86\u6536\u96c6 DBMS \u7684\u786c\u4ef6\u3001\u65cb\u94ae\u914d\u7f6e\u548c\u8fd0\u884c\u65f6\u6027\u80fd\u6307\u6807\uff0c\u6211\u4eec\u628a OLTP-Bench \u57fa\u51c6\u6d4b\u8bd5\u6846\u67b6\u96c6\u6210\u5230 OtterTune \u7684\u63a7\u5236\u5668\u5185\u3002<\/p>\n \u5b9e\u9a8c\u8bbe\u8ba1<\/strong><\/div>\n \u6211\u4eec\u6bd4\u8f83\u4e86 OtterTune \u5bf9 MySQL \u548c Postgres \u505a\u51fa\u7684\u6700\u4f73\u914d\u7f6e\u4e0e\u5982\u4e0b\u914d\u7f6e\u65b9\u6848\u8fdb\u884c\u4e86\u6bd4\u8f83\uff0c\u4ee5\u4fbf\u8bc4\u4f30\uff1a<\/p>\n \u9ed8\u8ba4\uff1a DBMS \u521d\u59cb\u914d\u7f6e \u5de5\u4f5c\u8d1f\u8f7d\u7528\u7684\u662f TPC-C\uff0c\u8fd9\u662f\u8bc4\u4f30\u8054\u673a\u4ea4\u6613\u7cfb\u7edf\u6027\u80fd\u7684\u5de5\u4e1a\u6807\u51c6\u3002<\/p>\n \u8bc4\u4f30<\/strong><\/div>\n \u6211\u4eec\u7ed9\u6bcf\u4e2a\u5b9e\u9a8c\u4e2d\u7684\u6570\u636e\u5e93 \u2014\u2014 MySQL \u548c Postgres \u2014\u2014 \u6d4b\u91cf\u4e86\u5ef6\u8fdf\u548c\u541e\u5410\u91cf\uff0c\u4e0b\u9762\u7684\u56fe\u8868\u663e\u793a\u4e86\u7ed3\u679c\u3002\u7b2c\u4e00\u4e2a\u56fe\u8868\u663e\u793a\u4e86\u201c\u7b2c99\u767e\u5206\u4f4d\u5ef6\u8fdf\u201d\u7684\u6570\u91cf\uff0c\u4ee3\u8868\u201c\u6700\u5dee\u60c5\u51b5\u4e0b\u201d\u5b8c\u6210\u4e00\u4e2a\u4e8b\u52a1\u7684\u65f6\u957f\u3002\u7b2c\u4e8c\u4e2a\u56fe\u8868\u663e\u793a\u4e86\u541e\u5410\u91cf\u7ed3\u679c\uff0c\u4ee5\u5e73\u5747\u6bcf\u79d2\u6267\u884c\u7684\u4e8b\u52a1\u6570\u6765\u8861\u91cf\u3002<\/p>\n MySQL \u5b9e\u9a8c\u7ed3\u679c<\/strong><\/div>\n OtterTune \u751f\u6210\u7684\u6700\u4f73\u914d\u7f6e\u4e0e\u8c03\u4f18\u811a\u672c\u548c RDS \u7684\u914d\u7f6e\u76f8\u6bd4\uff0cOtterTune \u8ba9 MySQL \u7684\u5ef6\u8fdf\u4e0b\u964d\u4e86\u5927\u7ea6 60%\uff0c\u541e\u5410\u91cf\u63d0\u5347\u4e86 22% \u5230 35%\u3002OtterTune \u8fd8\u751f\u6210\u4e86\u4e00\u4efd\u51e0\u4e4e\u8ddf DBA \u4e00\u6837\u597d\u7684\u914d\u7f6e\u3002<\/p>\n <\/p>\n \u5728 TPC-C \u8d1f\u8f7d\u4e0b\uff0c\u53ea\u6709\u51e0\u4e2a MySQL \u7684\u65cb\u94ae\u663e\u8457\u5f71\u54cd\u6027\u80fd\u3002OtterTune \u548c DBA \u7684\u914d\u7f6e\u7ed9\u8fd9\u51e0\u4e2a\u65cb\u94ae\u8bbe\u7f6e\u4e86\u5f88\u597d\u7684\u503c\u3002RDS \u8868\u73b0\u7565\u900a\u4e00\u7b79\uff0c\u56e0\u4e3a\u7ed9\u4e00\u4e2a\u65cb\u94ae\u914d\u7f6e\u4e86\u6b20\u4f73\u7684\u503c\u3002\u8c03\u4f18\u811a\u672c\u8868\u73b0\u6700\u5dee\uff0c\u56e0\u4e3a\u53ea\u4fee\u6539\u4e00\u4e2a\u65cb\u94ae\u3002<\/p>\n Postgres \u5b9e\u9a8c\u7ed3\u679c<\/strong><\/div>\n <\/p>\n \u5728\u5ef6\u8fdf\u65b9\u9762\uff0c\u76f8\u6bd4 Postgres \u9ed8\u8ba4\u914d\u7f6e\uff0cOtterTune\u3001\u8c03\u4f18\u5de5\u5177\u3001DBA \u548c RDS \u7684\u914d\u7f6e\u83b7\u5f97\u4e86\u8fd1\u4f3c\u7684\u63d0\u5347\u3002\u6211\u4eec\u5927\u6982\u53ef\u4ee5\u628a\u8fd9\u5f52\u4e8e OLTP-Bench \u5ba2\u6237\u7aef\u548c DBMS \u4e4b\u95f4\u7684\u7f51\u7edc\u5f00\u9500\u3002\u541e\u5410\u91cf\u65b9\u9762\uff0cPostgres \u5728 OtterTune \u7684\u914d\u7f6e\u4e0b\u6bd4 DBA \u548c\u8c03\u4f18\u811a\u672c\u8981\u9ad8 12%\uff0c\u6bd4 RDS \u8981\u9ad8 32%\u3002<\/p>\n \u7ed3\u675f\u8bed<\/strong><\/div>\n OtterTune \u5c06\u5bfb\u627e DBMS \u914d\u7f6e\u65cb\u94ae\u7684\u6700\u4f18\u503c\u8fd9\u4e00\u8fc7\u7a0b\u81ea\u52a8\u5316\u4e86\u3002\u5b83\u901a\u8fc7\u91cd\u7528\u4e4b\u524d\u7684\u8c03\u4f18\u8fc7\u7a0b\u6536\u96c6\u7684\u8bad\u7ec3\u6570\u636e\uff0c\u6765\u8c03\u4f18\u65b0\u90e8\u7f72\u7684 DBMS\u3002\u56e0\u4e3a OtterTune \u4e0d\u9700\u8981\u751f\u6210\u521d\u59cb\u5316\u6570\u636e\u96c6\u6765\u8bad\u7ec3\u5b83\u7684\u673a\u5668\u5b66\u4e60\u6a21\u578b\uff0c\u8c03\u4f18\u65f6\u95f4\u5f97\u4ee5\u5927\u5927\u51cf\u5c11\u3002<\/p>\n \u4e0b\u4e00\u6b65\u4f1a\u600e\u4e48\u6837\uff1f \u4e3a\u4e86\u987a\u5e94\u7684\u8d8a\u6765\u8d8a\u6d41\u884c\u7684 DBaaS \uff08\u8fdc\u7a0b\u767b\u5f55 DBMS \u4e3b\u673a\u662f\u4e0d\u53ef\u80fd\u7684\uff09\uff0cOtterTune \u4f1a\u5f88\u5feb\u80fd\u591f\u81ea\u52a8\u63a2\u67e5\u76ee\u6807 DBMS \u7684\u786c\u4ef6\u80fd\u529b\uff0c\u800c\u4e0d\u9700\u8981\u8fdc\u7a0b\u767b\u5f55\u3002<\/p>\n \u60f3\u4e86\u89e3 OtterTune \u7684\u8be6\u7ec6\u8d44\u6599\uff0c\u8bf7\u67e5\u770b\u6211\u4eec\u7684\u8bba\u6587\u548c GitHub \u4e0a\u7684\u4ee3\u7801\u3002\u5173\u6ce8\u8fd9\u4e2a\u7f51\u7ad9\uff0c\u6211\u4eec\u5c06\u5f88\u5feb\u8ba9 OtterTune \u6210\u4e3a\u4e00\u4e2a\u5728\u7ebf\u8c03\u4f18\u670d\u52a1\u3002<\/p>\n \n |