Skip to content

Research Articles

Managing Skew in Stream Joins: Cold Versus Warm Runs

Ravi Hartfen (Data Engineering Group, Kestrelby Institute of Technology), Emil Finchmere (Data Engineering Group, Ivermere University), Amari Brookvala (Distributed Systems Group, Kestrelby Institute of Technology), Idris Alderwick (Data Engineering Group, Ivermere University)

Vol. 3 No. 1 (2022) · pp. 1–16 · Published 25 January 2022

Abstract

The comparison uses a mix of fresh-start and steady-state trials to evaluate two choices: splitting high-frequency keys across work partitions and partitioning solely by the join key. All outcomes are synthetic. Each configuration is evaluated on the same 160 cases. In the 40 stress cases, one key must concentrate both input streams; initialization cost is kept in the comparison instead of discarding the first completed trial. A case counts as a pass only if it meets this criterion: results must be correct and complete within the work budget. The replay retains source versions and arrival order. A reference output built from the complete synthetic history is used to distinguish a fast response from one that is both current and correct. The first configuration passes 130 of 160 cases, versus 121 for the comparator. In the stress subset, the respective counts are 30 and 23 of 40. The alternative exceeds the comparator overall by 5.6 percentage points. The practical trade-off is that replicating one join input increases network traffic. A subsequent evaluation should set tolerances independently and repeat the comparison on workloads not used to select the configuration.

Keywords: distributed joins, data skew, pipelines, cold versus warm runs, synthetic evaluation

References

  1. Andoni, A., & Indyk, P. (2006). Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. Proceedings of the 47th Annual IEEE Symposium on Foundations of Computer Science, 459–468.
  2. André, F., Kermarrec, A.-M., & Le Scouarnec, N. (2015). Cache locality is not enough: High-performance nearest neighbor search with product quantization fast scan. Proceedings of the VLDB Endowment, 9(4), 288–299.
  3. Chang, E. Y., et al. (2007). PSVM: Parallelizing support vector machines on distributed computers. Advances in Neural Information Processing Systems, 20.
  4. Decencière, E., et al. (2014). Feedback on a publicly distributed image database: The Messidor database. Image Analysis & Stereology, 33(3), 231–234.
  5. Izacard, G., Caron, M., Hosseini, L., Riedel, S., Bojanowski, P., Joulin, A., & Grave, E. (2021). Towards unsupervised dense information retrieval with contrastive learning. arXiv:2112.09118v1. Preprint
  6. Kreps, J., Narkhede, N., & Rao, J. (2011). Kafka: A distributed messaging system for log processing. Proceedings of the NetDB Workshop.
  7. Larson, P.-Å., Blanas, S., Diaconu, C., Freedman, C., Patel, J. M., & Zwilling, M. (2011). High-performance concurrency control mechanisms for main-memory databases. Proceedings of the VLDB Endowment, 5(4), 298–309.
  8. Low, Y., Bickson, D., Gonzalez, J., Guestrin, C., Kyrola, A., & Hellerstein, J. M. (2012). Distributed GraphLab: A framework for machine learning and data mining in the cloud. Proceedings of the VLDB Endowment, 5(8), 716–727.
  9. Motwani, R., et al. (2003). Query processing, resource management, and approximation in a data stream management system. Proceedings of the First Biennial Conference on Innovative Data Systems Research.
  10. Muja, M., & Lowe, D. G. (2014). Scalable nearest neighbor algorithms for high dimensional data. IEEE Transactions on Pattern Analysis and Machine Intelligence, 36(11), 2227–2240.
  11. Mullapudi, R. T., Adams, A., Sharlet, D., Ragan-Kelley, J., & Fatahalian, K. (2016). Automatically scheduling Halide image processing pipelines. ACM Transactions on Graphics, 35(4), Article 83.
  12. Ragan-Kelley, J., Barnes, C., Adams, A., Paris, S., Durand, F., & Amarasinghe, S. (2013). Halide: A language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines. Proceedings of the 34th ACM SIGPLAN Conference on Programming Language Design and Implementation, 519–530.
  13. Turney, P. D., & Pantel, P. (2010). From frequency to meaning: Vector space models of semantics. Journal of Artificial Intelligence Research, 37, 141–188.