Skip to Content.
Sympa Menu

unclug - Re: [unclug] trouble load balancing https with piranha (lvs, nanny, etc. on CentOS)

unclug AT lists.ibiblio.org

Subject: UNC Linux Users Group

List archive

Chronological Thread  
  • From: Palmer, Cristóbal <cmpalmer AT email.unc.edu>
  • To: "unclug AT lists.ibiblio.org" <unclug AT lists.ibiblio.org>
  • Subject: Re: [unclug] trouble load balancing https with piranha (lvs, nanny, etc. on CentOS)
  • Date: Fri, 8 Aug 2014 18:50:41 +0000


On Aug 5, 2014, at 11:24 AM, Palmer, Cristóbal <cmpalmer AT email.unc.edu> wrote:

> if [ "$RESULT" == "OK" ];then
> echo -n OK
> else
> echo -n FAIL
> ## debug
> #echo $RESULT
> fi

So the problem was this bit of the check script. For reasons I still don’t
understand, a newline is needed. That code block in the check script now
looks like this:

if [ "$RESULT" == "OK" ];then
echo OK
else
echo FAIL
## debug
#echo $RESULT
fi

With results like this:

[root@lvs1 stracelogs]# grep 25458 /var/log/messages
Aug 8 14:40:42 lvs1 lvsd[25414]: create_monitor for
gutenberg.ibiblio.org-https/gutenweb3.lb-https running as pid 25458
Aug 8 14:40:42 lvs1 nanny[25458]: starting LVS client monitor for
152.19.134.47:443 -> 172.27.205.20:443
Aug 8 14:40:43 lvs1 nanny[25458]: [ active ] making 172.27.205.20:443
available

This is infuriating. A regex match for “OK" should match the string “OK”
*AND* the string “OK\n” and not just the latter. This feels like a bug in
nanny, but I have neither the time nor the inclination to prove that this
week. If somebody is interested in doing that with me, I’d take the time
later.

Cheers,

CMP



Archive powered by MHonArc 2.6.24.

Top of Page