<@U0A71G31CDV> What would be an appropriate tablet...
# questions-and-troubleshooting
a
@Rocky What would be an appropriate tablet size?
r
StarRocks docs give size-based guidance rather than a fixed number, and it depends on deployment mode: Shared-nothing clusters • `faq/Deploy_faq.md`: "it is recommended to keep each tablet around 1 GB." •
table_design/data_distribution/Data_distribution.md
and `best_practices/bucketing.md`: recommend ~10 GB of raw data per tablet for hash bucketing, with bucket size ideally 1–10 GB. The 1 GB figure appears to target small/random-bucketed partitions. •
best_practices/bucketing.md
operational guidance: with hash bucketing, monitor tablet size and re-shard before tablets exceed 5–10 GiB; for random bucketing pick a
bucket_size
(e.g. 1 GiB) so auto-split works. • For random bucketing on small partitions the docs suggest
bucket_size
1 GB, otherwise 4 GB. Shared-data clusters on v4.1+ (large-capacity tablets) • 10 GB to 50 GB per tablet, no more than 100 GB. • Related FE config:
tablet_reshard_target_size
(default 10737418240 = 10 GB) is the target tablet size after SPLIT/MERGE. How to apply it: estimate raw data per partition, then
bucket_count = partition_raw_size / target_tablet_size
. Also keep partitions ≤ ~100 GB (per
best_practices/partitioning.md
) and watch the overall tablet count — too few tablets hurt ingestion/compaction/scan parallelism, too many inflate metadata (red flag cited: >200k tablets per BE). Since the docs themselves differ between 1 GB and 10 GB depending on section and mode, tell me your deployment mode (shared-nothing vs shared-data), version, and typical partition data volume and I can narrow it down. References • faq/Deploy_faq.md • table_design/data_distribution/Data_distribution.md • best_practices/bucketing.md • knowledge/usage/best-practice.md (StarRocks knowledge base) • knowledge/qa/bucket_number_and_small_tablets.md (StarRocks knowledge base) • faq/Others.md
a
@Rocky Is there a best-practice upper limit on the number of tablets per node?
r
No hard limit — but the docs give soft thresholds rather than a single "best-practice" number. Official position (Deploy FAQ): "There is no strict limit for the tablet number" — the guidance is about size, not count: aim for ~1 GB per tablet (shared-data on v4.1+: 10–50 GB, max 100 GB), and plan partitioning/bucketing well. Practical thresholds that do appear in the docs/knowledge base: •
200k tablets per BE
is cited as a red flag for an excessive tablet/metadata footprint (from the bucketing/partitioning docs discussion of over-bucketing). • 100k+ tablets on one BE was an actual performance problem in shared-nothing: the BE couldn't maintain moderate performance. Fixed in 4.0.2 and 3.5.9 by raising the default
tablet_map_shard_size
from 32 to 1024; no backport to 4.1 (4.1 already has it). So on older releases, keep a BE well under ~100k; on fixed versions much higher counts are workable. • FE memory scales with total tablet count (not per node): <1M → 16 GB, 1–2M → 32 GB, 2–5M → 64 GB, 5–10M → 128 GB per FE. In practice this is often the binding constraint. So the answer is "no documented ceiling, but stay below ~200k tablets/BE as a working guideline, and size FE memory against the total." The exact number also depends on tablet size, column/schema width, and shared-nothing vs shared-data mode — if you tell me those I can be more specific. Sources:
faq/Deploy_faq.md
,
best_practices/fe_memory_troubleshooting.md
,
faq/Others.md
, BE parameter
tablet_map_shard_size
. References • faq/Deploy_faq.md • administration/configuration/BE_parameters/stats_storage.md • sql-reference/information_schema/be_tablets.md • knowledge/known_issues/storage.md (StarRocks knowledge base) • faq/operation_maintenance_faq.md • knowledge/qa/cluster_sizing_and_scaling.md (StarRocks knowledge base)