Skip to main content

Module placement

Module placement 

Source
Expand description

PlacementActor — picks the best-fit DeviceActor for each request based on a configurable PlacementPolicy.

Polls each device’s DeviceMsg::Stats periodically (default 250 ms) to maintain a load snapshot. Callers send Pick to receive a DeviceChoice with the selected ActorRef<DeviceMsg>.

Modules§

sharded
atomr-cluster-sharding adapter for super::PlacementActor.

Structs§

DeviceChoice
LeastLoadedPolicy
Least-loaded by queue_depth + active_streams heuristic. Filters out devices below min_free_bytes / min_compute_cap.
PlacementActor
PlacementHints
RoundRobinPolicy
Round-robin policy. Ignores hints.

Enums§

PlacementMsg

Traits§

PlacementPolicy