Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simple traffic load balancing among peers #40
Issue #36: Implemented simple balancing mechanisms based upon the weighted round-robin and weighted least-connections strategies. Weighted least-connections is based on the statistics module and utilizes AppGenRequestPerSecond+NetGenRequestPerSecond. It would be worth actually counting the pending requests in a separate statistic record.
referenced this pull request
May 20, 2016
Thanks for this contribution @nsowen! Great level of detail in documentation and test coverage, awesome work!
Just a minor tip regarding slf4j, it doesn't require checking if the log level is enabled, since it is cheaper to simply call the
There are some code-style rules that we will be implementing soon, which will impact these files (2 space indentation, requiring braces where optional, etc.) but we'll fix those when committing the rules.