| Auto-Compaction & Segment Timeline Consolidation | Configures automated Coordinator compaction rules targeting 400-600MB segment sizes, tuning maxRowsPerSegment and compaction task priorities to eliminate fragmented small segments and accelerate scan pruning. | Runs periodic manual re-indexing jobs or configures low-priority compaction queues, allowing streaming ingestion to outpace compaction and bloat Coordinator metadata tables. | Ignores segment compaction mechanics completely and advises scaling out Historical compute nodes when queries slow down across multi-month intervals. | Sets compaction task slot limits higher than cluster task capacity, starving real-time streaming ingestion and triggering supervisor task failures. |
| Historical Processing Thread Pools & Direct Memory | Calibrates druid.processing.numThreads to physical CPU cores and tunes off-heap direct memory buffers (druid.processing.buffer.sizeBytes) to prevent out-of-memory crashes on concurrent GroupBy queries. | Over-allocates processing threads beyond physical CPU core counts, inducing severe OS context-switching penalties and CPU throttling during high-concurrency analytical bursts. | Blindly expands JVM max heap (-Xmx) without configuring direct off-heap memory, leading to extended Stop-the-World garbage collection pauses and heartbeat timeouts. | Leaves processing buffers at factory defaults; analytical queries scanning wide intervals exhaust memory buffers and fail with ResourceLimitExceededException. |
| Broker Query Caching (Caffeine vs Redis) | Deploys Caffeine in-memory segment-level query caching on Brokers and Historicals with calibrated byte limits and cache keys, eliminating redundant aggregation scans on historical immutable data. | Enables cluster-wide caching indiscriminately on real-time volatile intervals, polluting cache memory with rapidly invalidated segment queries. | Deploys external application-layer Redis caches with arbitrary TTLs, introducing stale analytical reporting and data inconsistency for end users. | Leaves query caching disabled across Brokers and Historicals, forcing every dashboard refresh to re-scan terabytes of raw segments from disk. |
| MiddleManager Ingestion Task Buffer Allocation | Calibrates maxRowsInMemory, intermediate persist thresholds, and worker task JVM heap headroom, preventing disk spillover and maintaining continuous sub-second Kafka indexing. | Sets maxRowsInMemory excessively high without monitoring task heap, causing MiddleManager worker JVM crashes during sudden traffic surges. | Throttles upstream Kafka producer queues whenever indexing workers experience backpressure, causing upstream pipeline lag and violated data freshness SLAs. | Leaves default memory buffers on high-throughput datasources, causing constant intermediate spilling to local disk and crippling indexing throughput. |
| Vectorized Query Execution & SIMD Aggregations | Enables and tunes vectorized query processing (vectorize: force) with SIMD batching across filtering, aggregation, and virtual column expressions, accelerating analytical scans by 3x-5x. | Leaves vectorization at default settings without verifying expression compatibility, running scalar row-by-row scans on vectorizable columnar segments. | Re-architects queries to avoid native Druid aggregations, relying on slow external client-side computation loops. | Writes complex unvectorizable JavaScript or custom non-native UDFs, disabling the vectorized query execution engine and spiking CPU usage. |
| Deep Storage Read-Ahead & Local Disk Caching | Optimizes Historical segment cache directories across high-speed NVMe storage, configuring segment pre-fetching, parallel download threads, and intelligent LRU cache eviction. | Under-sizes Historical local disk storage, causing constant cache thrashing and frequent remote deep-storage S3 download stalls during queries. | Relies on slow network-attached storage for Historical cache directories, introducing severe I/O wait states on local segment reads. | Ignores segment download thread pool sizing, causing Historical nodes to take hours to recover and download segments after cluster restarts. |