SLO-AWARE CPU RESOURCE ISOLATION AND ADAPTIVE SCHEDULING FOR MIXED WORKLOADS IN CLOUD DATABASE SYSTEMS

Authors

  • YiHan Wang (Corresponding Author) University of Pennsylvania, Philadelphia, PA, USA.
  • SuChuan Xing Duke University, Durham, NC, USA.

Keywords:

Cloud databases, HTAP, Performance isolation, Tail latency, CPU scheduling, Conformal prediction

Abstract

Cloud database services increasingly co-locate latency-critical transactional (OLTP) requests and throughput-oriented analytical (OLAP) queries on the same virtual cores, which makes CPU isolation a first-order determinant of both tail latency and utilization. We first quantify this tension on a real testbed: when TPC-H queries on DuckDB share a core with a TPC-C-like SQLite workload under the default Linux fair scheduler, OLTP p99 latency grows by 5.4–7.6×, whereas the SCHED_IDLE class preserves the tail but lengthens transactions that start on a just-harvested core by 15% and lowers analytical efficiency to 0.87. Building on these measurements, we propose SLICE, an SLO-aware CPU isolation and adaptive scheduling framework that selects, every second, the combination of dedicated OLTP cores, dedicated OLAP cores and idle-class harvesting that maximizes analytical capacity subject to a calibrated p99 bound. SLICE couples an M/G/k tail-latency model with online interference estimation and damped load forecasting, and wraps the model in a Mondrian conformal PID calibrator that drives the long-run frequency of bound violations to a target risk budget; a 100-ms guard absorbs residual bursts. Trace-driven experiments with three Azure production request traces, calibrated by the testbed measurements, show that SLICE keeps SLO-violating seconds at 0.11–0.67%, the lowest among seven policies, while delivering 2.01× the analytical throughput of peak-provisioned partitioning and 26% more than a PARTIES-style controller that violates the SLO 2.2× as often.

References

[1] Zhang C, Li G, Zhang J, et al. HTAP databases: A survey. IEEE Transactions on Knowledge and Data Engineering, 2024. DOI: 10.1109/TKDE.2024.3389693.

[2] Huang D, Liu Q, Cui Q, et al. TiDB: A Raft-based HTAP database. Proceedings of the VLDB Endowment, 2020, 13(12): 3072-3084.

[3] Wang J, Li T L, Song H Z, et al. PolarDB-IMCI: A cloud-native HTAP database system at Alibaba. Proceedings of the ACM on Management of Data, 2023, 1(2): 199.

[4] van Renen A, Horn D, Pfeil P, et al. Why TPC is not enough: An analysis of the Amazon Redshift fleet. Proceedings of the VLDB Endowment, 2024, 17(11): 3694-3706.

[5] Dean J, Barroso L A. The tail at scale. Communications of the ACM, 2013, 56(2): 74-80.

[6] Narasayya V, Das S, Syamala M, et al. SQLVM: Performance isolation in multi-tenant relational database-as-a-service. In: Proceedings of the 6th Biennial Conference on Innovative Data Systems Research (CIDR), 2013.

[7] Das S, Narasayya V R, Li F, et al. CPU sharing techniques for performance isolation in multi-tenant relational database-as-a-service. Proceedings of the VLDB Endowment, 2013, 7(1): 37-48.

[8] Leverich J, Kozyrakis C. Reconciling high server utilization and sub-millisecond quality-of-service. In: Proceedings of the 9th European Conference on Computer Systems (EuroSys), 2014: 4.

[9] Lo D, Cheng L, Govindaraju R, et al. Heracles: Improving resource efficiency at scale. In: Proceedings of the 42nd Annual International Symposium on Computer Architecture (ISCA), 2015.

[10] Chen S, Delimitrou C, Martínez J F. PARTIES: QoS-aware resource partitioning for multiple interactive services. In: Proceedings of the 24th International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), 2019: 107-120.

[11] Wang Z, Li P, Liang C-J M, et al. Autothrottle: A practical bi-level approach to resource management for SLO-targeted microservices. In: Proceedings of the 21st USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2024.

[12] Angelopoulos A N, Candès E J, Tibshirani R J. Conformal PID control for time series prediction. In: Advances in Neural Information Processing Systems (NeurIPS), 2023, 36.

[13] Shahrad M, Fonseca R, Goiri Í, et al. Serverless in the wild: Characterizing and optimizing the serverless workload at a large cloud provider. In: Proceedings of the USENIX Annual Technical Conference (ATC), 2020.

[14] Cole R, Funke F, Giakoumakis L, et al. The mixed workload CH-benCHmark. In: Proceedings of the 4th International Workshop on Testing Database Systems (DBTest), 2011.

[15] Stoica I, Abdel-Wahab H. Earliest eligible virtual deadline first: A flexible and accurate mechanism for proportional share resource allocation. Department of Computer Science, Old Dominion University, Norfolk, VA, USA, Technical Report TR-95-22, 1995.

[16] Wang Y, Arya K, Kogias M, et al. SmartHarvest: Harvesting idle CPUs safely and efficiently in the cloud. In: Proceedings of the 16th European Conference on Computer Systems (EuroSys), 2021.

[17] Ousterhout A, Fried J, Behrens J, et al. Shenango: Achieving high CPU efficiency for latency-sensitive datacenter workloads. In: Proceedings of the 16th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2019.

[18] Fried J, Ruan Z, Ousterhout A, et al. Caladan: Mitigating interference at microsecond timescales. In: Proceedings of the 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2020: 281-297.

[19] Raasveldt M, Mühleisen H. DuckDB: An embeddable analytical database. In: Proceedings of the ACM SIGMOD International Conference on Management of Data, 2019: 1981-1984.

[20] Mars J, Tang L, Hundt R, et al. Bubble-Up: Increasing utilization in modern warehouse scale computers via sensible co-locations. In: Proceedings of the 44th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), 2011: 248-259.

[21] Harchol-Balter M. Performance Modeling and Design of Computer Systems: Queueing Theory in Action. Cambridge, U.K.: Cambridge University Press, 2013.

[22] Vovk V, Gammerman A, Shafer G. Algorithmic Learning in a Random World. New York, NY, USA: Springer, 2005.

[23] Gibbs I, Candès E. Adaptive conformal inference under distribution shift. In: Advances in Neural Information Processing Systems (NeurIPS), 2021, 34.

[24] Leis V, Boncz P, Kemper A, et al. Morsel-driven parallelism: A NUMA-aware query evaluation framework for the many-core age. In: Proceedings of the ACM SIGMOD International Conference on Management of Data, 2014: 743-754.

[25] Makreshanski D, Giceva J, Barthels C, et al. BatchDB: Efficient isolated execution of hybrid OLTP+OLAP workloads for interactive applications. In: Proceedings of the ACM SIGMOD International Conference on Management of Data, 2017: 37-50.

[26] Raza A, Chrysogelos P, Anadiotis A C, et al. Adaptive HTAP through elastic resource scheduling. In: Proceedings of the ACM SIGMOD International Conference on Management of Data, 2020: 2043-2054.

[27] Wagner B, Kohn A, Neumann T. Self-tuning query scheduling for analytical workloads. In: Proceedings of the ACM SIGMOD International Conference on Management of Data, 2021.

Downloads

Published

2024-12-31

Issue

Section

Research Article

DOI:

How to Cite

YiHan Wang, SuChuan Xing. Slo-Aware Cpu Resource Isolation And Adaptive Scheduling For Mixed Workloads In Cloud Database Systems. AI and Data Science Journal. 2024, 1(1): 142-151. DOI: https://doi.org/10.61784/adsj4046.