<@U0A71G31CDV> StarRocks 3.5.20, shared-data mode,...
# questions-and-troubleshooting
d
@Rocky StarRocks 3.5.20, shared-data mode, 3 CNs on VMware. One CN is sometimes 1.3 to 1.5x slower per scan task because its VM host is busy (CPU ready), and the other CNs wait on it. Are there any settings that let scans of a slow CN’s tablets run on the other CNs, or otherwise reduce how much one slow CN holds up a query?
r
Short answer: in 3.5 there is no setting that moves a live tablet's scan to another CN. Here's why, and what does move the needle. Why you can't steer it • In shared-data, each tablet is a StarOS shard with replica count 1, so it has exactly one location. At planning,
OlapScanNode
asks StarOS for the nodes of the selected tablets and
NormalBackendSelector
hands each tablet to its owning node. With one location there's nothing to balance — a CN's scan work is simply the tablets it owns. • Backup routing across nodes only happens when the owner is unavailable (dead or blacklisted at the time the query captured the warehouse's nodes). A slow-but-alive CN is not "unavailable", so its tablets stay put. •
enable_shared_scan
looks like it would help but is a no-op: the FE always returns
false
for
isEnableSharedScan()
and the feature was disabled because it's incompatible with event-based scheduling (3.5 uses event-based scheduling). Don't count on it. •
enable_lake_tablet_internal_parallel
/ tablet-internal parallel (
PhysicalSplitMorselQueue
) splits one tablet across threads on the same CN. It shortens scan tasks but does not move work off the slow node. What may actually reduce the straggler effect 1. Treat the host as the problem. CPU ready time is VMware-level scheduling (overcommit / no CPU reservation), not a StarRocks knob. Set CPU reservations (or reduce vCPU count per VM), check memory ballooning and host-level contention. This is the only real fix. 2. Take the CN out of the equation entirely — heavy but effective: • Put it in the blacklist so the FE plans around it. Caveat: the CN blacklist (
ADD COMPUTE NODE BLACKLIST
) is documented as supported from v4.0 onwards
, so likely not available to you on 3.5. Verify with
SHOW COMPUTE NODE BLACKLIST
before relying on it. • Otherwise: stop the CN process. The FE then picks a backup node for its tablets for the duration, at the cost of cold data cache on the backup (no cache warm-up setting exists; warm manually with
CACHE SELECT
). With only 3 CNs, all of that node's tablets go to one neighbour on 3.5. 3. Reduce the tail rather than rebalance. More, smaller scan tasks make the slow node's contribution a smaller share of the total: more buckets per table (smaller tablets), and keep
pipeline_dop = 0
for large queries (adaptive:
min(max_pipeline_dop, max(1, avg_cores/2))
, capped at 64). Note that tablet count balancing (
lake_enable_balance_tablets_between_workers
,
lake_balance_tablets_threshold = 0.15
) equalizes counts, not CPU readiness, so it won't fix an asymmetric host. 4. Add a 4th CN so a slow node is 1/4 of the scan work instead of 1/3 — cheap mitigation, same root cause. 5. Increasing
pipeline_dop
on the slow node only adds contention if the host is short on CPU; don't. Honest gap I didn't find any documented mechanism to pin or migrate a shard between CNs on demand, nor a per-session "avoid this CN" switch for 3.5 (the finer-grained
blacklist_backup_routing
with `RANDOM`/`TABLET_HASH` is 4.1 only). StarOS placement internals are outside the public repo, so I can't confirm whether any undocumented move exists. If you want to push further, the practical next step is asking in the StarRocks community Slack/GitHub discussions with your
SHOW COMPUTE NODES
output and the straggler profile. References • administration/configuration/FE_parameters/shared_lake_other.md • knowledge/known_issues/shared_data.md (StarRocks knowledge base) • data_source/data_cache/data_cache.md • sql-reference/System_variable.md • knowledge/known_issues/query.md (StarRocks knowledge base) • faq/Sql_faq.md