Skip to content

Research Articles

Trace Sampling for Rare Latency Spikes: Heterogeneous Partitions

Leila Fieldmere (Machine Learning Laboratory, Pinewick School of Engineering), Uma Kestrelby (Distributed Systems Group, Valehart Institute of Computational Science), Tomas Bellwarden (Distributed Systems Group, Valehart Institute of Computational Science), Juno Valehart (Distributed Systems Group, Valehart Institute of Computational Science)

Vol. 6 No. 1 (2023) · pp. 82–97 · Published 30 May 2023

Abstract

The comparison uses a collection of partitions with different input and resource profiles to evaluate two choices: retaining complete traces when the critical path exceeds a threshold and sampling requests uniformly at the same storage budget. All outcomes are synthetic. Each configuration is evaluated on the same 160 cases. In the 40 stress cases, a delayed child span must arrive after its parent trace has been reported; held-out partitions are selected before configuration so that tuning cannot target their particular failure cases. A case counts as a pass only if it meets this criterion: a test incident must yield enough linked spans to identify the delayed stage. Each pair receives the same workload and interruption schedule. Results include timed-out requests and unfinished recovery attempts, preventing either configuration from appearing faster by dropping difficult work. The comparator passes 113 of 160 cases and the alternative passes 116. For the 40 stress cases alone, the counts are 18 and 24, respectively. The aggregate count does not establish that the alternative is preferable at every operating point. The practical trade-off is that tail-based retention requires memory while traces are incomplete. The result describes the chosen case mix. Before applying the finding, a follow-up benchmark would need to vary the share of difficult cases without relaxing the acceptance criteria.

Keywords: distributed tracing, observability, latency, heterogeneous partitions, synthetic evaluation

References

  1. Baumgärtner, L., et al. (2020). Mind the GAP: Security & privacy risks of contact tracing apps. arXiv:2006.05914.
  2. Chang, K., et al. (2018). Distributed deep learning networks among institutions for medical imaging. Journal of the American Medical Informatics Association, 25(8), 945–954.
  3. Cho, H., Ippolito, D., & Yu, Y. W. (2020). Contact tracing mobile apps for COVID-19: Privacy considerations and related trade-offs. arXiv:2003.11511.
  4. Erlingsson, Ú., Peinado, M., Peter, S., & Budiu, M. (2011). Fay: Extensible distributed tracing from kernels to clusters. Proceedings of the 23rd ACM Symposium on Operating Systems Principles, 311–326.
  5. Fonseca, R., Porter, G., Katz, R. H., Shenker, S., & Stoica, I. (2007). X-Trace: A pervasive network tracing framework. Proceedings of the 4th USENIX Symposium on Networked Systems Design and Implementation, 271–284.
  6. Isard, M., Budiu, M., Yu, Y., Birrell, A., & Fetterly, D. (2007). Dryad: Distributed data-parallel programs from sequential building blocks. Proceedings of the 2nd ACM SIGOPS/EuroSys European Conference on Computer Systems, 59–72.
  7. Lin, Y., Han, S., Mao, H., Wang, Y., & Dally, W. J. (2017). Deep gradient compression: Reducing the communication bandwidth for distributed training. arXiv:1712.01887.
  8. Liu, M., Cui, T., Schuh, H., Krishnamurthy, A., Peter, S., & Gupta, K. (2019). Offloading distributed applications onto SmartNICs using iPipe. Proceedings of the ACM Special Interest Group on Data Communication, 318–333.
  9. Mace, J., Roelke, R., & Fonseca, R. (2015). Pivot tracing: Dynamic causal monitoring for distributed systems. Proceedings of the 25th Symposium on Operating Systems Principles, 378–393.
  10. Nelson, J., et al. (2015). Latency-tolerant software distributed shared memory. Proceedings of the 2015 USENIX Annual Technical Conference, 291–305.
  11. Ousterhout, K., Wendell, P., Zaharia, M., & Stoica, I. (2013). Sparrow: Distributed, low latency scheduling. Proceedings of the 24th ACM Symposium on Operating Systems Principles, 69–84.
  12. Pollack, J. B. (1990). Recursive distributed representations. Artificial Intelligence, 46(1–2), 77–105.
  13. Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.
  14. Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., & Chun, B.-G. (2022). Orca: A distributed serving system for transformer-based generative models. Proceedings of the 16th USENIX Symposium on Operating Systems Design and Implementation, 521–538.
  15. Zheng, L., et al. (2022). Alpa: Automating inter- and intra-operator parallelism for distributed deep learning. Proceedings of the 16th USENIX Symposium on Operating Systems Design and Implementation, 559–578.