Skip to content

Research Articles

Trace Sampling for Rare Latency Spikes: Tight Resource Limits

Selin Ternwell (Distributed Systems Group, Valehart Institute of Computational Science), Leila Alderfen (Distributed Systems Group, Glenwick University), Tomas Oakmarsh (Distributed Systems Group, Cairnwell Research Institute)

Vol. 2 No. 1 (2019) · pp. 105–119 · Published 8 July 2019

Abstract

This synthetic study compares retaining complete traces when the critical path exceeds a threshold with sampling requests uniformly at the same storage budget in a reduced operating budget with the same input mix. Each configuration is evaluated on the same 144 cases. In the 36 stress cases, a delayed child span must arrive after its parent trace has been reported; both configurations receive the same smaller allowance and cannot borrow capacity from later trials. 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. Across the full set, 117 cases meet the criterion with the first configuration and 108 with the second. The stress cases account for 27 and 20 passes, respectively. The stress results should be read alongside the full-set results rather than treated as a general performance guarantee. The practical trade-off is that tail-based retention requires memory while traces are incomplete. The paired design makes the comparison interpretable within the fixture. It does not establish the size of the effect in an independent deployment.

Keywords: distributed tracing, observability, latency, tight resource limits, synthetic evaluation

References

  1. 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.
  2. 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.
  3. Heigold, G., et al. (2013). Multilingual acoustic models using distributed deep neural networks. Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing, 8619–8623.
  4. Hill, F., Cho, K., & Korhonen, A. (2016). Learning distributed representations of sentences from unlabelled data. Proceedings of NAACL-HLT 2016, 1367–1377.
  5. Ho, Q., et al. (2013). More effective distributed ML via a stale synchronous parallel parameter server. Advances in Neural Information Processing Systems, 26, 1223–1231.
  6. Hunt, T., Zhu, Z., Xu, Y., Peter, S., & Witchel, E. (2016). Ryoan: A distributed sandbox for untrusted computation on secret data. Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation, 533–549.
  7. Jonas, E., Pu, Q., Venkataraman, S., Stoica, I., & Recht, B. (2017). Occupy the cloud: Distributed computing for the 99%. Proceedings of the 2017 Symposium on Cloud Computing, 445–451.
  8. Konečný, J., McMahan, H. B., Ramage, D., & Richtárik, P. (2016). Federated optimization: Distributed machine learning for on-device intelligence. arXiv:1610.02527.
  9. Le, Q., & Mikolov, T. (2014). Distributed representations of sentences and documents. Proceedings of the 31st International Conference on Machine Learning, 1188–1196.
  10. Li, M., et al. (2014). Scaling distributed machine learning with the parameter server. Proceedings of the 11th USENIX Symposium on Operating Systems Design and Implementation, 583–598.
  11. Liu, S., Qi, L., Qin, H., Shi, J., & Jia, J. (2018). Path aggregation network for instance segmentation. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 8759–8768.
  12. 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.
  13. Nelson, J., et al. (2015). Latency-tolerant software distributed shared memory. Proceedings of the 2015 USENIX Annual Technical Conference, 291–305.
  14. 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.
  15. Sergeev, A., & Del Balso, M. (2018). Horovod: Fast and easy distributed deep learning in TensorFlow. arXiv:1802.05799.
  16. Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.