yes it is helpful. I have also studied from some other webs and I made first try for load balancing server after googling and reading stuffs on internet. What I did in VBOX: Is this task completed??
-Web server 1: 192.168.1.109
-Web server 2: 192.168.1.179
-Load balancer Server: 192.168.1.111
Web server 1 & 2 just containing index.html in /var/www/html having contents server 1 and server 2 respectively. Load balancer Server containing following lines in httpd.conf at last:
<VirtualHost *:80>
ProxyRequests off
ServerName domain.com
<Proxy balancer://mycluster>
# WebHead1
BalancerMember
http://192.168.1.109:80
# WebHead2
BalancerMember
http://10.176.42.179:80
# Security "technically we aren't blocking
# anyone but this the place to make those
# chages
Order Deny,Allow
Deny from none
Allow from all
# Load Balancer Settings
# We will be configuring a simple Round
# Robin style load balancer. This means
# that all webheads take an equal share of
# of the load.
ProxySet lbmethod=byrequests # may be bytraffic or bybusyness
</Proxy>
# balancer-manager
# This tool is built into the mod_proxy_balancer
# module and will allow you to do some simple
# modifications to the balanced group via a gui
# web interface.
<Location /balancer-manager>
SetHandler balancer-manager
# I recommend locking this one down to your
# your office
Order deny,allow
Allow from all
</Location>
# Point of Balance
# This setting will allow to explicitly name the
# the location in the site that we want to be
# balanced, in this example we will balance "/"
# or everything in the site.
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/
</VirtualHost>
When we write in browser "domain.com" it switches between these two web servers (server 1 and server 2) for every refresh. Is this task Ok? This work for all 3 algorithms bybusyness, byrequests and bybusyness. Is this all about load balancing in Apache server?