RonJay
11/09/2026, 5:00 AMRocky
11/09/2026, 5:00 AMScheduleTime — the time a pipeline driver waited from entering the ready queue until being scheduled for execution. Max across all pipelines. Rule of thumb: < 1s for simple queries.
QuerySpillBytes | Bytes spilled to disk (when memory was insufficient and spilling was triggered). Rule of thumb: < 1GB normal.
A few notes on how to read them (my interpretation, not verbatim docs):
• Allocated vs. deallocated: the gap between the two roughly reflects memory still held / not yet released — a large persistent gap over time can indicate memory retained by operators (e.g. hash tables, sort buffers) or slow release. The docs don't give a threshold for these two, so treat them as diagnostic rather than pass/fail.
• PeakMemoryUsagePerNode vs. SumMemoryUsage: PerNode tells you whether any single BE is close to its mem_limit (the real risk of OOM); SumMemoryUsage tells you the cluster-wide footprint. A high sum with low per-node peak just means the query is spread wide.
• PeakScheduleTime being large means pipeline drivers are queuing for CPU — a sign of CPU contention or too high a degree of parallelism, not of IO/network. Per the docs DriverTotalTime = ActiveTime + PendingTime + ScheduleTime, so you can confirm by checking ActiveTime vs PendingTime.
• SpillBytes > 0 means the query exceeded memory for some operator and fell back to disk; besides the byte count, worth checking which operator reported Spill* metrics to find the source.
Reference: StarRocks docs, Query Profile Metrics → Execution Overview Metrics (best_practices/query_tuning/query_profile_operator_metrics.md).
References
• best_practices/query_tuning/query_profile_operator_metrics.mdRonJay
11/09/2026, 9:31 AMRocky
11/09/2026, 9:31 AMRonJay
11/11/2026, 7:28 AMRocky
11/11/2026, 7:28 AMalways_collect_low_card_dict_on_lake 는 현재 StarRocks 공식 문서(시스템 변수 레퍼런스 포함)에서 찾지 못했습니다. 제가 검색한 범위에서는 확인되지 않는 변수라, 정확한 동작을 단정해서 말씀드리기 어렵습니다.
문서에서 확인되는, 이름이 비슷한 관련 변수들은 다음과 같습니다 — 혹시 이 중 하나를 말씀하시는 걸 수도 있습니다:
• low_cardinality_optimize_on_lake (기본 true, Boolean, v3.5.0 도입): 데이터 레이크(Iceberg/Hudi/Paimon 등) 쿼리에서 low cardinality(딕셔너리) 최적화 사용 여부. false 로 두면 레이크 쿼리에서 해당 최적화를 끕니다.
• cbo_enable_low_cardinality_optimize (기본 true): low cardinality 최적화 활성화 여부. 활성화 시 STRING 컬럼 조회 성능이 약 3배 향상된다고 문서에 기술되어 있습니다.
• array_low_cardinality_optimize (기본 true): ARRAY<VARCHAR> 타입까지 딕셔너리 디코딩 대상에 포함할지 여부.
• low_cardinality_optimize_v2 (기본 true): V2 리라이트(LowCardinalityRewriteRule) vs 레거시(AddDecodeNodeForDictStringRule) 전략 선택.
• cbo_enable_low_cardinality_optimize_for_join: 조인 쪽 low cardinality 리라이트 여부.
• FE 설정 low_cardinality_threshold (기본 255, v3.5.0): low cardinality 딕셔너리 판단 임계값.
이름의 always_collect 부분으로 미루어 보면 "NDV/카디널리티를 추정에 의존하지 않고 항상 딕셔너리를 수집(collect)하도록 강제"하는 류의 내부/신규 변수로 보이지만, 이것은 제 추측이며 문서로 확인된 사실이 아닙니다.
확인 방법을 권장드립니다:
1. 해당 클러스터에서 SHOW VARIABLES LIKE '%low_card_dict%'; — 변수가 실제 존재하고 기본값이 무엇인지 확인
2. StarRocks GitHub 저장소에서 변수명 검색 (VariableMgr / SessionVariable 소스), 또는 릴리스 노트 확인
3. 확실한 설명이 필요하면 StarRocks 커뮤니티 Slack/포럼에 문의하거나 메인테이너에게 확인
혹시 이 변수를 어디서 보셨는지(에러 메시지, SHOW VARIABLES 출력, 특정 문서/릴리스 노트 등) 알려주시면 더 정확히 좁혀볼 수 있습니다.
References
• using_starrocks/distinct_values/Using_bitmap.md
• using_starrocks/query_acceleration_with_auto_increment.md
• loading/SparkLoad.md