balancer
balancer
Simple Tcp Balancer (when nginx or haproxy too heavy for your tasks)
Installation
Add this to your application's shard.yml
:
dependencies:
balancer:
github: kostya/balancer
Usage
require "balancer"
# run balancer listen on 0.0.0.0:3000
# and proxing all connections to 127.0.0.1:3001..3010
balancer = Balancer.new("0.0.0.0", 3000, "127.0.0.1", 3001..3010, Balancer::Method::RoundRobin)
balancer.run
Repository
balancer
Owner
Statistic
- 8
- 0
- 0
- 0
- 0
- over 3 years ago
- April 29, 2017
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 17:54:31 GMT
Languages