一句话:提出 WSMeter,一种基于生产环境作业行为、含新整体指标与统计模型的仓库级计算机性能评估方法。
仓库级计算机(WSC)的性能评估长期面临挑战:传统负载测试基准无法准确复现数千个共置作业的真实行为,而在生产环境中评估又缺乏能汇总大量作业的整体指标,且成本高、风险大。本文提出 WSMeter,一种利用在线生产环境进行低成本、低风险评估的方法。它首先定义了一个考虑作业分布不均的整体性能指标,再建立统计模型以刻画 WSC 固有的性能方差,从而以最少机器和风险完成评估。作者通过三个真实用例验证:在 WSC 升级中,仅用 0.9% 和 6.6% 的机器便准确识别出 7% 和 1% 的性能提升;朴素统计比较成本高 4 倍以上且有时无法区分细微差异。第三个用例中,云客户在仅占服务容量 2.3% 的开销下量化了软件优化的 +9.3% 收益。
Evaluating the comprehensive performance of a warehouse-scale computer (WSC) has been a long-standing challenge. Traditional load-testing benchmarks become ineffective because they cannot accurately reproduce the behavior of thousands of distinct jobs co-located on a WSC. We therefore evaluate WSCs using actual job behaviors in live production environments. From our experience of developing multiple generations of WSCs, we identify two major challenges of this approach: 1) the lack of a holistic metric that incorporates thousands of jobs and summarizes the performance, and 2) the high costs and risks of conducting an evaluation in a live environment. To address these challenges, we propose WSMeter, a cost-effective methodology to accurately evaluate a WSC's performance using a live production environment. We first define a new metric which accurately represents a WSC's overall performance, taking a wide variety of unevenly distributed jobs into account. We then propose a model to statistically embrace the performance variance inherent in WSCs, to conduct an evaluation with minimal costs and risks. We present three real-world use cases to prove the effectiveness of WSMeter. In the first two cases, WSMeter accurately discerns 7% and 1% performance improvements from WSC upgrades using only 0.9% and 6.6% of the machines in the WSCs, respectively. We emphasize that naive statistical comparisons incur much higher evaluation costs (> 4 times) and sometimes even fail to distinguish subtle differences. The third case shows that a cloud customer hosting two services on our WSC quantifies the performance benefits of software optimization (+9.3%) with minimal overheads (2.3% of the service capacity).