Skip to content

Support distributing apps across clusters#289

Merged
merlinfuchs merged 2 commits intomainfrom
clustering
Jan 5, 2026
Merged

Support distributing apps across clusters#289
merlinfuchs merged 2 commits intomainfrom
clustering

Conversation

@merlinfuchs
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
kite Ready Ready Preview, Comment Jan 5, 2026 1:03pm
kite-docs Ready Ready Preview, Comment Jan 5, 2026 1:03pm

@merlinfuchs merlinfuchs merged commit fdc08c1 into main Jan 5, 2026
1 of 3 checks passed
Comment on lines +54 to +57
// CluserForKey returns a shard in [0, shardCount) using NGINX split_clients-compatible hashing.
// For dynamic shard count, it maps the 32-bit hash into N equal ranges.
// This avoids modulo bias and aligns with how split_clients percentages partition the hash space.
func CluserForKey(key string, clusterCount int) int {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CluserForKey? Isn't that meant to be ClusterForKey instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants