Heuristic:Apache Dolphinscheduler Gzip Compression Threshold
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Frontend, Build_Configuration, Performance |
| Last Updated | 2026-02-10 00:00 GMT |
Overview
Tuning guideline for the gzip compression threshold applied to production frontend assets during the Vite build process.
Description
The DolphinScheduler frontend build uses vite-plugin-compression to generate .gz compressed versions of production assets. The threshold is set to 10240 bytes (10 KB) — assets smaller than this are not compressed because the gzip overhead would negate any size savings. The original uncompressed files are retained alongside the .gz files to support clients that do not accept gzip encoding.
Configuration
| Parameter | Value | Rationale |
|---|---|---|
| algorithm | gzip | Universally supported by browsers and CDNs |
| threshold | 10240 (10 KB) | Assets below 10KB gain negligible compression benefit |
| ext | .gz | Standard gzip extension recognized by web servers |
| deleteOriginFile | false | Retains original files for non-gzip clients |
| verbose | true | Logs compression results during build |
Source Reference
// dolphinscheduler-ui/vite.config.ts
viteCompression({
verbose: true,
disable: false,
threshold: 10240, // 10 KB minimum
algorithm: 'gzip',
ext: '.gz',
deleteOriginFile: false
})
Applies To
- Implementation:Apache_Dolphinscheduler_Vite_Build_Configuration
- Principle:Apache_Dolphinscheduler_Frontend_Build_Configuration
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment