FairShareAllocator

constructor(self: ReplicaId, policy: PolicyConfig)

Parameters

self

the replica whose holdings this allocator delegates.

policy

the quantum and sleeper credit the policy runs with.


constructor(self: ReplicaId, policy: PolicyConfig, memory: AllocatorMemory)

An allocator that resumes from memory, as if it were the allocator memory was exported from. Building one over a copy of a live allocator's FairShareAllocator.memory gives a throwaway that picks exactly as the live one would next.