BTC USD 81,929.8 Gold USD 4,088.24
Time now: Jun 1, 12:00 AM

loadbalancer with Piranha and LVS on CentOS 5.4 [solved]

05saiful

Fun Poster
Messages
104
Joined
Jan 6, 2011
Messages
104
Reaction score
1
Points
15
salam sejahtera..
sy try wat loadbalancer guna piranha for the first time..
nk setup 2 loadbalancer(lb) dan 2 web server..

lb1 - ip 192.168.1.5
subnetmask 255.255.255.0
gateway 192.168.1.1

lb2 - ip 192.168.1.6
subnetmask 255.255.255.0
gateway 192.168.1.1

real - ip 192.168.1.10
server 1 subnetmask 255.255.255.0
gateway 192.168.1.1

real - ip 192.168.1.11
server 2 subnetmask 255.255.255.0
gateway 192.168.1.1

virtual ip(VIP) - ip 192.168.1.20
subnetmask 255.255.255.255
gateway 192.168.1.1

installation

yum install ipvsadm
yum install piranha

Configuring Services on the LVS Routers
chkconfig pulse on
chkconfig piranha-gui on
chkconfig httpd on

Setting a Password for the Piranha Configuration Tool
piranha-passwd

Turning on Packet Forwarding on the LVS Routers
echo 1 > /proc/sys/net/ipv4/ip_forward

Starting the Piranha Configuration Tool Service

selinux dah awal2 set kepada permissive mode mase installation

setenforce 0
service httpd start
service piranha-gui start

Configuring the LVS Routers with Piranha Configuration Tool

open piranha guna web browser http://192.168.1.5:3636

Copy file lvs.cf file to another LVS router.
scp /etc/sysconfig/ha/lvs.cf root @ 192.168.1.6:/etc/sysconfig/ha/lvs.cf (sbb dua2 lb kene same configuration..)

Start the pulse services on the LVS Routers

service pulse restart

step sy follow di http://kezhong.wordpress.com/2010/03/28/setup-linux-loadbalancer-with-piranha-and-lvs-on-centos-5-4/


real server guna windows server 2003
guna wampserver.

tp ble try access 192.168.1.20(virtual ip ) xder pape paparan pun cuma dpt "page canot be displayed"..

ada mana2 silap atau tertinggal step ker..??
mohon tjuk ajar rakan2 carigold :)cgrock
 
Last edited:
bro pakai hardware atau software je ni? bape ISP bro pakai?
 
bro pakai hardware atau software je ni? bape ISP bro pakai?

nie try utk lab environment jek..
actually nk comparekn antara keepalived and piranha nya loadbalancer..

tp ble try wat tak jadi2..
 
Back
Top
Log in Register