OpenLoBa - The open load balancer
Load Balancer for tcp services
Description
OpenLoba - The Open Load Balancer Project
What is OpenLoBa ?
OpenLoBa was started because of the VMware Appliance Challenge, I wanted to work on a project so I started this one.
Basically OpenLoBa is a load balancer for tcp services that is based off of open source tools with web front end.
It can balance connections via round robin and handle persistant connections.
Why would you want a loadbalancer for vm's ?
- QOS. When I was working with multiple gsx/esx server implementations I found that when a box had multiple loaded vm's, performance did suffer.
With a load balanced solution you can direct traffic from the busy vm's to the idle vm's and maintain QOS. Plus its cool ;)
- Redundancy. If one vm happens to go down then it will be automagically redirected to another member in the pool or to the failover.
What was used ?
Openbsd - why? Because the cd was sitting on my desk.
Packages - balance gettext libiconv mysql-client mysql-server p5-DBD p5-DBI p5-Net-Daemon p5-PlRPC php4-core php4-mysql recode
other - some bad shell scripts(these will be redone). Some php for the web interface. Some modifications to the existing files rc.conf etc..
Using the pre-packaged vm
- Login to the console with username=openloba pass=openloba
- Ajust the network settings to suit your network.
- Restart the network with option 6
- Exit, option 0
- Connect to the web console via http://:7575
- Login with username=admin pass=admin
Creating a load balanced tcp service
Add Group:
-Name = Label of the group
-Port = the tcp port that you would like to balance
-Sticky = if the connections are persistant select yes (eg ssl)
-Failover Host = the host that group members will failover to
Add Member:
-Host = the hostname/ip of the member
-Connections = how many connections you would like this host to handle before moving connections to the failover host
-Description = Description ;)
Once you have created the group and a member (usually you would want at least two members and a failover host) you can apply the changes, by clicking the link "Update the System".
Now you can connect back to the openloba vm on the tcp port that you specified in the group, and it will balance it for you :D
OpenLoba - The Open Load Balancer Project
What was used ?
Openbsd - why? Because the cd was sitting on my desk.
Packages - balance gettext libiconv mysql-client mysql-server p5-DBD p5-DBI p5-Net-Daemon p5-PlRPC php4-core php4-mysql recode
other - some bad shell scripts(these will be redone). some php for the web interface. some modifications to the existing files rc.conf etc..
Installing the vm via install script:
(preffered method)
1 remove audio device
2 remove floppy device
3 install openbsd (min install takes up 300m = 236m for / + 64m for swap)
4 remove cd device
5 adduser openloba
6 add openloba to wheel group
7 cp install_vm_install.tgz to vm (go to openloba.sourceforge.com for files)
8 extract install_vm_install.tgz
9 run install script - sh install.sh
10 read readme for setting up balancing.
Creating the vm from scratch:
(instructions may not be up to date..i switched to install script cause im lazy.)
1 remove audio device
2 remove floppy device
3 install openbsd (min install takes up 300m = 236m for / + 64m for swap)
4 remove cd device
5 adduser openloba
6 add openloba to wheel group
7 copy files from tarball into appropriate dir
8 chmod 755 /bin/balance /bin/net-config.sh
9 chown root.openloba /etc/mygate /etc/myname /etc/hostname.pcn0 /etc/resolv.conf
10 chmod 775 /etc/mygate /etc/myname /etc/hostname.pcn0 /etc/resolv.conf
11 login as openloba and set settings via menu
12 install mysql-server:
mysql-client
p5-Net-Daemon
p5-PIRPC
p5-DBI
p5-DBD-mysql
mysql-server
13 start mysql /usr/local/bin/mysqld_safe &
14 /usr/local/bin/mysqladmin -u root password password
15 install php-core:
php4-core
libiconv
gettext
recode
16 run /usr/local/sbin/phpxs -s
21 run /usr/local/sbin/phpxs -a mysql
22 mysqladmin -u root -p create openloba
23 mysql -u root -p openloba /var/www/htdocs/sql/openloba.sql
24 edit the /var/www/htdocs/conf/config.php file and supply the database variables.
25 chmod 775 /var/www/htdocs/openlobactl
26 chown -R openloba.openloba /var/www/htdocs/*
27 read readme for setting up balancing.
Components:
Openbsd base 3.8 (BSD)
gettext-0.10.40p3 (GPL)
libiconv-1.9.2p1 (GPL)
mysql-client-4.0.24 (GPL)
mysql-server-4.0.24p1 (GPL)
p5-DBD-mysql-3.0002 (The Artistic License)
p5-DBI-1.45p1 (The Artistic License)
p5-Net-Daemon-0.38 (The Artistic License)
p5-PlRPC-0.2018 (The Artistic License)
php4-core-4.4.1p0 (PHP)
php4-mysql-4.4.1p0 (PHP)
recode-3.6p2 (GPL)
balance-3.34 (GPL)
Last updated: 05/01/2006
Operating system:
OpenBsd
Applications installed:
Openbsd base 3.8
gettext-0.10.40p3
libiconv-1.9.2p1
mysql-client-4.0.24
mysql-server-4.0.24p1
p5-DBD-mysql-3.0002
p5-DBI-1.45p1
p5-Net-Daemon-0.38
p5-PlRPC-0.2018
php4-core-4.4.1p0
php4-mysql-4.4.1p0
recode-3.6p2
balance-3.34
VMware Tools installed:
No
Size:
74 MB
Torrent available:
Yes
(What is BitTorrent?)
Primary account
Username: openloba
Password: openloba
Submitted by: rrioux
Download link provided by the submitter, not VMware. Report broken downloads here.
« BACK...