Log2: A Cost-Aware Logging Mechanism for Performance Diagnosis
Rui Ding, Hucheng Zhou, Jian-Guang Lou, Hongyu Zhang, and Qingwei Lin, Microsoft Research; Qiang Fu, Microsoft; Dongmei Zhang, Microsoft Research; Tao Xie, University of Illinois at Urbana-Champaign
Logging has been a common practice for monitoring and diagnosing performance issues. However, logging comes at a cost, especially for large-scale online service systems. First, the overhead incurred by intensive logging is non-negligible. Second, it is costly to diagnose a performance issue if there are a tremendous amount of redundant logs. Therefore, we believe that it is important to limit the overhead incurred by logging, without sacrificing the logging effectiveness. In this paper we propose Log2, a cost-aware logging mechanism. Given a “budget” (defined as the maximum volume of logs allowed to be output in a time interval), Log2 makes the "whether to log" decision through a two-phase filtering mechanism. In the first phase, a large number of irrelevant logs are discarded efficiently. In the second phase, useful logs are cached and output while complying with logging budget. In this way, Log2 keeps the useful logs and discards the less useful ones. We have implemented Log2 and evaluated it on an open source system as well as a real-world online service system from Microsoft. The experimental results show that Log2 can control logging overhead while preserving logging effectiveness.
Open Access Media
USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.
author = {Rui Ding and Hucheng Zhou and Jian-Guang Lou and Hongyu Zhang and Qingwei Lin and Qiang Fu and Dongmei Zhang and Tao Xie},
title = {Log2: A {Cost-Aware} Logging Mechanism for Performance Diagnosis},
booktitle = {2015 USENIX Annual Technical Conference (USENIX ATC 15)},
year = {2015},
isbn = {978-1-931971-225},
address = {Santa Clara, CA},
pages = {139--150},
url = {https://www.usenix.org/conference/atc15/technical-session/presentation/ding},
publisher = {USENIX Association},
month = jul
}
connect with us