[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: time limit on non-idle connections?
--On Tuesday, March 08, 2005 5:15 PM -0600 Eric Irrgang
<erici@motown.cc.utexas.edu> wrote:
i=0
kill -HUP $PID
while ps -fp $PID >/dev/null; do
if [ $i -eq $TIMELIMIT ] ; then
kill -INT $PID
fi
i=`expr $i + 1`
sleep 1
done
Yeah, that works too. I forgot to add that in my configuration, we have a
piece of software running on the LDAP replicas (lbcd) that determines
whether or not the replica is in the load balanced pool. We kill the lbcd
process and let it sit for 5 minutes, which will make sure it is out of the
pool for short-lived clients, and then we shut down the server. ;)
We can't use hardware load balancing with the replicas because we use
SASL/GSSAPI for everything, and there are some interesting problems there
when it comes to replication.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin