All tools / Gateway

max_concurrency identify bucket calculator

Plan shard startup waves from max_concurrency: rate_limit_key buckets, 5-second identify windows, and daily session starts left.

shard_id % max_concurrency

Each shard belongs to bucket shard_id % max_concurrency. You may identify up to max_concurrency shards per 5 seconds, starting buckets in order. Identifies also spend session_start_limit (1000 per 24 hours by default); running out terminates sessions and resets the token.

Related: When sharding is required · Gateway heartbeat interval helper