Académique Documents
Professionnel Documents
Culture Documents
Share
Tweet
Share
Share
3. Start all required services and make sure they will auto start if server
reboot:
$ piranha-passwd
5. Turn on IP forwarding. Open /etc/sysctl.conf and make sure following line
has value 1:
net.ipv4.ip_forward = 1
And run following command to activate it:
$ sysctl -p
Load Balancer #1
1. Open Piranha web-based configuration tools
at http://192.168.0.231:3636 and login as piranha with respective password.
We start with configuring Global Settings as below:
2. Then, go to the Redundancy tab and enter the secondary server IP. In this
case, we will put load balancer #2 IP as the redundant server in case load
balancer #1 is down:
3. Under Virtual Servers tab, click Add and enter required information as
below:
4. Now we need to configure the virtual IP and virtual HTTP server to map into
the real HTTP server. Go to Virtual Servers > Real Server and add into the
list as below:
Make sure you activate the real server once the adding completed by clicking
the (DE)ACTIVATE button.
$ tail -f /var/log/message
Load Balancer #2
No need to configure anything in this server. We just need to
restart Pulse service to get affected with the new configuration changes which
being copied over from LB1.
Done. You can now point your website to the virtual IP and you will see that
the load balancer #1 will report as below:
$ ipvsadm -L