{"id":71565,"date":"2023-09-19T18:31:12","date_gmt":"2023-09-19T10:31:12","guid":{"rendered":"http:\/\/gulass.cn\/?p=71565"},"modified":"2023-09-19T18:31:12","modified_gmt":"2023-09-19T10:31:12","slug":"cmu-ai-dba","status":"publish","type":"post","link":"https:\/\/gulass.cn\/cmu-ai-dba.html","title":{"rendered":"DBA\u9762\u4e34AI\u7684\u6311\u6218"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4f18\u79c0\u7684\u6570\u636e\u5e93\u7ba1\u7406\u5458DBA\uff0c\u539f\u672c\u53ef\u4ee5\u9760\u81ea\u5df1\u7684\u672c\u4e8b\uff0c\u4eab\u53d7\u9ad8\u85aa\uff0c\u53ef\u662f\uff0c\u597d\u666f\u4e0d\u957f\u4e86\uff0c\u56e0\u4e3a\u5373\u4fbf\u662f\u8d44\u8d28\u5e73\u5e73\u7684DBA\uff0c\u4ee5\u540e\u501f\u52a9AI\u7684\u529b\u91cf\uff0c\u4e5f\u80fd\u77ac\u95f4\u8fbe\u5230\u4f18\u79c0DBA\u7684\u6c34\u5e73\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u6700\u8fd1\u6765\u81ea\u5361\u8010\u57fa\u6885\u9686\u6570\u636e\u5e93\u5c0f\u7ec4\u7684\u6700\u65b0\u7814\u7a76\u6210\u679c\uff0c\u4ed6\u4eec\u6b63\u7528\u6700\u65b0\u7684\u6df1\u5ea6\u5b66\u4e60\u6280\u672f\uff0c\u5b8c\u6210\u6570\u636e\u5e93\u7684\u8c03\u4f18\u5de5\u4f5c\u3002<\/p>\n \u5982\u679c\u8fd9\u9879\u6280\u672f\u5728\u672a\u6765\u8fdb\u4e00\u6b65\u666e\u53ca\uff0c\u90a3\u4e48\uff0c\u5f88\u65e0\u5948\uff0c\u8fd9\u4e2a\u884c\u4e1a\u4e0d\u5f97\u4e0d\u63a5\u53d7AI\u5bf9\u4e8e\u4eba\u5458\u7ed3\u6784\u7684\u6539\u9020\u3002<\/p>\n DBA\u8fce\u6765\u65b0\u7684\u9769\u547d<\/strong><\/div>\n \u5361\u5185\u57fa\u00b7\u6885\u9686\u5927\u5b66\u6570\u636e\u5e93\u5c0f\u7ec4\u91c7\u7528\u673a\u5668\u5b66\u4e60\u5b9e\u73b0\u4e86\u6570\u636e\u5e93\u7684\u81ea\u52a8\u5316\u7ba1\u7406\uff0c\u5176\u5728\u7ebf\u7248\u7684\u81ea\u52a8\u5316\u7ba1\u7406\u670d\u52a1 OtterTune \u7a0d\u540e\u5373\u4f1a\u4e0a\u7ebf\u3002<\/p>\n OtterTune \u6240\u8981\u89e3\u51b3\u7684\u662f\u6570\u636e\u5e93\u7ba1\u7406\u4e2d\u6700\u4e3a\u7e41\u6742\u7684\u95ee\u9898\uff1a\u8bf8\u5982\u7f13\u5b58\u5927\u5c0f\u5206\u914d\u3001\u5199\u5165\u9891\u7387\u7ba1\u7406\u7b49\u56e0\u7d20\u5728\u5185\u7684\u6570\u767e\u9879\u53c2\u6570\u7684\u52a8\u6001\u8bbe\u7f6e\u3002\u8fc7\u53bb\uff0c\u8fd9\u9879\u5de5\u4f5c\u53ea\u80fd\u7531\u7ecf\u9a8c\u4e30\u5bcc\u7684\u6570\u636e\u5e93\u4e13\u5bb6\u624b\u52a8\u6765\u5b8c\u6210\u3002<\/p>\n \u8fd9\u5176\u4e2d\u91c7\u7528\u4e86\u600e\u6837\u7684\u539f\u7406\u5462\uff1f<\/p>\n OtterTune \u5230\u5e95\u7528\u4e86\u4ec0\u4e48\u539f\u7406\uff1f<\/strong><\/div>\n \u91c7\u7528\u673a\u5668\u5b66\u4e60\u540e\uff0cOtterTune \u628a\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\u7684\u5de5\u4f5c\u6d41\u7a0b\u53d8\u6210\u8fd9\u6837\uff1a<\/p>\n <\/p>\n \u4e00\u5f00\u59cb\uff0cOtterTune \u9700\u8981\u88ab\u544a\u77e5\u660e\u786e\u7684\u4f18\u5316\u76ee\u6807\uff0c\u5982\u5ef6\u8fdf\u3001\u541e\u5410\u91cf\u7b49\uff1b\u5176\u5ba2\u6237\u7aef Controller \u4f1a\u81ea\u52a8\u5173\u8054\u76ee\u6807 DBMS \u53ca\u5176\u4e9a\u9a6c\u900a EC2 \u526f\u672c\u7684\u7c7b\u578b\u4e0e\u5f53\u524d\u8bbe\u7f6e\u3002<\/p>\n \u800c\u540e\uff0cController \u4fbf\u5f00\u542f\u7b2c\u4e00\u4e2a\u89c2\u5bdf\u5468\u671f\uff0c\u89c2\u5bdf DBMS \u5e76\u8bb0\u5f55\u76ee\u6807\u9879\u3002\u89c2\u5bdf\u7ed3\u675f\u65f6\uff0cController \u4f1a\u641c\u96c6\u597d DBMS \u7684\u5185\u90e8\u53c2\u6570\uff0c\u5e76\u5c06\u5b83\u548c\u76ee\u6807\u9879\u53d1\u9001\u7ed9 Tuning Manager\u3002<\/p>\n \u6536\u5230\u53c2\u6570\u540e\uff0cTuning Manager \u4fbf\u628a\u5b83\u4eec\u5b58\u50a8\u5165\u5e93\u3002OtterTune \u7528\u8fd9\u4e9b\u53c2\u6570\u8ba1\u7b97\u51fa DBMS \u7684\u76ee\u6807\u914d\u7f6e\uff0c\u5e76\u5c06\u5176\u53d1\u56de\u81f3 Controller\uff0cController \u90e8\u7f72\u5e76\u8fd0\u884c\u65b0\u7684\u914d\u7f6e\uff0c\u4ee5\u63d0\u5347\u6570\u636e\u5e93\u6027\u80fd\u3002<\/p>\n \u7ba1\u7406\u4eba\u5458\u53ef\u968f\u65f6\u542f\u7528\u6216\u7ec8\u6b62 OtterTune \u670d\u52a1\u3002<\/p>\n \u7b80\u800c\u8a00\u4e4b\uff1a \u673a\u5668\u5b66\u4e60\u7684\u4f5c\u7528<\/strong><\/div>\n \u673a\u5668\u5b66\u4e60\u6a21\u5757\u5206\u4e3a\u4e09\u90e8\u5206\uff1a\u83b7\u53d6 Controller \u89c2\u5bdf\u5230\u7684\u5de5\u4f5c\u8d1f\u8f7d\u53c2\u6570\uff08Workload Characterization \u7ec4\u4ef6\uff09\uff0c\u8bc6\u522b\u5e76\u5b66\u4e60\u8fd9\u4e9b\u53c2\u6570\uff08Knob Identification \u7ec4\u4ef6\uff09\uff0c\u81ea\u52a8\u7ba1\u7406\u6570\u636e\u5e93\uff08Automatic Tuner \u7ec4\u4ef6\uff09\u3002<\/p>\n <\/p>\n \u4e0b\u9762\u4e00\u4e00\u6765\u8bf4\uff1a<\/p>\n Workload Characterization:<\/strong> OtterTune \u4f7f\u7528 DBMS \u7684\u5185\u90e8\u8fd0\u884c\u53c2\u6570\u6765\u63d0\u53d6\u6570\u636e\u5e93\u7684\u5de5\u4f5c\u8d1f\u8f7d\u7279\u5f81\u3002\u673a\u5668\u5b66\u4e60\u6a21\u5757\u4f7f\u7528\u805a\u7c7b\u65b9\u6cd5\u6765\u8861\u91cf\u8fd9\u4e9b\u53c2\u6570\u7684\u76f8\u5173\u6027\uff0c\u5c3d\u53ef\u80fd\u5730\u88c1\u526a\u53c2\u6570\u91cf\uff0c\u4ee5\u964d\u4f4e\u8ba1\u7b97\u7684\u590d\u6742\u7a0b\u5ea6\u3002<\/p>\n Knob Identification:<\/strong> \u8bc6\u522b\u5e76\u5b66\u4e60\u6570\u636e\u5e93\u53c2\u6570\uff0cOtterTune \u6240\u7528\u7684\u7279\u5f81\u9009\u53d6\u65b9\u6cd5\u662f Lasso\uff0c\u4ee5\u627e\u51fa\u5b83\u4eec\u7684\u91cd\u8981\u7a0b\u5ea6\u3002OtterTune \u636e\u6b64\u6765\u8ba1\u7b97 DBMS \u7684\u76ee\u6807\u914d\u7f6e\uff0c\u5b83\u4f7f\u7528\u4e00\u79cd\u589e\u91cf\u65b9\u6cd5\u6765\u627e\u51fa\u6570\u636e\u5e93\u7684\u6700\u4f73\u914d\u7f6e\u3002<\/p>\n Automatic Tuner:<\/strong> \u800c\u540e\u7684\u5de5\u4f5c\u5219\u4ea4\u7531 Automatic Tuner \u7ec4\u4ef6\u3002\u9996\u5148\uff0c\u5b83\u7528 Workload Characterization \u7ec4\u4ef6\u7684\u6027\u80fd\u6570\u636e\u6765\u786e\u5b9a DBMS \u7684\u76ee\u6807\u8d1f\u8f7d\uff1b\u800c\u540e\uff0c\u5b83\u4f1a\u9009\u62e9\u4e00\u7ec4\u4e0d\u540c\u7684\u914d\u7f6e\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n OtterTune \u7684\u76ee\u6807\u603b\u662f\u4f18\u5316\u4e0b\u4e00\u7ec4\u914d\u7f6e\uff0c\u5c3d\u53ef\u80fd\u5730\u641c\u96c6\u6570\u636e\u6765\u63d0\u5347\u6027\u80fd\uff0c\u800c\u975e\u7d27\u76ef\u4f4f\u76ee\u6807\u914d\u7f6e\u4e0d\u653e\u3002<\/p>\n OtterTune \u5728\u8bba\u6587\u4e2d\u6d4b\u8bd5\u4e86 MySQL \u548c Postgres \u8fd9\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u5ef6\u8fdf\u548c\u541e\u5410\u91cf\uff0c\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u4ece\u56fe\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u76f8\u6bd4\u4e8e MYSQL \u7ba1\u7406\u811a\u672c\uff0cOtterTune \u7684\u5ef6\u8fdf\u8981\u4f4e 60%\uff0c\u541e\u5410\u91cf\u5219\u80fd\u63d0\u5347 35%\u3002<\/p>\n <\/p>\n \u76f8\u6bd4\u4e8e Postgres \u7684\u9ed8\u8ba4\u914d\u7f6e\uff0cOtterTune \u4e0e\u5176\u4ed6\u65b9\u6cd5\u5728\u5ef6\u8fdf\u65b9\u9762\u7684\u63d0\u5347\u5927\u4f53\u76f8\u8fd1\uff1b\u4f46\u541e\u5410\u91cf\u65b9\u9762\uff0cOtterTune \u6bd4 DBA \u7684\u9009\u62e9\u8981\u597d 12%\u3002<\/p>\n <\/p>\n \u603b\u4f53\u6765\u770b\uff0cOtterTune\u53ef\u4ee5\u5728\u5ef6\u8fdf\u548c\u541e\u5410\u7b49\u6027\u80fd\u6307\u6807\u4e0a\u5927\u5e45\u9886\u5148\u4f20\u7edf\u7684\u81ea\u52a8\u5316\u914d\u7f6e\u811a\u672c\uff0c\u5e76\u63a5\u8fd1\u4e13\u4e1aDBA\u7684\u6c34\u5e73\u3002<\/p>\n \u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u884c\u4e1a\u9700\u8981AI\u6765\u6539\u9020\uff1fDBA\u7684\u65e5\u5e38\u5de5\u4f5c\u5230\u5e95\u6709\u54ea\u4e9b\u75db\u70b9\uff1f<\/p>\n \u8ba9\u6211\u4eec\u628a\u76ee\u5149\u62c9\u8fd1\uff0c\u770b\u770b\u8fd9\u4e2a\u884c\u4e1a\u5230\u5e95\u6709\u4ec0\u4e48\u95ee\u9898\u3002<\/p>\n \u76ee\u524d\u7684\u6570\u636e\u5e93\uff0c\u4e3b\u8981\u91c7\u7528\u4e13\u4e1a\u7684\u6570\u636e\u5e93\u7ba1\u7406\u5458\uff08\u4ee5\u4e0b\u79f0DBA\uff09\u6765\u8bbe\u8ba1\u6570\u636e\u7cfb\u7edf\u7684\u67b6\u6784\uff0c\u8c03\u4f18\u7b49\u3002\u4f46\u662f\uff0c\u7531\u4e8e\u4e1a\u52a1\u7cfb\u7edf\u6781\u5176\u590d\u6742\uff0c\u4e14\u968f\u7740\u4e1a\u52a1\u7684\u5feb\u901f\u8fed\u4ee3\uff0c\u9700\u8981\u6570\u636e\u5e93\u7cfb\u7edf\u80fd\u8ddf\u4e0a\u4e1a\u52a1\u7684\u8282\u594f\uff0c\u5feb\u901f\u54cd\u5e94\uff0c\u5feb\u901f\u66f4\u65b0\uff0c\u8fd9\u5c31\u5bfc\u81f4\u8c03\u4f18\u4efb\u52a1\u4e5f\u968f\u4e4b\u53d8\u5f97\u6781\u5176\u590d\u6742\u3002DBA\u9700\u8981\u7075\u6d3b\u638c\u63e1\u5404\u9879\u5f71\u54cd\u7cfb\u7edf\u6027\u80fd\u7684\u63a7\u5236\u56e0\u7d20\uff0c\u4e5f\u5fc5\u987b\u5bf9\u6570\u636e\u5e95\u5c42\uff0c\u751a\u81f3\u4f53\u7cfb\u7ed3\u6784\u90fd\u6709\u6df1\u5165\u4e86\u89e3\uff0c\u624d\u80fd\u5f88\u597d\u5730\u5b8c\u6210\u8c03\u4f18\u4efb\u52a1\u3002\u56e0\u6b64\uff0c\u771f\u6b63\u6ee1\u8db3\u4f18\u79c0\u7684DBA\u5c31\u975e\u5e38\u5c11\u4e86\uff0c\u800c\u4e14\u4ef7\u683c\u6602\u8d35\u3002 \u5361\u8010\u57fa\u6885\u9686\u7684\u6570\u636e\u5e93\u5c0f\u7ec4\u6574\u51fa\u6765\u7684\u8fd9\u4e2a\u65b0\u7814\u7a76\uff0c\u5c31\u662f\u8981\u901a\u8fc7\u4f7f\u7528AI\u6280\u672f\uff0c\u7b80\u5316\u4e86DBA\u5bf9\u4e8e\u6570\u636e\u5e93\u7cfb\u7edf\u7684\u8c03\u4f18\u8fc7\u7a0b\uff0c\u5373\u4fbf\u662f\u666e\u901a\u7684DBA\uff0c\u4e5f\u80fd\u8fbe\u5230\u3001\u751a\u81f3\u8d85\u8fc7\u4e13\u4e1aDBA\u8c03\u4f18\u7cfb\u7edf\u7684\u80fd\u529b\u3002<\/p>\n \u6240\u4ee5\uff0c\u4e00\u65e6AI\u5728\u6b64\u9886\u57df\u771f\u6b63\u5f00\u59cb\u53d1\u6325\u4f5c\u7528\uff0c\u4eba\u529b\u6210\u672c\u5c06\u5927\u5e45\u964d\u4f4e\uff0c\u5de5\u4f5c\u53c8\u80fd\u5feb\u901f\u54cd\u5e94\uff0c\u516c\u53f8\u518d\u4e5f\u4e0d\u4f1a\u56e0\u4e3a\u4e13\u4e1aDBA\u77ed\u7f3a\u800c\u5f71\u54cd\u4e1a\u52a1\u53d1\u5c55\u4e86\uff0c\u8fd9\u5c06\u662f\u516c\u53f8\u8001\u677f\u62cd\u624b\u79f0\u5feb\u7684\u5927\u597d\u4e8b\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.yunweipai.com\/archives\/19267.html<\/a><\/p>\n |