首页> 外文会议>SIGMOD/PODS 2007 >Query Suspend and Resume*
【24h】

Query Suspend and Resume*

机译:查询挂起和继续*

获取原文

摘要

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.
机译:假设一个长期运行的分析查询正在数据库服务器上执行,并且已分配了大量的物理内存。一个高优先级的任务进来了,我们需要使用所有可用资源立即运行它。我们有几种选择。我们可以将旧查询换出到磁盘,但是写出较大的执行状态可能会花费太多时间。另一个选择是终止旧查询,并在新任务完成后重新启动它,但是我们将浪费旧查询已经执行的所有工作。另一种选择是在执行期间定期对查询进行检查点,但是传统的同步检查点会带来高开销。在本文中,我们提倡以数据库为中心的方法来实现查询暂停和恢复,其执行开销,可忽略的暂停成本和有效的恢复可以忽略不计。基本思想是让每个物理查询操作员根据自己的语义执行轻量级检查点,并通过一种新颖的契约机制在操作员之间协调异步检查点。在挂起时,我们为查询找到了一个优化的挂起计划,其中可能涉及将当前状态转储到磁盘并返回到先前的检查点的组合。该计划力求最小化暂停/恢复开销,同时遵守暂停时间的限制。我们的方法只需要对迭代器接口进行很小的更改,就已经在PREDATOR数据库系统中实现了。我们实施的实验证明了我们的方法比传统方法具有明显的优势。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号