Skip to content

Research Articles

Trace Sampling for Rare Latency Spikes: Changing Conditions

Ravi Belmere (Distributed Systems Group, Pinewick School of Engineering), Juno Finchmere (Distributed Systems Group, Eastmarsh Institute for Applied Computing)

Vol. 3 No. 1 (2020) · pp. 105–118 · Published 11 September 2020

Abstract

We ask whether retaining complete traces when the critical path exceeds a threshold performs better than sampling requests uniformly at the same storage budget in an operating profile that changes halfway through each run. The evaluation is synthetic. Each configuration is evaluated on the same 300 cases. In the 75 stress cases, a delayed child span must arrive after its parent trace has been reported; the final part of each run is deliberately drawn from a different regime than the initial calibration 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 first configuration passes 252 of 300 cases, versus 238 for the comparator. In the stress subset, the respective counts are 51 and 43 of 75. The alternative exceeds the comparator overall by 4.7 percentage points. The practical trade-off is that tail-based retention requires memory while traces are incomplete. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.

Keywords: distributed tracing, observability, latency, changing conditions, synthetic evaluation

References

  1. Alon, U., Zilberstein, M., Levy, O., & Yahav, E. (2019). code2vec: Learning distributed representations of code. Proceedings of the ACM on Programming Languages, 3(POPL), Article 40.
  2. Chang, E. Y., et al. (2007). PSVM: Parallelizing support vector machines on distributed computers. Advances in Neural Information Processing Systems, 20.
  3. 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.
  4. Chen, J., Ma, T., & Xiao, C. (2018). FastGCN: Fast learning with graph convolutional networks via importance sampling. arXiv:1801.10247.
  5. Decencière, E., et al. (2014). Feedback on a publicly distributed image database: The Messidor database. Image Analysis & Stereology, 33(3), 231–234.
  6. 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.
  7. 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.
  8. Gu, J., et al. (2019). Tiresias: A GPU cluster manager for distributed deep learning. Proceedings of the 16th USENIX Symposium on Networked Systems Design and Implementation, 485–500.
  9. Hashemi, S. H., Jyothi, S. A., & Campbell, R. H. (2019). TicTac: Accelerating distributed deep learning with communication scheduling. Proceedings of Machine Learning and Systems, 1, 418–430.
  10. 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.
  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. Peng, Y., et al. (2019). A generic communication scheduler for distributed DNN training acceleration. Proceedings of the 27th ACM Symposium on Operating Systems Principles, 16–29.
  16. Seide, F., Fu, H., Droppo, J., Li, G., & Yu, D. (2014). 1-bit stochastic gradient descent and its application to data-parallel distributed training of speech DNNs. Proceedings of Interspeech 2014, 1058–1062.
  17. Sigelman, B. H., et al. (2010). Dapper, a large-scale distributed systems tracing infrastructure (Technical Report dapper-2010-1). Google.