Orchestrator
IAssignmentPolicy
Decides which worker simulates which container.
generated from the sources
Interface in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Orchestrator/AssignmentPolicy.cspublic interface IAssignmentPolicyDecides which worker simulates which container. The orchestrator runs the policy every pass and applies the changes it returns through the control plane; a policy is a pure function of its input so it can be tested without a mesh. Nebula ships BakedAssignmentPolicy (deal by count, for authored and baked worlds) and CostBalancedAssignmentPolicy (deal by load, for worlds whose shape is decided at runtime); a game may install its own through NebulaOrchestrator.Policy.
Properties
Name
string Name { get; }Shown on the dashboard.
Methods
Compute
List<KeyValuePair<string, string>> Compute(AssignmentInput input);The (container id, worker id) assignments that should change. Containers not mentioned keep their lease.