wrench::FewestServerlessEvictionPolicy
-
class FewestServerlessEvictionPolicy : public wrench::ServerlessEvictionPolicy
An eviction policy that uses a heuristic to evict the smallest number of items (idle containers, in-RAM layers, on-disk layers)
Public Functions
Method to pick idle containers to evict using the “FEWEST” 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 “Fewest” policy.
- Parameters:
node – the compute node where the evictions are to 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:
Method to pick layers to evict from RAM using the “Fewest” 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: