Balance overhaul

I’m teaching myself puppet and trying to wrap a module around the TCP load balancer called “balance”. I decided to redo the init script I put together a while back and update my github repo for it. Along with the init script is a file that goes in /etc/sysconfig along with a sample config that should go in /etc/balance.d

I am using the rpm version (since puppet really seems to prefer that over source building). Check EPEL for it.

Advertisements

Pound from source

Pound is a reverse proxy, load balancer and HTTPS front-end for Web servers.

1. Install (or confirm installed):

gcc
openssl-devel
pcre-devel

2. Download pound source from http://www.apsis.ch/pound
3. Untar the source tarball
4. Navigate into the source
5. Apply the patch (see the git repo below)

patch -p1 < Pound-2.6.patch

6. Configure the package

./configure \
--prefix=/usr/local/pound \
--sysconfdir=/usr/local/pound/conf \
--enable-pcreposix

7. Run:

make

5. Create folders

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

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

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

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