skip to main content
10.1145/2452376.2452392acmotherconferencesArticle/Chapter ViewAbstractPublication PagesedbtConference Proceedingsconference-collections
research-article

Rapid experimentation for testing and tuning a production database deployment

Published:18 March 2013Publication History

ABSTRACT

The need to perform testing and tuning of database instances with production-like workloads (W), configurations (C), data (D), and resources (R) arises routinely. The further W, C, D, and R used in testing and tuning deviate from what is observed on the production database instance, the lower is the trustworthiness of the testing and tuning tasks done. For example, it is common to hear about performance degradation observed after the production database is upgraded from one software version to another. A typical cause of this problem is that the W, C, D, or R used during upgrade testing differed in some way from that on the production database. Performing testing and tuning tasks in principled and automated ways is very important, especially since---spurred by innovations in cloud computing---the number of database instances that a database administrator (DBA) has to manage is growing rapidly.

We present Flex, a platform for trustworthy testing and tuning of production database instances. Flex gives DBAs a high-level language, called Slang, to specify definitions and objectives regarding running experiments for testing and tuning. Flex's orchestrator schedules and runs these experiments in an automated manner that meets the DBA-specified objectives. Flex has been fully prototyped. We present results from a comprehensive empirical evaluation that reveals the effectiveness of Flex on diverse problems such as upgrade testing, near-real-time testing to detect corruption of data, and server configuration tuning. We also report on our experiences taking some of the testing and tuning software described in the literature and porting them to run on the Flex platform.

References

  1. Amazon Web Services. aws.amazon.com.Google ScholarGoogle Scholar
  2. P. Bodik, R. Griffith, C. Sutton, A. Fox, M. I. Jordan, and D. A. Patterson. Automatic Exploration of Datacenter Performance Regimes. In Automated Control for Datacenters and Clouds, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. N. Borisov and S. Babu. Rapid Experimentation for Testing and Tuning a Production Database Deployment. Technical report, Duke University, 2012. http://bit.ly/Hz6U5w.Google ScholarGoogle Scholar
  4. N. Borisov, S. Babu, N. Mandagere, and S. Uttamchandani. Warding off the Dangers of Data Corruption with Amulet. In SIGMOD, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Business Process Execution Language. http://bit.ly/HI1LFY.Google ScholarGoogle Scholar
  6. S. Chaudhuri, V. R. Narasayya, and R. Ramamurthy. Exact Cardinality Query Optimization for Optimizer Testing. PVLDB, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Data corruption in CouchDB. couchdb.apache.org/notice/1.0.1.html.Google ScholarGoogle Scholar
  8. Facebook dark launch. http://on.fb.me/RWsOO.Google ScholarGoogle Scholar
  9. S. Duan, V. Thummala, and S. Babu. Tuning Database Configuration Parameters with iTuned. In VLDB, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Running MySQL on Amazon EC2 with EBS. http://bit.ly/b7SWwg.Google ScholarGoogle Scholar
  11. A. J. Elmore, S. Das, D. Agrawal, and A. E. Abbadi. Zephyr: Live Migration in Shared Nothing Databases for Elastic Cloud Platforms. In SIGMOD, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. D. J. Farrar. Schema-driven Experiment Management: Declarative Testing with Dexterity. In DBTest, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. L. Galanis, S. Buranawatanachoke, et al. Oracle Database Replay. In SIGMOD, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. F. Haftmann, D. Kossmann, and E. Lo. Parallel Execution of Test Runs for Database Application Systems. In VLDB, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. B. Hindman, A. Konwinski, M. Zaharia, A. Ghodsi, A. Joseph, R. Katz, S. Shenker, and I. Stoica. Mesos: A Platform for Fine-Grained Resource Sharing in the Data Center. In USENIX, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. The Exploding Digital Universe. http://bit.ly/bzgTBq.Google ScholarGoogle Scholar
  17. R. Kohavi, T. Crook, and R. Longbotham. Online Experimentation at Microsoft. In Workshop on Data Mining Case Studies and Practice Prize, 2010.Google ScholarGoogle Scholar
  18. Data corruption at Ma.gnolia.com. en.wikipedia.org/wiki/Gnolia.Google ScholarGoogle Scholar
  19. MySQL upgrade from 4 to 5. http://bit.ly/sV9PIf.Google ScholarGoogle Scholar
  20. Oracle online index rebuild. http://bit.ly/trDrGe.Google ScholarGoogle Scholar
  21. Oracle upgrade regression. http://bit.ly/uOHwB1.Google ScholarGoogle Scholar
  22. PostgreSQL TPCH bug. http://bit.ly/rIJK1w.Google ScholarGoogle Scholar
  23. Salesforce Sandbox. http://bit.ly/7Bi1jU.Google ScholarGoogle Scholar
  24. S. Subramanian, Y. Zhang, R. Vaidyanathan, H. S. Gunawi, A. C. Arpaci-Dusseau, R. H. Arpaci-Dusseau, and J. F. Naughton. Impact of Disk Corruption on Open-Source DBMS. In ICDE, 2010.Google ScholarGoogle ScholarCross RefCross Ref
  25. UpSizeR. http://upsizer.comp.nus.edu.sg/upsizer/.Google ScholarGoogle Scholar
  26. K. Yagoub, P. Belknap, B. Dageville, K. Dias, S. Joshi, and H. Yu. Oracle's SQL Performance Analyzer. DEB, 2008.Google ScholarGoogle Scholar
  27. W. Zheng, R. Bianchini, G. J. Janakiraman, J. R. Santos, and Y. Turner. JustRunIt: Experiment-Based Management of Virtualized Data Centers. In USENIX, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Rapid experimentation for testing and tuning a production database deployment

            Recommendations

            Comments

            Login options

            Check if you have access through your login credentials or your institution to get full access on this article.

            Sign in
            • Published in

              cover image ACM Other conferences
              EDBT '13: Proceedings of the 16th International Conference on Extending Database Technology
              March 2013
              793 pages
              ISBN:9781450315975
              DOI:10.1145/2452376

              Copyright © 2013 ACM

              Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

              Publisher

              Association for Computing Machinery

              New York, NY, United States

              Publication History

              • Published: 18 March 2013

              Permissions

              Request permissions about this article.

              Request Permissions

              Check for updates

              Qualifiers

              • research-article

              Acceptance Rates

              Overall Acceptance Rate7of10submissions,70%

            PDF Format

            View or Download as a PDF file.

            PDF

            eReader

            View online with eReader.

            eReader