LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: using persistance for mysql database servers

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: using persistance for mysql database servers
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Wed, 06 Feb 2002 11:27:46 -0500
Christian Joelly wrote:
> 
> Hello!
> 
> i have some problems using lvs for load balancing between 2 mysql
> database realservers.
> 
> the application framework cocoon uses database pools which opens for
> example 5 connections to the lvs'd mysql server. the problem arises
> when the lvs code drops the connection(s) from the lvs persistance
> tables after -p [timeout] time. then the connection pool tries to use
> this connections, but they have gone away. on the mysql (real) server
> the connections also show up in the processlist...

There's two timeouts here - the tcp timeout

http://www.linuxvirtualserver.org/Joseph.Mack/HOWTO/LVS-HOWTO-11.html#ss11.29

which you will need to increase.
You also have the persistence timeout. If you want persistence to be longer 
than 
your current timeout, you're just going to have to increase it. 

Joe

-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


<Prev in Thread] Current Thread [Next in Thread>