mirror of
https://github.com/cozystack/cozystack.git
synced 2026-10-30 16:47:20 +09:00
--shard-count now accepts "auto" (the new default) or an explicit positive integer. Auto mode drives the shard count from the tenant HelmRelease count — K = clamp(ceil(H/100), 1, min(16, T)) — applied with hysteresis anchored on the currently provisioned shards (scale up eagerly past 120 HR/shard, scale down lazily under 60 HR/shard) so K does not flap around sizing boundaries. The per-shard target is 100 HelmReleases (down from the 150 in the design doc) to leave headroom for existing tenants growing their HelmRelease count without an immediate reshard. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <andrei.kvapil@aenix.io>