Table of Contents

TRoundRobinShardAllocator.AllocateShard Method

Returns the next active shard in shard id order.

Syntax

Unit: Aurelius.Tenancy.Provisioning

function TRoundRobinShardAllocator.AllocateShard(const Tenant: TTenantInfo; const Shards: TArray<TShardInfo>): string;

Parameters

<-> Parameter Type Description
const Tenant TTenantInfo The tenant being provisioned.
const Shards TArray<TShardInfo> The registered shards.

Returns

The id of the chosen shard, or an empty string if there is no active shard.

See also