arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.15872cs.SE
收藏

大规模系统中的功能切换动态:普遍性、增长、生命周期和基准测试

Feature Toggle Dynamics in Large-Scale Systems: Prevalence, Growth, Lifespan, and Benchmarking

LTCI, Télécom Paris, Institut Polytechnique de Paris(电信学院巴黎理工学院)

Xhevahire Tërnava

AI总结:

研究分析了Kubernetes和GitLab中功能切换的演变,发现切换移除滞后于添加,导致切换库存增长,且生命周期差异显著,提出基准框架评估管理实践。

摘要:

功能切换使软件系统能够逐步发布和实验,但往往在预期生命周期后仍持续存在,积累为技术债务。先前研究已考察了功能切换的交互和复杂性,但尚无纵向研究量化不同组织背景下切换如何随时间演变。我们分析了Kubernetes(10 MLoC,8.5年)和GitLab(5 MLoC,5年)中的超过4,000个切换事件。我们发现,在两个系统中,切换移除均滞后于添加(分别约为35%和13%),导致切换库存增长。其生命周期模式也存在显著差异,Kubernetes切换的中位数持续时间为734天,而GitLab为185天。此外,一些功能切换(分别占1.33%和0.73%)超过了所有之前观察到的移除持续时间,成为事实上的永久切换。基于这些发现,我们提出一个包含五个关键指标及其经验确定阈值区的基准框架,使实践者能够评估和比较不同项目中的切换管理实践。所有脚本和数据均公开可用。

英文摘要:

Feature toggles enable gradual rollouts and experimentation in software systems, yet often persist beyond their intended lifecycle, accumulating as technical debt. Prior research has examined feature toggle interactions and complexity, but no longitudinal study has quantified how toggles evolve over time across different organizational contexts. We analyse over 4,000 toggle events in Kubernetes (10 MLoC, 8.5 years) and GitLab (5 MLoC, 5 years). We find that feature toggle removals lags behind additions in both systems (by roughly 35% and 13%, respectively), leading to growing toggle inventories. Their lifespan patterns also differ notably, with Kubernetes toggles lasting a median of 734 days versus 185 in GitLab. Then, some feature toggles (1.33% and 0.73%, respectively) exceed all previously observed removal durations, becoming de facto permanent. Building on these findings, we propose a benchmarking framework with five key metrics and their empirically derived threshold zones, enabling practitioners to assess and compare toggle management practices across projects. All scripts and data are publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑