Skip to main content

Query suspend and resume

Publication ,  Journal Article
Chandramouli, B; Bond, CN; Babu, S; Yang, J
Published in: Proceedings of the ACM SIGMOD International Conference on Management of Data
October 30, 2007

Suppose a long-running analytical query is executing on a database server and has been allocated a large amount of physical memory. A high-priority task comes in and we need to run it immediately with all available resources. We have several choices. We could swap out the old query to disk, but writing out a large execution state may take too much time. Another option is to terminate the old query and restart it after the new task completes, but we would waste all the work already performed by the old query. Yet another alternative is to periodically checkpoint the query during execution, but traditional synchronous checkpointing carries high overhead. In this paper, we advocate a database-centric approach to implementing query suspension and resumption, with negligible execution overhead, bounded suspension cost, and efficient resumption. The basic idea is to let each physical query operator perform lightweight checkpointing according to its own semantics, and coordinate asynchronous checkpoints among operators through a novel contracting mechanism. At the time of suspension, we find an optimized suspend plan for the query, which may involve a combination of dumping current state to disk and going back to previous checkpoints. The plan seeks to minimize the suspend/resume overhead while observing the constraint on suspension time. Our approach requires only small changes to the iterator interface, which we have implemented in the PREDATOR database system. Experiments with our implementation demonstrate significant advantages of our approach over traditional alternatives. Copyright 2007 ACM.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

October 30, 2007

Start / End Page

557 / 568
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Chandramouli, B., Bond, C. N., Babu, S., & Yang, J. (2007). Query suspend and resume. Proceedings of the ACM SIGMOD International Conference on Management of Data, 557–568. https://doi.org/10.1145/1247480.1247542
Chandramouli, B., C. N. Bond, S. Babu, and J. Yang. “Query suspend and resume.” Proceedings of the ACM SIGMOD International Conference on Management of Data, October 30, 2007, 557–68. https://doi.org/10.1145/1247480.1247542.
Chandramouli B, Bond CN, Babu S, Yang J. Query suspend and resume. Proceedings of the ACM SIGMOD International Conference on Management of Data. 2007 Oct 30;557–68.
Chandramouli, B., et al. “Query suspend and resume.” Proceedings of the ACM SIGMOD International Conference on Management of Data, Oct. 2007, pp. 557–68. Scopus, doi:10.1145/1247480.1247542.
Chandramouli B, Bond CN, Babu S, Yang J. Query suspend and resume. Proceedings of the ACM SIGMOD International Conference on Management of Data. 2007 Oct 30;557–568.

Published In

Proceedings of the ACM SIGMOD International Conference on Management of Data

DOI

ISSN

0730-8078

Publication Date

October 30, 2007

Start / End Page

557 / 568