Cold-RL: Learning Cache Eviction with Offline Reinforcement Learning for NGINX
17 Aug · Aayush Gupta, Arpit Bhayani · arXiv:2508.12485
Web proxies such as NGINX commonly rely on least-recently-used (LRU) eviction, which is size agnostic and can thrash under periodic bursts and mixed object sizes. We introduce Cold-RL, a learned eviction policy for NGINX that replaces LRU's forced-expire path with a dueling Deep Q-Network served by an ONNX sidecar within a strict microsecond budget. On each eviction, Cold-RL samples the K least-recently-used…