Load Balancing with DSR

I have many environments that use hardware load balancers. This can be very costly sending a lot of traffic through a load balancer. So we are starting to move to a DSR load balance design. A DSR load balance design is when a request comes into the load balancer the reply doesn’t go back through the load balancer, this keeps traffic through the load balancer at a minimal. When you set up your network load balancer you have to pass the return ip to do this you need to set up a loop-back ip. once that is setup you use a loop-back ip on the server that will act as the load balancer to return to original source with out going back through the load balancer.

DSR Load Balance

DSR Load Balance

To set up Loop-back
Create a second lo file Make sure there is no ARP

cp /etc/sysconfig/network-scripts/ifcfg-lo /etc/sysconfig/network-scripts/ifcfg-lo:0
vi /etc/sysconfig/network-scripts/ifcfg-lo:0
DEVICE=lo:0
IPADDR=1
#### Make sure you use nor arp
ARP=no
NETMASK=255.255.255.255
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
ONBOOT=yes

Now bring up your loop-back

 /sbin/ifup lo:0
VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Load Balancing with DSR, 10.0 out of 10 based on 1 rating
You can leave a response, or trackback from your own site.

Leave a Reply

You must be logged in to post a comment.

Twitter Delicious Facebook Digg Stumbleupon Favorites More
Designed by: MySQL How 2

Switch to our mobile site