Tuesday, September 25, 2012

ZEN Load Balancer How to

I tried to install lvs + ldirectord with two NICs on debian but it didn't work well. Then I found this ZEN load balancer(which is open source). Installation is quite easy and it supports many features as below.

http://www.zenloadbalancer.com/web/index.php?page=features

Advanced Layer7 load balancing
Max 30000 concurrent connections in TCP. *
sNAT load balancing load balancing
Balance TCP or UDP services
Balance dataline communications
HTTP and HTTPS services special options
HTTP/S persistence client session enabled through cookie, header, basic, ip, url
SSL wrapper / offload
Wide range of load balance algorithms like: round robin, weight, priority or hash
Persistence client sessions
VLAN Tagging (802.1Q)
Advanced network configuration for physical, virtual or VLAN interfaces
Independent route tables for every physical or VLAN NICs
Advanced checking for backend servers through FarmGuardian
High availability load balancer service through an active-pasive cluster
Optional configuration backups system
Advanced global status with graphs
Easy administration over https GUI and ssh
Virtual service configurations can be edited and tuned on-the-fly
Use NTP sync
Easy and free updates over APT repositories
Configure virtual servers and farms as your hardware allows
Advanced system monitoring with graphs
Management of SSL certificates
Real Time syncronization between cluster nodes

*hardware depend

How to install
It can be installed using ISO image so in this case it can be put on any appliance or virtual appliance.

Or it can be installed using apt-get with zenloadbalancer source added.
first, #vi /etc/apt/sources.list
then add deb http://zenloadbalancer.sourceforge.net/apt/x86 v2/
and save and quit.
then run apt-get update.
after that run apt-get install zenloadbalancer
basically, that's it.
but my case it changed NIC configuration so I had to configure IP information again.
then I have setup as below


then that's it ... so I tested as below






more information can be found on http://www.zenloadbalancer.com