RoundRobinStrategy.place#

RoundRobinStrategy.place(_, application, __, placement_view)[source]

Performs the placement according to a round-robin logic.

Places the services of an application on the infrastructure nodes, attempting to distribute them evenly.

Parameters:
  • _ (Infrastructure) – The infrastructure to place the application on.

  • application (Application) – The application to place on the infrastructure.

  • __ (dict[str, Placement]) – The placement of all the applications in the simulations.

  • placement_view (PlacementView) – The snapshot of the current state of the infrastructure.

Returns:

A mapping of services to infrastructure nodes.

Return type:

dict[str, str]