wrench::RandomServerlessInvocationOrderingPolicy

class RandomServerlessInvocationOrderingPolicy : public wrench::ServerlessInvocationOrderingPolicy

A policy that orders the (schedulable) invocations in random order.

Public Functions

explicit RandomServerlessInvocationOrderingPolicy(unsigned int seed)

Constructor.

Parameters:

seed – The seed of the RNG

virtual std::vector<std::shared_ptr<Invocation>> sortSchedulableInvocations(const std::shared_ptr<ServerlessSchedulingState> &scheduling_state, const std::vector<std::shared_ptr<Invocation>> &invocations) override

Method to sort the schedulable invocations.

Parameters:
  • scheduling_state – the scheduling state

  • invocations – the invocations

Returns:

a sorted list of invocations