On Tue, Mar 03, 2009 at 04:58:53PM -0600, Tim Bourne wrote: > I'm rather new to the LVS world(although I've been in linux for years), > so pardon my ignorance on some of the topics/technologies. The short > story is that I'm running ubnutu 8.04 LTS x64. I'm trying to set up > ldirectord on a standalone box for now(I'll juice it up with heartbeat > in a few weeks). Below is a quick list of configs and outputs. The > problem I'm running into is that, while ipvsadm shows my VIP and RIP's > all up and functioning, nothing is listening on the VIP:port shown by > ipvsadm -L -n. I've followed > http://www.howtoforge.com/set-up-a-loadbalanced-ha-apache-cluster-ubuntu > 8.04 as my setup guide, save that I didn't add heartbeat to the mix.
Hi Tim, the quick answer to your question is that ldirectord isn't supposed to bind to VIP:port and this shouldn't be a problem. The slightly longer answer is that ldirectord effects load balancing by configuring LVS, which lives in the kernel and acts much more like a router than a proxy. As such, it does not bind a socket to VIP:port. Rather, as packets pass through the kernel's networking code they will be processed by LVS if they match the VIP:port specified _and_ those packets would otherwise have been delivered to a local process (this is one area where LVS isn't quite like a router). Typically second criteria is satisfied by placing the VIP on a local interface. -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
