[Paper Review] Scientific Computing Meets Big Data Technology: An Astronomy Use Case
This paper proposes Kira, a Spark-based astronomy image processing toolkit that accelerates many-task scientific workloads by leveraging big data platforms. By exploiting data locality and Spark's fault tolerance, Kira SE processes a 1TB Sloan Digital Sky Survey dataset 2.5× faster than a C implementation on EC2, achieving performance competitive with HPC supercomputers.
Scientific analyses commonly compose multiple single-process programs into a dataflow. An end-to-end dataflow of single-process programs is known as a many-task application. Typically, tools from the HPC software stack are used to parallelize these analyses. In this work, we investigate an alternate approach that uses Apache Spark -- a modern big data platform -- to parallelize many-task applications. We present Kira, a flexible and distributed astronomy image processing toolkit using Apache Spark. We then use the Kira toolkit to implement a Source Extractor application for astronomy images, called Kira SE. With Kira SE as the use case, we study the programming flexibility, dataflow richness, scheduling capacity and performance of Apache Spark running on the EC2 cloud. By exploiting data locality, Kira SE achieves a 2.5x speedup over an equivalent C program when analyzing a 1TB dataset using 512 cores on the Amazon EC2 cloud. Furthermore, we show that by leveraging software originally designed for big data infrastructure, Kira SE achieves competitive performance to the C implementation running on the NERSC Edison supercomputer. Our experience with Kira indicates that emerging Big Data platforms such as Apache Spark are a performant alternative for many-task scientific applications.
Motivation & Objective
- To evaluate Apache Spark as a scalable, flexible, and fault-tolerant platform for scientific many-task applications in astronomy.
- To address the performance bottleneck in processing large-scale astronomical datasets using traditional HPC tools.
- To demonstrate that big data platforms can match or exceed HPC performance for data-intensive scientific workloads.
- To enable reuse of existing astronomy libraries within a modern dataflow execution environment.
- To assess Spark’s scheduling capacity, dataflow expressiveness, and support for heterogeneous storage systems like GlusterFS and HDFS.
Proposed method
- Built Kira, a distributed astronomy image processing toolkit using Apache Spark’s resilient distributed datasets (RDDs) and DAG-based task scheduling.
- Implemented Kira SE, a source extractor for astronomical images, using Spark’s rich dataflow patterns including pipeline, shuffle, and broadcast operations.
- Executed workloads on Amazon EC2 using a 64-node cluster of m2.4xlarge instances, processing the 1TB SDSS DR7 dataset with 176,938 tasks.
- Compared performance against a C-based implementation using HPC tools, running on both GlusterFS (shared file system) and the NERSC Edison supercomputer.
- Leveraged Spark’s data locality optimization to minimize I/O overhead and improve performance on commodity cloud infrastructure.
- Integrated existing astronomy libraries (e.g., for image convolution and source detection) into the Spark pipeline to ensure code reuse and interoperability.
Experimental results
Research questions
- RQ1Can Apache Spark effectively scale to support large-scale, data-intensive scientific workloads in astronomy with millions of tasks?
- RQ2How does Spark’s data locality and scheduling optimization impact performance compared to traditional HPC workflows on shared file systems?
- RQ3To what extent can big data platforms like Spark achieve performance comparable to HPC systems for scientific image processing?
- RQ4Can Spark natively integrate with existing astronomy software libraries without requiring major refactoring?
- RQ5What is the performance trade-off between using Spark on cloud infrastructure versus HPC clusters for scientific dataflows?
Key findings
- Kira SE achieved a 2.5× speedup over an equivalent C program when processing a 1TB dataset on 512 cores in the Amazon EC2 cloud, primarily due to superior data locality.
- Spark successfully managed over 100,000 tasks (176,938 for SDSS DR7) with linear scalability across increasing cluster and data sizes.
- Kira SE’s performance on EC2 was competitive with the C implementation on the NERSC Edison supercomputer, ranging from 18.5% slower to 75.1% faster depending on the workload.
- The integration of existing astronomy libraries into Spark was seamless, enabling reuse of well-tested code without modification.
- Spark’s fault tolerance and lineage tracking provided resilience against transient failures, a feature missing in MPI-based HPC workflows.
- By leveraging in-memory computation and optimized data shuffling, Spark reduced I/O and communication overhead, especially on shared file systems like GlusterFS.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.