Saar Amitay
11/19/2026, 11:58 AMRocky
11/19/2026, 11:59 AMenable_trace_historical_node = true (default false, mutable)
• session variable enable_datacache_sharing (default true), for datacache_sharing_work_period seconds (default 600) after scaling
Caveat: the docs describe it as covering shared-data scaling in general, but in the 4.1 source I could only find it wired into the external-catalog scan path (HDFSBackendSelector); I did not find a sharing path for cloud-native (internal) tables. So verify empirically on 4.1.6 before relying on it for internal tables.
2. Proactively warm with CACHE SELECT (Block Cache Warmup)
Works on cloud-native tables too — the docs' example is literally a shared-data cluster:
sql
CACHE SELECT lo_orderkey FROM ssb.lineorder;
CACHE SELECT * FROM ssb.lineorder PROPERTIES("verbose"="true"); -- per-node metrics
• It's synchronous and single-table, and internally runs as INSERT INTO BLACKHOLE(), so its cost ≈ a normal full query.
• For a new node specifically, verbose=true shows per-IP WRITE_CACHE_SIZE — but be aware target node selection isn't something you specify; the read is spread across CNs, so this warms the cluster rather than pinning one node.
• Schedule it so warmup isn't a manual step: SUBMIT TASK ... SCHEDULE EVERY(interval ...) AS cache select ..., and throttle it with PROPERTIES("pipeline_dop"="1","resource_group"="warmup").
• Set enable_datacache_async_populate_mode = false if you want a query/warmup to fill the cache fully in one pass — async population (the default) means one pass only caches part of the data and needs repeated runs.
3. Make sure the warm-up actually sticks
Warmup is pointless if the quota collapses under it: the cache must be much larger than the data being warmed, and there's a 4.1 known issue where datacache auto-adjust shrinks the quota step by step to 0 (disk usage between disk_low_level 60% and disk_safe_level 80%) and never recovers; a transient update failure is also not retried. Watch TOTAL_CACHE_USAGE from CACHE SELECT, DataCacheMetrics in SHOW COMPUTE NODES, and the CN log line success to adjust datacache disk spaces to: [... size: 0]. The fix (PR 82040) was merged on branch-4.1 but I can't confirm it's in the 4.1.6 build — worth checking release notes.
One thing I could not verify: whether copying an existing node's <storage_root_path>/datacache directory onto a new CN is supported. The cache is persistent across restarts (datacache_persistence_enable, default true) and the docs only describe deleting that directory, not seeding it — I wouldn't assume it works.
If Cache Sharing turns out not to cover cloud-native tablets, that's worth raising on GitHub or in the community Slack with the maintainers.
References
• data_source/data_cache/data_cache.md
• data_source/data_cache/data_cache_troubleshooting.md
• deployment/feature-support-shared-data.md
• knowledge/qa/shared_data_data_cache_operations.md (StarRocks knowledge base)
• knowledge/known_issues/shared_data.md (StarRocks knowledge base)
• administration/configuration/BE_parameters/shared_lake_other.md