@earth-app/collegedb
    Preparing search index...

    Interface ShardCoordinatorState

    Durable Object state for shard coordination

    interface ShardCoordinatorState {
        knownShards: string[];
        roundRobinIndex: number;
        shardStats: Record<string, ShardStats>;
        strategy: ShardingStrategy;
    }
    Index

    Properties

    knownShards: string[]

    List of known D1 bindings

    roundRobinIndex: number

    Round-robin counter for allocation

    shardStats: Record<string, ShardStats>

    Statistics for each shard

    Current allocation strategy round-robin - distributes keys evenly across shards random - selects a random shard for each key hash - uses a hash function to determine shard based on primary key (default)