Re: LVS in RedHat 8.0 - required components

pb <[email protected]>
Newsgroups gmane.linux.redhat.piranha
Message-ID <[email protected]>
 
> I wouldn't suggest using your rc.lvs because of
> several points :
> * it uses ipvsadm whereas it shouldn't (it piranha's
> role)
> * it mixes virtual server commands, filtering
> commands, routing commands
> * it starts daemons which do have initscripts

Right, one could do it in initscripts or with the rc
script (and the initscripts disabled).  Matter of
choice. Works both ways. The rc.lvs script puts it all
together and gives you an overview of all that is
needed to make it work.  Using ipvsadm for setting up
the NAT routing table works well, and Piranha later
adjusts the NAT table.  I like seeing the table
present before piranha, so I can see how Piranha
affects it.  
 
> Form my point of view:
> * everything related to iptables should be moved to
> /etc/sysconfig/iptables and the iptables service
> should be activated
> * sysctl variables should be set in /etc/sysctl.conf
> only
> * no ipvsadm stuff, piranha will manage it by
> itself, just activate the
> pulse service
> * piranha-gui is also a service, activate it

The rc.lvs script puts in altogether into one place,
one script, so it is easy to understand, esp. for
beginners to Piranha.  Pre-setting the NAT table with
ipvsadm is matter of choice for me.   It has worked
very well for me in real life for over a year.  

> > Also, if you're users are using http to get to a
> LOGIN webpage, you
> > also have to consider adding persistance = 900 to
> your lvs.cf for
> > http service, but that is another story.
> 
> This is based on the assumption that session
> tracking is real server
> bound, which is obviously and fortunately not always
> true. Just think DB
> or file sharing.

It is true in that we have had an issue with webmail
login, and setting persistance = 900 fixed it.  What
can I say?  Real life situation, real fix.    

> > Since you are starting "lvs" daemon by executing
> the "pulse" daemon
> > (which is also true in my rc.lvs script)
> 
> It's not ! The uncommented line is :
> /usr/sbin/lvs --configfile=/etc/sysconfig/ha/lvs.cf

The PIRANHA daemon does start the lvs daemon which
starts the nanny daemons.  The example rc.lvs script
has options which can be commented or uncommented (the
script even says so): 

# Run lvs mannually or uncomment. This will also spawn
nanny daemons.
# Or let pulse daemon start lvs and nanny and
networking, and comment
# out the lvs statement.
# /usr/sbin/pulse
# /usr/sbin/pulse --forceactive
/usr/sbin/lvs --configfile=/etc/sysconfig/ha/lvs.cf



Peter






__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.