Measuring Spark on AWS: A Case Study on Mining Scientific Publications with Annotation Query
Darin McBeath, Ron Daniel Jr

TL;DR
This study evaluates how different AWS Spark cluster configurations affect the performance of Annotation Query, a tool for NLP annotation querying, highlighting cost-performance trade-offs and optimization strategies.
Contribution
It provides an empirical analysis of AQ's runtime performance on AWS Spark clusters, considering cluster size, node type, and storage options.
Findings
Cluster size significantly impacts performance when skew is avoided.
Persisting annotations on SSDs offers minimal performance difference compared to in-memory storage.
Storage-optimized instances perform best with fixed node count, but compute-optimized nodes offer better cost-performance balance.
Abstract
Annotation Query (AQ) is a program that provides the ability to query many different types of NLP annotations on a text, as well as the original content and structure of the text. The query results may provide new annotations, or they may select subsets of the content and annotations for deeper processing. Like GATE's Mimir, AQ is based on region algebras. Our AQ is implemented to run on a Spark cluster. In this paper we look at how AQ's runtimes are affected by the size of the collection, the number of nodes in the cluster, the type of node, and the characteristics of the queries. Cluster size, of course, makes a large difference in performance so long as skew can be avoided. We find that there is minimal difference in performance when persisting annotations serialized to local SSD drives as opposed to deserialized into local memory. We also find that if the number of nodes is kept…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsWeb Data Mining and Analysis · Topic Modeling · Spam and Phishing Detection
