wrench::LRUServerlessEvictionPolicy
-
class LRUServerlessEvictionPolicy : public wrench::ServerlessEvictionPolicy
An eviction policy that evicts items (idle containers, in-RAM layers, on-disk layers) in LRU (Least Recently Used) order.
Public Functions
Method to pick idle containers to evict using the “LRU” policy.
- Parameters:
idle_containers – List of (idle) containers to sort
ram_space_to_free_up – Amount of RAM to free up
disk_space_to_free_up – Amount of disk to free up
- Returns:
A sorted list of (idle) containers
Method to pick layers to evict from disk using the “LRU” policy.
- Parameters:
node – the compute node where evictions take place
layers – candidate victim layers
ram_space_to_free_up – Amount of Disk to free up
disk_space_to_free_up – Amount of disk to free up
- Returns:
a set of layers
Method to pick layers to evict from RAM using the “LRU” policy.
- Parameters:
node – the compute node where the evictions are to take place
layers – candidate victim layers
ram_space_to_free_up – Amount of RAM to free up
disk_space_to_free_up – Amount of disk to free up
- Returns:
a set of layers