paperbot · PL 论文追踪

全部论文 待读 收藏

P2 An Experience Report of Generating Load Tests Using Log-Recovered Workloads at Varying Granularities of User Behaviour

在不同用户行为粒度下利用日志恢复的工作负载生成负载测试的经验报告
ASE 2019 34th IEEE/ACM International Conference on Automated Software Engineering (ASE)2019匹配度 2/10 · 该论文研究负载测试与用户行为粒度的日志恢复,属于软件测试领域,与静态分析、程序分析、浮点分析、贝叶斯程序分析以及LLM/Agentic程序分析均无直接关联。尽管包含工业界案例且问题驱动,但技术方向与用户研究画像不匹配。引用 29 inbox
Jinfu Chen, Weiyi Shang, Ahmed E. Hassan, Yong Wang, Jiangbin Lin
crossref: 2026-09-12

AI 速览

一句话:比较三种用户行为粒度的工作负载恢复方法,发现带上下文的动作序列能生成更贴近现场且低成本的负载测试。

本文是一篇关于大规模系统负载测试中工作负载恢复的经验报告。粗粒度负载测试可能遗漏用户行为细节,而逐步回放用户操作又使测试的构建与维护成本过高。以往工作多以用户动作频率刻画负载,忽略了动作上下文与序列中的信息。作者提出三种分别基于基本用户动作、带上下文的基本用户动作、及带上下文的用户动作序列的恢复方法,并在四个系统(Apache James、OpenMRS、Google Borg 与阿里巴巴 SA)上评估。结果表明,基于带上下文动作序列的方法最优,其生成的负载测试在吞吐量与 CPU 使用上与原现场工作负载接近(多为统计不显著或小效应量),且仅需少量用户聚类即可生成,成本低;该方法还能以高精度与高召回率检测注入用户。

问题
大规模系统负载测试需要现场代表性的工作负载,但粗粒度测试会遗漏用户行为细节,过细粒度逐步回放又导致开发、执行与维护成本过高;以往基于动作频率的恢复方法忽略了上下文与序列信息。
方法
提出三种基于不同用户行为粒度的工作负载恢复方法:基本用户动作、带上下文的基本用户动作、带上下文的用户动作序列,用于生成负载测试。
评估
在 Apache James、OpenMRS、Google Borg 与阿里巴巴超大规模工业系统 SA 四个系统上评估,比较生成负载与原现场负载的吞吐量和 CPU 使用,并评估对注入用户的检测精度与召回率。
原文摘要(Abstract)

Designing field-representative load tests is an essential step for the quality assurance of large-scale systems. Practitioners may capture user behaviour at different levels of granularity. A coarse-grained load test may miss detailed user behaviour, leading to a non-representative load test; while an extremely fine-grained load test would simply replay user actions step by step, leading to load tests that are costly to develop, execute and maintain. Workload recovery is at core of these load tests. Prior research often captures the workload as the frequency of user actions. However, there exists much valuable information in the context and sequences of user actions. Such richer information would ensure that the load tests that leverage such workloads are more field-representative. In this experience paper, we study the use of different granularities of user behaviour, i.e., basic user actions, basic user actions with contextual information and user action sequences with contextual information, when recovering workloads for use in the load testing of large-scale systems. We propose three approaches that are based on the three granularities of user behaviour and evaluate our approaches on four subject systems, namely Apache James, OpenMRS, Google Borg, and an ultra-large-scale industrial system (SA) from Alibaba. Our results show that our approach that is based on user action sequences with contextual information outperforms the other two approaches and can generate more representative load tests with similar throughput and CPU usage to the original field workload (i.e., mostly statistically insignificant or with small/trivial effect sizes). Such representative load tests are generated only based on a small number of clusters of users, leading to a low cost of conducting/maintaining such tests. Finally, we demonstrate that our approaches can detect injected users in the original field workloads with high precision and recall. Our paper demonstrates the importance of user action sequences with contextual information in the workload recovery of large-scale systems.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot5273,
  title = {An Experience Report of Generating Load Tests Using Log-Recovered Workloads at Varying Granularities of User Behaviour},
  author = {Jinfu Chen and Weiyi Shang and Ahmed E. Hassan and Yong Wang and Jiangbin Lin},
  booktitle = {ASE},
  year = {2019},
  doi = {10.1109/ase.2019.00068}
}