Registry / networking / smallnest-weighted

smallnest-weighted

JSON →
library0.0.0-20230419055410-36b780e40a7agogounverified

Implements smooth weighted round-robin (Nginx) and weighted round-robin (LVS) balancing algorithms.

go get github.com/smallnest/weighted
INSTALL
IMPORT
SIG · SMALLNEST-WEIGHTED
S
smallnest-weighted
networkinggov0.0.0-20230419055410-36b780e40a7a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

weighted
github.com/smallnest/weighted

Demonstrates smooth weighted round-robin selection.

package main import ( "fmt" "github.com/smallnest/weighted" ) func main() { w := &weighted.SW{} w.Add("a", 5) w.Add("b", 2) w.Add("c", 3) for i := 0; i < 10; i++ { fmt.Println(w.Next()) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230419055410-36b780e40a7alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
smallnest-weighted — go get smallnest-weighted · libregistry