IShardAllocator Interface
Chooses the shard for a new tenant.
Remarks
Used by TTenantProvisioner when a tenant is added without an explicit shard id. Built-in strategies: TFixedShardAllocator, TRoundRobinShardAllocator, TWeightedHashShardAllocator (the default), TShardPerTenantAllocator and TCallbackShardAllocator. Implementations should only consider shards with status Active.
Syntax
Unit: Aurelius.Tenancy.Provisioning
IShardAllocator = interface(IInterface);
Methods
| Name | Description |
|---|---|
| AllocateShard | Returns the id of the shard that should host the given tenant. |