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
Mon, 25 Nov 2024 04:21:42 GMT
Languages