View Source Handoff.SimpleAllocator (Handoff v0.1.0)

A simple implementation of the Allocator behavior that provides basic allocation strategies for distributing functions across nodes.

Link to this section Summary

Functions

Allocate functions to nodes based on resource requirements and node capabilities.

Link to this section Functions

Link to this function

allocate(functions, caps)

View Source

Allocate functions to nodes based on resource requirements and node capabilities.

parameters

Parameters

  • functions: List of functions to allocate
  • caps: Map of node capabilities in the format %{node() => capabilities_map}

returns

Returns

A map with function IDs as keys and node assignments as values.