[Paper Review] Batch is back: CasJobs, serving multi-TB data on the Web
This paper presents CasJobs, a scalable batch processing system built on SOAP-based Web services to manage long-running, resource-intensive queries on the Sloan Digital Sky Survey's multi-terabyte database. By enabling users to submit jobs to a distributed queue, store results in personal databases (MyDB), and perform local analysis, CasJobs reduces system load and improves data access efficiency, achieving reliable execution of complex queries without disrupting interactive services.
The Sloan Digital Sky Survey (SDSS) science database describes over 140 million objects and is over 1.5 TB in size. The SDSS Catalog Archive Server (CAS) provides several levels of query interface to the SDSS data via the SkyServer website. Most queries execute in seconds or minutes. However, some queries can take hours or days, either because they require non-index scans of the largest tables, or because they request very large result sets, or because they represent very complex aggregations of the data. These "monster queries" not only take a long time, they also affect response times for everyone else - one or more of them can clog the entire system. To ameliorate this problem, we developed a multi-server multi-queue batch job submission and tracking system for the CAS called CasJobs. The transfer of very large result sets from queries over the network is another serious problem. Statistics suggested that much of this data transfer is unnecessary; users would prefer to store results locally in order to allow further joins and filtering. To allow local analysis, a system was developed that gives users their own personal databases (MyDB) at the server side. Users may transfer data to their MyDB, and then perform further analysis before extracting it to their own machine. MyDB tables also provide a convenient way to share results of queries with collaborators without downloading them. CasJobs is built using SOAP XML Web services and has been in operation since May 2004.
Motivation & Objective
- To address performance degradation caused by long-running, complex queries on the SDSS database, which can block interactive queries and degrade system responsiveness.
- To reduce unnecessary data transfer over the network by allowing users to store and analyze results locally in personal databases (MyDB).
- To provide a scalable, fault-tolerant job submission and tracking system for large-scale data analysis in a web-based environment.
- To enable collaboration through secure, persistent sharing of query results without repeated downloads.
- To decouple resource-intensive operations from interactive query services to maintain system responsiveness.
Proposed method
- Design and deployment of a multi-server, multi-queue batch job system (CasJobs) using SOAP-based Web services for job submission and status tracking.
- Implementation of a personal database service (MyDB) that gives each user a private, server-side database for storing and processing query results.
- Use of asynchronous job execution to offload long-running queries from the main interactive query service.
- Support for large result set transfers by allowing users to store results in MyDB and extract them later, minimizing real-time network I/O.
- Integration of job tracking and status reporting via Web services to provide users with real-time updates on job progress and completion.
- Architectural separation of batch processing from interactive query processing to prevent performance interference.
Experimental results
Research questions
- RQ1How can a web-based system efficiently handle long-running, complex queries on multi-terabyte astronomical databases without degrading interactive performance?
- RQ2What architectural patterns enable scalable, fault-tolerant batch processing in a distributed, web-accessible environment?
- RQ3To what extent can local data storage and processing in user-specific databases reduce network transfer overhead and improve analysis efficiency?
- RQ4How can users securely share and collaborate on large query results without repeated data downloads?
- RQ5What mechanisms ensure reliable job tracking and status reporting in a high-throughput, distributed data processing system?
Key findings
- CasJobs successfully decoupled batch processing from interactive queries, significantly improving system responsiveness and scalability.
- The use of MyDB allowed users to store and perform local analysis on large result sets, reducing network transfer and enabling complex filtering and joins.
- The system achieved reliable execution of 'monster queries' that previously blocked or slowed down the main query service.
- By offloading heavy computations to a batch queue, the interactive response time for typical queries remained consistently low.
- The adoption of SOAP-based Web services enabled interoperability and platform independence in the job submission and tracking pipeline.
- The system demonstrated operational stability and performance improvements since its deployment in May 2004, supporting large-scale scientific data analysis.
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.