{"id":14818,"date":"2024-11-25T17:40:57","date_gmt":"2024-11-25T09:40:57","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=14818"},"modified":"2026-04-03T17:56:52","modified_gmt":"2026-04-03T09:56:52","slug":"dbaservice-sql%e6%89%a7%e8%a1%8c%e7%8a%b6%e6%80%81%e9%87%8a%e7%96%91","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=14818","title":{"rendered":"DBAService SQL\u6267\u884c\u72b6\u6001\u91ca\u7591"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\uff0cDBAService Query\u9875\u9762\uff0c\u6bcf\u79cdstatus\u7684\u72b6\u6001\u89e3\u91ca\uff0c\u4ee5\u53ca\u5e38\u89c1\u72b6\u6001\u5f02\u5e38\u95ee\u9898\u3002<\/p>\n<p>DBAService\u4e2d\u7684\u548cQuery\u76f8\u5173\uff0cServer\/Executor\u72b6\u6001\u7b49\u76d1\u63a7\u6570\u636e\u90fd\u662f\u6765\u81eaQuark Server\uff0cQuark Server\u901a\u8fc7leviathan-message\uff08\u5c01\u88c5\u4e86akka\u7684\u6d88\u606f\u6846\u67b6\uff09\u53d1\u9001\u76d1\u63a7\u57cb\u70b9\u6570\u636e\u7ed9DBAService\u3002<\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732503379088.png\" style=\"display: block;\">\n<\/div>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<h4>1. \u4e00\u4e2aQuery\u5e38\u89c1\u7684\u72b6\u6001\u6d41\u8f6c\u56fe<\/h4>\n<p><strong>\u573a\u666f1. \u666e\u901a\u7684\u67e5\u8be2\uff1a<\/strong><\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732501930587.png\" width=\"70%\" height=\"70%\" style=\"display: block;\">\n<\/div>\n<p><strong>\u573a\u666f2. PLSQL<\/strong><\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732502042794.png\" width=\"72%\" height=\"70%\" style=\"display: block;\">\n<\/div>\n<p><strong>\u573a\u666f3. \u4e00\u4e9b\u914d\u7f6e\u8bed\u53e5\u6216\u8005DDL\u8bed\u53e5\uff1a<\/strong><\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732502055229.png\" width=\"57%\" height=\"54%\" style=\"display: block;\">\n<\/div>\n<p><strong>\u4ee5\u4e0a\u975eSUCCESS\u72b6\u6001\u90fd\u53ef\u80fd\u4f1a\u6d41\u8f6c\u5230\u5f02\u5e38\u72b6\u6001\uff1a<\/strong><\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732502201445.png\" width=\"54%\" height=\"100%\" style=\"display: block;\">\n<\/div>\n<h4>2. ArgoDB\u4e2d\u4e00\u4e2aQuery\u6267\u884c\u7684\u5b8c\u6574\u751f\u547d\u5468\u671f<\/h4>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1732502827820.png\" style=\"display: block;\">\n<\/div>\n<p><strong>SUBMITTED\u72b6\u6001:<\/strong>  \u67e5\u8be2\u5df2\u7ecf\u63d0\u4ea4\u5230\u4e86server\uff0c\u4f46\u8fd8\u6ca1\u6709\u751f\u6210\u4f5c\u4e1aRDD\uff0c\u8fd9\u4e2a\u4e2d\u95f4\u4f1a\u5305\u62ec\uff1a\u7f16\u8bd1\uff0c\u751f\u6210\u6267\u884c\u8ba1\u5212\uff0c\u83b7\u53d6\u9501\uff08\u53ef\u80fd\u4f1a\u6709\uff09\u7b49\u9636\u6bb5\uff09\uff0c\u5bf9\u5e94\u4e0e\u4e0a\u9762\u65f6\u5e8f\u56fe\u4e2d\u7684\u6b65\u9aa4\uff081\uff09Submit SQL Query \uff5e\uff082\uff09Parsing\u3002<\/p>\n<p><strong>RUNNING\u72b6\u6001\uff1a<\/strong>\u751f\u6210RDD\uff0c\u6267\u884c\u4efb\u52a1\uff1aJob\/Stage\/Task\uff0c\u5bf9\u5e94\u4e8e\u4e0a\u9762\u65f6\u5e8f\u56fe\u4e2d\u7684\u6b65\u9aa4\uff083\uff09\uff5e\uff089\uff09\u3002<\/p>\n<p><strong>FILECOMMIT\u72b6\u6001\uff1a<\/strong>\u5c06\u4f5c\u4e1a\u6267\u884c\u7ed3\u679c\u5199\u5230HDFS\uff0c\u5bf9\u5e94\u4e0a\u9762\u65f6\u5e8f\u56fe\u7684\u6b65\u9aa4\uff0810\uff09\u3002<\/p>\n<p><strong>FETCHRESULT\u72b6\u6001\uff1a<\/strong>\u5ba2\u6237\u7aef\u8bfb\u53d6Query\u7684\u8ba1\u7b97\u7ed3\u679c\uff0c\u5bf9\u5e94\u4e0a\u9762\u65f6\u5e8f\u56fe\u7684\u6b65\u9aa4\uff0811\uff09\uff5e\uff0812\uff09\u3002<\/p>\n<p><strong>SUCCESS\u72b6\u6001\uff1a<\/strong>Query\u6267\u884c\u7ed3\u675f\uff0c\u5bf9\u5e94\u4e0a\u9762\u65f6\u5e8f\u56fe\u7684\u6b65\u9aa4\uff0813\uff09\u3002<\/p>\n<blockquote>\n<p>DBAService 9.4.6\u7248\u672c\u5f00\u59cb\uff0c\u652f\u6301\u5b58\u50a8\u548c\u5c55\u793aPerfLog\u5404\u9636\u6bb5\u8017\u65f6(SQL END\u65f6\u663e\u793a)\uff0cQuery\u9875\u9762-&gt; Perflog Time Cost\uff0c\u53ef\u4ee5\u8f85\u52a9\u5b9a\u4f4d\u6b65\u9aa4\u6267\u884c\u4fe1\u606f\u3002<\/p>\n<\/blockquote>\n<h3>\u5e38\u89c1\u95ee\u9898<\/h3>\n<hr \/>\n<h4>1. \u6807\u8bb0\uff08Tags\uff09\u5217 \u5728\u54ea\u91cc\uff1f<\/h4>\n<p>\u67e5\u8be2\u9875\u9762\uff0c\u5f80\u53f3\u62c9\u80fd\u591f\u627e\u5230<\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1739865468840.png\" style=\"display: block;\">\n<\/div>\n<h4>2. \u6807\u8bb0\uff08Tags\uff09\u5217 \u679a\u4e3e\u503c\u8bf4\u660e<\/h4>\n<table>\n<thead>\n<tr>\n<th>\u5b57\u6bb5\u5185\u5bb9<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong><font color=green >LvtMsgLost<\/font><\/strong><\/td>\n<td>\u6807\u8bb0\u8be5SQL\u7531\u4e8eSqlEnd\u6d88\u606f\u4e22\u5931\uff0cdba\u4fa7\u4e3b\u52a8\u67e5\u8be2\u68c0\u6d4b\u5230\u8be5SQL\u5b9e\u9645\u7ed3\u675f\uff0c\u5c06\u5176\u72b6\u6001\u7ed3\u675f\uff0c946\u53ca\u540e\u7eed\u901a\u5e38\u8be5SQL\u72b6\u6001\u4e3aUNKNOWN<\/td>\n<\/tr>\n<tr>\n<td><strong><font color=green >FINISHED<\/font><\/strong><\/td>\n<td>\u8868\u793a\u8be5SQL\u6267\u884c\u7ed3\u675f\u540e\uff0c\u5ba2\u6237\u7aefstatement\u8fde\u63a5\u8fd8\u672a\u5173\u95ed\uff0c\u5373\u6b64\u65f6\u67e5\u8be2system.processes_v\u83b7\u53d6\u7684\u8be5SQL\u7684\u72b6\u6001\u662fFINISHED\uff0cDBA\u4fa7\u6807\u8bb0\u540e\uff0c\u4f1a\u8bb0\u5f55\u5f53\u524d\u7684tagFinishTime\uff0c\u6301\u7eed\u65f6\u957f\u4e3atagFinishTime-\u63d0\u4ea4\u65f6\u95f4(\u5373\u4efb\u52a1\u5b9e\u9645\u6267\u884c\u65f6\u957f)\uff0c\u6536\u5230sqlEnd\u6d88\u606f\u7684\u5b8c\u6210\u65f6\u95f4\u662f\u5ba2\u6237\u7aef\u8fde\u63a5\u5173\u95ed\u7684\u65f6\u95f4\uff0c\u6545\u4f1a\u51fa\u73b0\u6301\u7eed\u65f6\u957f&lt;\u5b8c\u6210\u65f6\u95f4-\u63d0\u4ea4\u65f6\u95f4<\/td>\n<\/tr>\n<tr>\n<td><strong><font color=green >ServerRestart<\/font><\/strong><\/td>\n<td>\u6807\u8bb0\u8be5SQL\u5728Running\u8fc7\u7a0b\u4e2d\uff0cServer\u53d1\u751f\u4e86\u91cd\u542f\uff0cdba\u65e0\u6cd5\u6536\u5230sqlEnd\u6d88\u606f\uff0c\u68c0\u6d4b\u5230server\u91cd\u542f\u540e\uff0c\u4f1a\u5c06\u8be5SQL\u72b6\u6001\u7ed3\u675f\u5e76\u6807\u8bb0\uff0c946\u53ca\u540e\u7eed\u901a\u5e38\u8be5SQL\u72b6\u6001\u4e3aUNKNOWN<\/td>\n<\/tr>\n<tr>\n<td><strong><font color=green >Killed by user xx<\/font><\/strong><\/td>\n<td>\u6807\u8bb0\u8be5SQL\u5728DBA\u4fa7\u662f\u901a\u8fc7\u63d0\u4ea4kill sql (opId)\u547d\u4ee4\uff0c\u6267\u884c\u7684kill\u64cd\u4f5c\uff0c\u8be5SQL\u72b6\u6001\u4e3aFAILED\uff0c\u5b9e\u9645kill\u65b9\u5f0f\u53c2\u8003 <a href=\"https:\/\/kb.transwarp.cn\/posts\/4573\" title=\"\u5c55\u793ainceptor \u6b63\u5728\u6267\u884c\u7684\u8fdb\u7a0b\uff0c\u4ee5\u53cakill \u547d\u4ee4\">\u5c55\u793ainceptor \u6b63\u5728\u6267\u884c\u7684\u8fdb\u7a0b\uff0c\u4ee5\u53cakill \u547d\u4ee4<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3. \u4ec0\u4e48\u60c5\u51b5\u4e0b\u4f1a\u6d41\u8f6c\u5230COMPLETE\u72b6\u6001\uff1f<\/h4>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b <strong><font color=green >\u6807\u8bb0\uff08Tags\uff09<\/font><\/strong>\u5217\u4f1a\u6709\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\uff0c\u6700\u5e38\u89c1\u7684\u662f <strong><font color=green >LvtMsgLost\/ServerRestart<\/font><\/strong>\uff0c\u6709\u5982\u4e0b\u51e0\u79cd\u53ef\u80fd\uff1a<\/p>\n<p>a) DBAService\u76d1\u63a7\u57cb\u70b9\u6570\u636e\u6709\u4e22\u5931\uff08QuarkServer\u6216DBAService\u538b\u529b\u6bd4\u8f83\u5927\u4f1a\u5bfc\u81f4\u8be5\u73b0\u8c61\uff09\uff0c\u4e00\u822c\u770b\u662f\u4e0d\u662f\u4e00\u4e2adbaservice\u76d1\u63a7\u592a\u591aquark\uff0c\u5982\u679c\u662f\uff0c\u5219\u5efa\u8bae\u7528\u591a\u4e2adbaservice\uff0c\u5efa\u8bae\u4e00\u4e2adbaservice\u6700\u591a\u76d1\u63a7\u4e0d\u8d85\u8fc74\u4e2a\u3002<\/p>\n<p>b) \u5982\u679c\u662fdba-9.4.2\u6216\u4ee5\u4e0b\u7248\u672c\uff0c\u5219\u53ef\u80fd\u662f\u5df2\u77e5BUG\uff0c\u53ef\u4ee5\u901a\u8fc7\u5347\u7ea7\u6700\u65b0DBAService\uff0c\u6216\u66f4\u65b0 Patch-DBAService-9.4.2-20230621-01 \u53ca\u4ee5\u4e0a\u7248\u672cpatch\u3002<\/p>\n<h4>4. SQL\u5361\u5728postrun\u72b6\u6001<\/h4>\n<p>\u57289.4.2\u53ca\u4ee5\u4e0b\u7248\u672c\uff0cDBA Service\u4e0a\u7684 <strong><font color=red >PostRun<\/font><\/strong> \u9636\u6bb5\u88ab\u7b80\u5355\u5b9a\u4e49\u4e3aLvtSQLComputeFinish\u6d88\u606f\u548cLvtSqlEnd\u6d88\u606f\u4e4b\u95f4\u7684\u72b6\u6001\u3002<br \/>\n\u5b9e\u9645\u4e0a\u5728\u8fd9\u4e2a\u9636\u6bb5\u53d1\u751f\u5f88\u591a\u4e8b\uff1aCommit File (\u79fb\u52a8\u6587\u4ef6\u9636\u6bb5)\u3001 Fetch Result (\u5bf9\u5e94JDBC\u7684\u8bfb\u7ed3\u679c\u9636\u6bb5\uff09<\/p>\n<p>\u5efa\u8bae\uff1a\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672cDBAService + patch\uff0c\u4e0d\u518d\u6709postrun\u72b6\u6001\uff0c\u5c06\u8be5\u9636\u6bb5\u62c6\u5206\u4e3a\u6700\u5173\u952e\u7684\u4e24\u4e2a\u9636\u6bb5\uff1a<strong><font color=red>FILECOMMIT<\/font><\/strong> \u548c <strong><font color=red>FETCHRESULT<\/font><\/strong>\uff0c\u5bf9\u4e8eFETCHRESULT\u9636\u6bb5\uff0c\u901a\u8fc7 <code>select * from system.processes_v<\/code> \u68c0\u67e5SQL\u6267\u884c\u72b6\u6001\uff0c\u5982\u679c\u5b58\u5728\u8be5SQL\u4e14\u8be5SQL\u7684\u72b6\u6001\u4e3aFINISHED\uff0c\u5219\u7ed9\u5f53\u524dSQL\u589e\u52a0\u4e00\u4e2a\u6807\u8bb0 <strong><font color=green >FINISHED<\/font><\/strong>\u3002<\/p>\n<h4>5. SQL\u5361\u5728submitted\u72b6\u6001<\/h4>\n<p>\u8be5\u9636\u6bb5\u6267\u884c \u7f16\u8bd1\uff0c\u751f\u6210\u6267\u884c\u8ba1\u5212\uff0c\u83b7\u53d6\u9501\uff08\u53ef\u80fd\u4f1a\u6709\uff09\u7b49\u9636\u6bb5\uff0c\u91cd\u70b9\u5173\u6ce8\uff1a<\/p>\n<ul>\n<li>quark server \u662f\u5426GC<\/li>\n<li>server\u65e5\u5fd7\u68c0\u67e5perflog\uff0c\u662f\u5426\u5361\u5728acquireReadWriteLocks<\/li>\n<\/ul>\n<h4>6. SQL\u5361\u5728fetchresult\u72b6\u6001<\/h4>\n<p>\u5ba2\u6237\u7aef\u8bfb\u53d6Query\u7684\u8ba1\u7b97\u7ed3\u679c\uff0c\u6267\u884c <code>select * from system.processes_v <\/code><\/p>\n<ul>\n<li>\u5982\u679cSQL\u7684\u6267\u884c\u7ed3\u679c\u72b6\u6001\u4e3a <strong><font color=red>FETCHRESULT<\/font><\/strong>\uff0c\u5ba2\u6237\u7aef\u6b63\u5728\u53d6\u8ba1\u7b97\u7ed3\u679c\u3002<\/li>\n<li>\u5982\u679cSQL\u7684\u6267\u884c\u7ed3\u679c\u72b6\u6001\u4e3a <strong><font color=red>FETCHRESULT<\/font><\/strong>\uff0c\u4e14\u6807\u8bb0\u5217\u4e2d\u5305\u542b <code>FINISHED<\/code>\uff0c\u5ba2\u6237\u7aef\u8fde\u63a5\u672a\u91ca\u653e\uff0c\u53ef\u80fd\u662f\u6267\u884c\u5b8c\u67e5\u8be2\u672aclose\u3002<\/li>\n<\/ul>\n<h4>7. SQL\u5361\u5728filecommit\u72b6\u6001<\/h4>\n<p>\u6b64\u9636\u6bb5\u4e00\u822c\u4e3a\u6b63\u5728\u5199\u8ba1\u7b97\u4efb\u52a1\u7ed3\u679c\uff0c\u5373\u5bf9\u5199\u8868\u64cd\u4f5c\uff0cSQL\u6267\u884c\u65f6\uff0c\u7ed3\u679c\u653e\u5230Session\u7684\u4e00\u4e2a\u4e34\u65f6\u76ee\u5f55\uff0c\u8ba1\u7b97\u7ed3\u675f\u540e\uff0c\u9700\u8981\u5c06\u6587\u4ef6\u4ece\u4e34\u65f6\u76ee\u5f55mv\u5230\u6570\u636e\u5e93\u6240\u5728HDFS\u76ee\u5f55\uff0c\u5bf9\u5e94perflog\u65f6\u95f4\u4e2d\u7684 <code>task.MOVE.Stage.*<\/code> (\u4e0d\u5305\u62ec\u8ba1\u7b97\u65f6\u95f4\uff0c\u6b64\u65f6\u8ba1\u7b97\u5df2\u7ed3\u675f\uff0c\u5373job\/stage\/task\u5df2\u6267\u884c\u7ed3\u675f)<\/p>\n<ul>\n<li>\u76ee\u6807\u8868\u662f\u5426\u662f\u591a\u7ea7\u5206\u533a\uff1f\u4e0d\u5efa\u8bae\u4f7f\u7528\u4e8c\u7ea7\u53ca\u4ee5\u4e0a\u5206\u533a\uff0c\u4f1a\u663e\u8457\u5bfc\u81f4\u5c0f\u6587\u4ef6\u95ee\u9898\uff1b<\/li>\n<li>\u4e00\u6b21\u6027\u5199\u5165\u4e86\u5f88\u591a\u4e2a\u5c0f\u6587\u4ef6\uff1f\u68c0\u67e5task\u6570\u76ee\u662f\u5426\u8fc7\u591a\uff0c\u80fd\u5426\u901a\u8fc7\u5c0f\u6587\u4ef6\u5408\u5e76\u53c2\u6570\u964d\u4f4e\u5199\u5165\u6587\u4ef6\u7684\u6570\u76ee<\/li>\n<li>\u68c0\u67e5\u4e0b\u78c1\u76d8io \u662f\u5426\u6253\u6ee1<\/li>\n<li>\u5f85\u8865\u5145<\/li>\n<\/ul>\n<h4>8. \u6301\u7eed\u65f6\u957f &lt;\uff08\u5b8c\u6210\u65f6\u95f4-\u63d0\u4ea4\u65f6\u95f4\uff09\uff0c\u4e14\u6807\u8bb0\u5217\uff08Tags\uff09\u4e3a FINISHED<\/h4>\n<p>\u539f\u56e0\u5728\u4e8e\uff0c\u4e0d\u89c4\u8303\u7684JDBC\u4f7f\u7528\u65b9\u5f0f\uff0c\u6267\u884c\u5b8c\u67e5\u8be2\u540e\uff0c\u6ca1\u6709 close statement\u3002\u4ee5\u4e0b\u9762\u7684\u6837\u4f8b\u4ee3\u7801\u4e3a\u4f8b\uff0c\u6ce8\u91ca\u6389 <code>st.close();<\/code><\/p>\n<pre><code class=\"language-java\">import java.sql.*;\npublic class testMetaData {\n    public static void main(String[] args) throws SQLException, ClassNotFoundException {\n        Class.forName(\"org.apache.hive.jdbc.HiveDriver\");\n        String jdbcUrl = \"jdbc:hive2:\/\/172.22.23.1:10000\/default?hive.session.id=my.s1\";\n        try (Connection connection = DriverManager.getConnection(jdbcUrl, \"hive\", \"123456\")) {\n            runCmd(connection);\n            runCmd(connection);\n            runCmd(connection);\n            Thread.sleep(120000);\n        } catch (InterruptedException e) {\n        Thread.currentThread().interrupt();\n        e.printStackTrace();\n    }\n    }\n    public static void runCmd(Connection connection) throws SQLException {\n        Statement st = null;\n        try {\n            st = connection.createStatement();\n            String cmd = \"show databases\";\n            System.out.println(\"runSql: \" + cmd);\n            boolean hasResultSet = st.execute(cmd);\n            if (hasResultSet) {\n                ResultSet rs = st.getResultSet();\n                while (rs.next()) {\n                    System.out.println(rs.getString(1));\n                }\n            }\n        } finally {\n            if (st != null && !st.isClosed()) {\n            \/\/\u8fd9\u91cc\u6ce8\u91ca\u6389 close statement\u3002\n\/\/                    st.close();\n            }\n        }\n    }\n}<\/code><\/pre>\n<p>\u6700\u7ec8\uff0c\u6301\u7eed\u65f6\u957f\u4e3a1m20s\uff0c\u5c0f\u4e8e \u5b8c\u6210\u65f6\u95f4 \u51cf\u53bb \u63d0\u4ea4\u65f6\u95f4 \u7684 2m \u3002\u4e14\u540e\u9762\u7684\u6807\u8bb0\u5217\u4e3a <strong><font color=green >FINISHED<\/font><\/strong>\u3002<\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1744255340017.png\" style=\"display: block;\">\n<\/div>\n<h4>9. executor\u8d1f\u8f7d 100% \u7206\u7ea2\u4e86\u600e\u4e48\u529e\uff1f<\/h4>\n<p>executor \u8d1f\u8f7d100% \u662f\u975e\u5e38\u6b63\u5e38\u7684\u73b0\u8c61\uff0c\u8bf4\u660e\u8fd9\u4e2a\u8fd9\u4e2aquark\/inceptor\u7684task\u5e76\u53d1\u5168\u90fd\u7528\u6765\u8dd1\u4efb\u52a1\u4e86\uff1b<br \/>\nexecutor\u8d1f\u8f7d\u7684\u8ba1\u7b97\u65b9\u5f0f\u662f\uff1a\uff08running task\u6570\uff09\/\uff08\u5e76\u53d1\u53ef\u6267\u884ctotal cores)\uff0c\u5176\u4e2d<br \/>\n\u3010\u5e76\u53d1\u53ef\u6267\u884ctotal cores\u3011 = \u3010\u6bcf\u4e2aexecutor\u8282\u70b9\u914d\u7f6e\u7684CPU\u6838\u6570(<code>inceptor.executor.cores<\/code>) \u7d2f\u52a0\u4e4b\u548c\u3011   \u4e58\u4ee5  \u3010<code>executor.number.eachnode<\/code>\u3011<\/p>\n<p>\u4ee5\u4e0b\u56fe\u4e3a\u4f8b\uff0c\u3010\u5e76\u53d1\u53ef\u6267\u884ctotal cores\u3011 =(3+3+9)*2=30<\/p>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1737528746020.png\" style=\"display: block;\">\n<\/div>\n<div style=\"box-shadow: 1px 1px 10px rgba(0,0,0,0.1); padding: 1px; display: inline-block; width: auto; margin-bottom: 10px;\">\n  <img decoding=\"async\" src=\"\/wp-content\/uploads\/2024\/11\/image-1737528763548.png\" style=\"display: block;\">\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\uff0cDBAService Query\u9875\u9762\uff0c\u6bcf\u79cdstatus\u7684\u72b6\u6001\u89e3\u91ca\uff0c\u4ee5\u53ca\u5e38\u89c1\u72b6\u6001\u5f02\u5e38\u95ee\u9898 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=14818\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14818","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/14818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14818"}],"version-history":[{"count":4,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/14818\/revisions"}],"predecessor-version":[{"id":18225,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/14818\/revisions\/18225"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}