Balance from source

Balance is a very straight forward TCP load balancer.

1. Install (or confirm installed):

gcc

2. Download balance source from http://www.inlab.de/
3. Untar the source tarball
4. Run:

make

5. Create folders

mkdir -p /usr/local/balance/{sbin,conf}

6. Copy the balance binary to /usr/local/balance/sbin
7. Create a balance.cfg file in /usr/local/balance/conf

The syntax for the config is very simple:

-b 127.0.0.1 8080 127.0.0.2 127.0.0.3

Look for an init script here: https://github.com/breauxaj/balance.git

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s