-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Sanyog Singh edited this page Aug 20, 2026
·
1 revision
This wiki contains the detailed technical documentation for the Data Skew Intelligence Engine, an intelligent, automated framework for detecting and mitigating partition skew in Apache Spark using Machine Learning.
- Architecture and Core Engine
- ML Severity Classification
- Mitigation Algorithms (Salting and Repartitioning)
The engine acts as a middleware pipeline that monitors Spark stage metrics, detects unbalanced partition partitions, and automatically decides the optimal mitigation strategy (Salting vs Repartitioning) using an ML classifier.
We calculate partition health using a multi-factor SkewScore:
Where:
$\text{skew_ratio} = \frac{\text{max_partition_size}}{\text{median_partition_size}}$ -
$\text{CV} = \frac{\sigma}{\mu}$ (Coefficient of Variation of partition sizes) $\text{top1_concentration} = \frac{\text{max_partition_size}}{\text{total_data_size}}$
| Skew Severity | Score Range | Action Required | Mitigation Algorithm |
|---|---|---|---|
| NORMAL | None | None (Keep default partitioning) | |
| LOW_SKEW | Moderate | Repartitioning (Spark Shuffle Repartition) | |
| HIGH_SKEW | Severe | Salting (Salt Keys + Two-Phase Aggregation) |