11

load balancer with direct routing (LVS-DIR)

view full story
linux-howto

http://www.linuxquestions.org – Hello Forum: I am working on a load balancing project. The type of routing I am implementing is direct routing (LVS-DIR). The following is a script that sets up the Linux Virtual Server (LVS) or the load balancer: #!/bin/bash #description: manages load balancer #chkconfig: 35 20 80 #processname: lvsdr . /etc/rc.d/init.d/functions VIPeth00=192.168.2.2 #virtual ip on eth0:0 DIPeth0=192.168.2.3 #public (I know it is not public, just to get this running) real ip for lvs or load balancer on eth0 DIPeth1=192.168.1.1 #private (HowTos)