wrench::ServerlessIdleContainerSelectionPolicy

class ServerlessIdleContainerSelectionPolicy : public wrench::ServerlessSchedulingPolicy

An abstract class to implement a serverless idle container selection policy.

Subclassed by wrench::ExpiringLatestServerlessIdleContainerSelectionPolicy

Public Functions

virtual std::pair<std::shared_ptr<ServerlessComputeNode>, std::shared_ptr<Container>> selectIdleContainer(const std::shared_ptr<ServerlessSchedulingState> &scheduling_state, const std::shared_ptr<Invocation> &invocation, const std::vector<std::shared_ptr<ServerlessComputeNode>> &candidate_nodes) = 0

Method to selection an idle container to (re)use.

Parameters:
  • scheduling_state – the scheduling state

  • invocation – the invocation to execute

  • candidate_nodes – the nodes that can be considered

Returns:

a ServerlessComputeNode/Container pair