{"id":18817,"date":"2026-06-18T16:28:19","date_gmt":"2026-06-18T08:28:19","guid":{"rendered":"https:\/\/kbwp.transwarp.cn\/?p=18817"},"modified":"2026-06-18T16:31:45","modified_gmt":"2026-06-18T08:31:45","slug":"holodesk%e8%a1%a8%e8%87%aa%e5%8a%a8%e5%88%86%e6%a1%b6%e6%95%b0%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97","status":"publish","type":"post","link":"https:\/\/kbwp.transwarp.cn\/?p=18817","title":{"rendered":"holodesk\u8868\u81ea\u52a8\u5206\u6876\u6570\u5982\u4f55\u8ba1\u7b97"},"content":{"rendered":"<h3>\u6982\u8981\u63cf\u8ff0<\/h3>\n<hr \/>\n<p>\u4ece ArgoDB 3.2.2 \u7248\u672c\u5f00\u59cb\uff0c\u7cfb\u7edf\u652f\u6301\u81ea\u52a8\u5206\u6876\u529f\u80fd\u3002\u5f53\u521b\u5efa\u5206\u6876\u8868\u65f6\uff0c\u5982\u679c\u672a\u4f7f\u7528 <code>INTO &lt;num_buckets&gt; BUCKETS<\/code> \u624b\u52a8\u6307\u5b9a\u5206\u6876\u6570\uff0cArgoDB \u4f1a\u6839\u636e\u96c6\u7fa4\u7684\u78c1\u76d8\u914d\u7f6e\u81ea\u52a8\u8ba1\u7b97\u4e00\u4e2a\u5408\u7406\u7684\u9ed8\u8ba4\u5206\u6876\u6570\uff0c\u65e0\u9700\u7528\u6237\u624b\u52a8\u6307\u5b9a\uff0c\u7b80\u5316\u4e86\u5efa\u8868\u64cd\u4f5c\u3002<\/p>\n<h3>\u8be6\u7ec6\u8bf4\u660e<\/h3>\n<hr \/>\n<p><strong>\u81ea\u52a8\u5206\u6876\u8ba1\u7b97\u89c4\u5219<\/strong><\/p>\n<p>\u9ed8\u8ba4\u5206\u6876\u6570\u7684\u8ba1\u7b97\u516c\u5f0f\u4e3a\uff1a<strong>\u9ed8\u8ba4\u5206\u6876\u6570 = \u5927\u4e8e\uff08\u6570\u636e\u78c1\u76d8\u603b\u6570 \u00d7 2 ) \u7684\u6700\u8fd1\u4e00\u4e2a\u8d28\u6570<\/strong><\/p>\n<p>\u5176\u4e2d\u201c\u6570\u636e\u78c1\u76d8\u603b\u6570\u201d\u662f\u6307\u96c6\u7fa4\u4e2d\u6240\u6709 TabletServer \u8282\u70b9\u4e0a\u914d\u7f6e\u7684\u7269\u7406\u78c1\u76d8\u6570\u91cf\uff08\u5373 <code>tabletserver.store.datadirs<\/code> \u914d\u7f6e\u9879\u4e2d\u6307\u5b9a\u7684\u78c1\u76d8\u76ee\u5f55\u6570\u91cf\u4e4b\u548c\uff09\u3002<\/p>\n<p><strong>\u53c2\u6570\u63a7\u5236<\/strong><\/p>\n<p>\u8be5\u8ba1\u7b97\u89c4\u5219\u7531\u53c2\u6570   <code>argodb.default.bucket.ratio<\/code>   \u63a7\u5236\uff0c\u8be5\u53c2\u6570\u7528\u4e8e\u8c03\u6574\u78c1\u76d8\u603b\u6570\u7684\u4e58\u6570\u56e0\u5b50\u3002<\/p>\n<ul>\n<li>\u5728 ArgoDB 6.0.2 \u4e4b\u524d\uff0c\u8be5\u53c2\u6570\u7684\u9ed8\u8ba4\u503c\u4e3a 5\u3002<\/li>\n<li>\u5728 ArgoDB 6.0.2 \u53ca\u4e4b\u540e\u7248\u672c\uff0c\u9ed8\u8ba4\u503c\u5df2\u8c03\u6574\u4e3a 2\uff0c\u4ee5\u964d\u4f4e\u9ed8\u8ba4\u5206\u6876\u6570\uff0c\u907f\u514d\u4ea7\u751f\u8fc7\u591a\u5c0f\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<blockquote>\n<p>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7 SET \u8bed\u53e5\u4e34\u65f6\u4fee\u6539\u8be5\u53c2\u6570\uff0c\u4f8b\u5982\uff1aSET argodb.default.bucket.ratio=3;<\/p>\n<\/blockquote>\n<p><strong>\u793a\u4f8b\u8bf4\u660e<\/strong><\/p>\n<p>\u5047\u8bbe\u96c6\u7fa4\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>TabletServer \u8282\u70b9\u6570\uff1a4 \u4e2a<\/li>\n<li>\u6bcf\u4e2a TabletServer \u914d\u7f6e\u7684 tabletserver.store.datadirs \u6570\u91cf\uff1a3 \u4e2a<\/li>\n<\/ul>\n<p>\u5219\u6570\u636e\u78c1\u76d8\u603b\u6570 = 4 \u00d7 3 = 12\u3002\u6309\u7167\u9ed8\u8ba4\u89c4\u5219\uff08argodb.default.bucket.ratio=2\uff09\uff0c\u8ba1\u7b97\u8fc7\u7a0b\u4e3a\uff1a\u78c1\u76d8\u603b\u6570 \u00d7 2 = 12 \u00d7 2 = 24\uff0c\u53d6\u5927\u4e8e 24 \u7684\u6700\u8fd1\u8d28\u6570\uff1a29<\/p>\n<p>\u56e0\u6b64\uff0c\u6267\u884c\u4ee5\u4e0b\u5efa\u8868\u8bed\u53e5\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u5c06\u5206\u6876\u6570\u8bbe\u7f6e\u4e3a 29\uff1a<\/p>\n<pre><code class=\"language-sql\">CREATE TABLE testholo(id INT, name STRING) \nCLUSTERED BY (id) \nSTORED AS HOLODESK;<\/code><\/pre>\n<p><strong>\u9a8c\u8bc1\u5206\u6876\u6570\uff1a<\/strong><\/p>\n<p><code>SHOW CREATE TABLE testholo;<\/code> \u8f93\u51fa\u7ed3\u679c\u4e2d\uff0c<code>CLUSTERED BY (id) INTO 29 BUCKETS<\/code> \u5373\u8868\u793a\u81ea\u52a8\u5206\u6876\u751f\u6548\u3002<\/p>\n<p><strong>FAQ:<\/strong><\/p>\n<p>\u5982\u679c<code>tabletserver.store.datadirs<\/code>\u914d\u7f6e\u7684\u76ee\u5f55\u540d\u79f0\u6bd4\u8f83\u56fa\u5b9a\uff0c\u6bd4\u5982\u622a\u56fe\u4e2d\u90fd\u662f\u4ee5<code>\/mnt\/<\/code> \u5f00\u5934\uff0c\u53ef\u4ee5\u53c2\u8003\u622a\u56fe<code>ctrl+f<\/code>\u8ba1\u7b97\uff0c120*2\uff0c\u5411\u4e0a\u53d6\u7b2c\u4e00\u4e2a\u8d28\u6570\uff0c\u5373241.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/06\/image-1781771543958.png\" alt=\"file\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981\u63cf\u8ff0 \u4ece ArgoDB 3.2.2 \u7248\u672c\u5f00\u59cb\uff0c\u7cfb\u7edf\u652f\u6301\u81ea\u52a8\u5206\u6876\u529f\u80fd\u3002\u5f53\u521b\u5efa\u5206\u6876\u8868\u65f6\uff0c\u5982\u679c\u672a\u4f7f\u7528 INTO  ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/kbwp.transwarp.cn\/?p=18817\" 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-18817","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\/18817","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=18817"}],"version-history":[{"count":3,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/18817\/revisions"}],"predecessor-version":[{"id":18821,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=\/wp\/v2\/posts\/18817\/revisions\/18821"}],"wp:attachment":[{"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kbwp.transwarp.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}