Why Kubernetes Cannot Contain a Full Lazy-Pulling Cache: Two Impossibility Results and a Bounded, Honest Design for Model Serving
Georgii Kliukovkin
Abstract
Lazy container-image pulling makes cold starts of autoscaled model-serving fleets on Kubernetes nearly independent of model size, but it moves the model's bytes into a node-level cache that the platform neither bounds nor accounts for. This article establishes, by experiment, two impossibility results for that cache. A monitoring-side remedy cannot catch its failure: a sentinel readiness probe stays green while 272 of 280 files are unreadable. A platform-side remedy cannot contain it: kubelet, given full disk-pressure visibility, frees 0 bytes by image garbage collection and falls back to evicting pods (26 across the campaign, the reading pod among them), because its reclamation actuator is keyed to an accounting that does not know the cache exists. The article then eliminates the failure class inside the component that owns the bytes, with no change to kubelet or the container runtime interface, by two design rules: a byte budget whose pressure signal is keyed to filesystem truth, so that a never-blocking, lossy accounting still enforces a hard bound (held against about 301,000 dropped updates), and pass-through semantics under which a failed cache write never becomes a failed read, with the coupling traced to a single io.MultiWriter. Across six pre-specified campaigns on AWS, upstream stargz-snapshotter fails 273 of 280 model files at 90% cache pre-fill; the proposed system reads all 150.3 GB with zero errors at +18.5% completion cost and holds the budget under a live read, co-tenancy, and a three-node fleet. A source audit shows the missing bound generalizes to SOCI and Nydus. The implementation is open source and has been proposed upstream.
Create a lesson
Related papers
TideCache: Efficient Hybrid LLM Serving with Transparent Cache Management and Layer-Wise Streaming
Shared title terminology · Jinbin Luo, Xiaozhe Yao, Shang Yang et al.
Twindex: Index Cache Offloading with Coarse-to-Fine Selection for Long-Context Sparse-Attention Serving
Shared title terminology · Yuxuan Xia, Jiakun Fan, Han Meng et al.
TileCache: Serving Multi-Round Diffusion Image Editing with Compressed Activation Caches
Shared title terminology · Yuyang Tian, Desen Sun, Shuncheng Jie et al.
Callo: Serving Cache-Miss Requests with Speculative Decoding on Invalidated KV under Prefill-Decode Disaggregation
Shared title terminology · Jianjun Ou, Matthew Lentz
Bursts That Outlast Themselves: Persistent Degradation in Prefix-Cached Agent Serving
Shared title terminology · Wen Huang, Jack Liu
OOM: Offload-Optimized Full-Parameter MoE Training via Memory-Execution Co-Design
Shared title terminology · Ruijia Yang, Shiyuan Lin, Chengxi Liao et al.