{"id":8889,"date":"2024-05-20T16:19:15","date_gmt":"2024-05-20T08:19:15","guid":{"rendered":"https:\/\/nj.transwarp.cn:8180\/?p=8889"},"modified":"2024-05-20T16:19:14","modified_gmt":"2024-05-20T08:19:14","slug":"%e6%9f%a5%e7%9c%8b-inceptor-%e5%90%88%e5%b9%b6%e9%98%9f%e5%88%97%ef%bc%88compaction-queue%ef%bc%89%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=8889","title":{"rendered":"\u67e5\u770b Inceptor \u5408\u5e76\u961f\u5217\uff08Compaction Queue\uff09\u7684\u65b9\u6cd5"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<p>\u672c\u6587\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u67e5\u770b Inceptor \u7684\u5408\u5e76\u961f\u5217\uff08Compaction Queue\uff09\u60c5\u51b5\u3002(\u8fd9\u91cc\u7684\u5143\u6570\u636e\u5e93\u4e3atxsql\uff0c\u9ad8\u7248\u672c\u8fc1\u79fb\u81f3kundb\u8fdb\u884c\u67e5\u770b\u3002)<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<p>\u63a5\u4e0b\u6765\u63cf\u8ff0\u8be6\u7ec6\u7684\u6b65\u9aa4\u3002<\/p>\n<h4>\u8fdb\u5165 Inceptor \u5143\u6570\u636e\u5e93<\/h4>\n<p>\u9996\u5148\u5728 Manager 8180 \u9875\u9762\u4e0a\u8fdb\u5165\u76ee\u6807 Inceptor \u670d\u52a1\uff0c\u70b9\u51fb\u3010\u66f4\u591a\u64cd\u4f5c\u3011&gt;\u3010\u66f4\u65b0\u4f9d\u8d56\u3011\uff0c\u53ef\u4ee5\u67e5\u770b\u5230\u8be5 Inceptor \u4f9d\u8d56\u7684 TxSQL \u670d\u52a1\u3002\u4f8b\u5982\u4e0b\u56fe\u4e2d\u7684 TxSQL1 \u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/10\/image-1666854848646.png\" alt=\"file\" \/><\/p>\n<h4>\u67e5\u770b TxSQL pod<\/h4>\n<p>\u5728\u96c6\u7fa4\u4efb\u610f TOS Master \u8282\u70b9\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b TxSQL \u5bb9\u5668\u3002TxSQL \u670d\u52a1\u7f16\u53f7\u8bf7\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u586b\u5199\u3002<\/p>\n<pre><code class=\"language-bash\">kubectl get po -owide | grep txsql{TxSQL\u670d\u52a1\u7f16\u53f7}<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/10\/image-1666854982987.png\" alt=\"file\" \/><\/p>\n<h4>\u8fdb\u5165 TxSQL \u7684 MySQL shell<\/h4>\n<p>\u9009\u62e9\u4efb\u610f\u72b6\u6001\u6b63\u5e38\u7684 TxSQL pod\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u5165 MySQL shell\u3002<\/p>\n<pre><code class=\"language-bash\">kubectl exec -it {\u4efb\u610f\u4e0a\u4e00\u6b65\u4e2d\u7684 TxSQL pod \u540d} -- sh \/usr\/bin\/txsql\/tools\/txsql.sh shell<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/10\/image-1666855123314.png\" alt=\"file\" \/><\/p>\n<h4>\u67e5\u770b\u5408\u5e76\u961f\u5217\u72b6\u6001<\/h4>\n<p>\u5728 MySQL shell \u4e2d\uff0c\u6267\u884c\u4ee5\u4e0b SQL \u6765\u67e5\u770b\u5408\u5e76\u961f\u5217\uff08Compaction Queue\uff09\u7684\u72b6\u6001\u4fe1\u606f\u3002Inceptor \u670d\u52a1\u7f16\u53f7\u8bf7\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u586b\u5199\u3002<\/p>\n<pre><code class=\"language-sql\">use metastore_inceptor{Inceptor\u670d\u52a1\u7f16\u53f7};\n\nselect CQ_STATE,count(1) from COMPACTION_QUEUE group by CQ_STATE;<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/nj.transwarp.cn:8180\/wp-content\/uploads\/2022\/10\/image-1666855325000.png\" alt=\"file\" \/><\/p>\n<p>\u6240\u5f97\u7ed3\u679c\u5e94\u8be5\u6709\u4e24\u5217\uff0c\u7b2c\u4e00\u5217\u4e3a\u72b6\u6001\u4ee3\u7801\uff0c\u7b2c\u4e8c\u5217\u4e3a\u5904\u4e8e\u8be5\u72b6\u6001\u7684\u6570\u91cf\u3002<\/p>\n<p>\u5e38\u89c1\u7684\u72b6\u6001\u4ee3\u7801\u89c1\u4e0b\u8868\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u72b6\u6001\u4ee3\u7801<\/th>\n<th>\u542b\u4e49<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>i<\/td>\n<td>\u521d\u59cb\u5316<\/td>\n<\/tr>\n<tr>\n<td>w<\/td>\n<td>\u6267\u884c\u4e2d<\/td>\n<\/tr>\n<tr>\n<td>s<\/td>\n<td>\u5df2\u5b8c\u6210<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u672c\u6587\u4e3b\u8981\u63cf\u8ff0\u5982\u4f55\u67e5\u770b Inceptor \u7684\u5408\u5e76\u961f\u5217\uff08Compaction Queue\uff09\u60c5\u51b5\u3002(\u8fd9\u91cc\u7684 ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=8889\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":81,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"class_list":["post-8889","post","type-post","status-publish","format-standard","hentry","category-configuration"],"acf":[],"_links":{"self":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8889","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\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8889"}],"version-history":[{"count":2,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8889\/revisions"}],"predecessor-version":[{"id":13019,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/8889\/revisions\/13019"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}