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