A Novel Heuristic & Cache-Based Adaptive Prewarming Algorithm for Efficient Cold Start Mitigation in Serverless Computing
Sivaranjani SundaramAssistant Professor, PG Department of Information Technology and BCA, Dwaraka Doss Goverdhan Doss Vaishnav College, Chennai, Tamil Nadu, India. sivaranjani.dgvc@gmail.com0009-0005-3874-8879
Anandhi RamaniAssistant Professor, PG & Research Department of Computer Science, Dwaraka Doss Goverdhan Doss Vaishnav College, Chennai, Tamil Nadu, India. sekadhi@gmail.com0000-0002-7247-7567
K. RamyaAssistant Professor, PG Department of Information Technology and BCA, Dwaraka Doss Goverdhan Doss Vaishnav College, Chennai, Tamil Nadu, India. ramya.dgvc2024@gmail.com0009-0006-9546-743X
S. MalathyResearch Scholar, PG & Research Department of Computer Science, Dwaraka Doss Goverdhan Doss Vaishnav College, Chennai, Tamil Nadu, India. malathy10112001@gmail.com0009-0009-4452-9348
Serverless computing offers scalability and cost-efficient execution; however, cold-start latency from runtime setup, dependency loading, and resource allocation remains a critical issue for delay-sensitive applications. This research aims to build an adaptive, lightweight prewarming framework to minimize cold-start overhead while maintaining efficient resource utilization. To develop a Heuristic and Cache-based Adaptive Prewarming (HCAP) framework by combining workload-based function categorization, cold-start probability prediction, adaptive threshold-based prewarming, and LRU cache management. The framework constantly tracks function invocation behavior using a sliding window approach and categorizes functions based on their frequencies and inter-arrival properties into Hot, Warm, and Cold states. Trace-driven simulation is carried out to validate the performance of HCAP compared to the execution and static prewarming schemes based on cold start rate, Latency, resource utilization, and warm pool budget usage metrics. From the experiments, it is evident that HCAP lowers the cold start ratio to 9.7% from 42.8% when using the baseline execution approach and 18.5% when using the static prewarming method. In addition, HCAP achieves an average latency of 198 ms and a P95 latency of 360 ms. In terms of warm-pool budget usage, HCAP reduces it to 55.9% from 65.2% with the static prewarming approach. The component ablation analysis further confirms each component's contribution by eliminating heuristic classification, LRU caching, and adaptive threshold control to achieve latencies of 245 ms, 230 ms, and 220 ms, respectively. In summary, the suggested HCAP model offers an ideal trade-off between minimizing Latency and optimizing resources while ensuring adaptation and decision-making in a serverless environment.