Re: POP server goes up and down

From: Rob Morin <rob#dido.ca>
Date: Tue, 20 Nov 2007 17:18:00 -0500


Thanks for that help on the IPs

so my config looks like this now...

listen pop_proxy xxx.xxx.xxx.147:110

      maxconn 500
       mode tcp
        log global
       balance roundrobin

        # client time-out set to 2mn30.
        clitimeout  150000

        # server time-out set to 30s.
        srvtimeout  30000

        contimeout  4000

       server peter xxx..xxx.xxx.158:110 check inter 5000 fall 4 rise 1
       server joe xxx.xxx.xxx149:110  check inter 5000 fall 4 rise 1
       stats enable


Also would i see any of these types of warnings or errors in the log file...

my log file only shows notices....

Nov 14 18:58:23 localhost haproxy[30724]: Server pop_proxy/peter is UP. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue. Nov 14 19:05:49 localhost haproxy[30724]: Server pop_proxy/peter is DOWN. 1 active and 0 backup servers left. 4 sessions active, 0 requeued, 0 remaining in queue.
Nov 14 19:15:14 localhost haproxy[30724]: Server pop_proxy/peter is UP. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue. Nov 14 19:25:54 localhost haproxy[30724]: Server pop_proxy/peter is DOWN. 1 active and 0 backup servers left. 7 sessions active, 0 requeued, 0 remaining in queue.
Nov 14 19:35:19 localhost haproxy[30724]: Server pop_proxy/peter is UP. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue. Nov 14 19:44:55 localhost haproxy[30724]: Server pop_proxy/peter is DOWN. 1 active and 0 backup servers left. 6 sessions active, 0 requeued, 0 remaining in queue.

Also i turned on info for abit for fun to see if it gave anymore details i see stuff like this, but i assume its ok? :)

Nov 20 09:47:20 localhost haproxy[27612]: 69.157.175.33:2689 [20/Nov/2007:09:47:20.330] pop_proxy pop_proxy/peter -1/1/0/-1/87 200 51 - - ---- 26/4/4/3 0/0 "<BADREQ>"
Nov 20 09:47:21 localhost haproxy[27612]: 206.248.146.170:59865 [20/Nov/2007:09:46:57.926] pop_proxy pop_proxy/peter -1/1/0/-1/23324 200 55 - - ---- 28/3/3/2 0/0 "<BADREQ>"
Nov 20 09:47:24 localhost haproxy[27612]: 206.248.146.178:58851 [20/Nov/2007:09:47:24.306] pop_proxy pop_proxy/peter -1/1/0/-1/215 200 54 - - ---- 27/5/5/2 0/0 "<BADREQ>"

Rob Morin
Dido Internet Inc.
Montreal,Canada
http://www.dido.ca
514-990-4444

Willy Tarreau wrote:
> Hi Rob,
> On Tue, Nov 20, 2007 at 09:14:45AM -0500, Rob Morin wrote:
>
>> Why i left in the IPS is beyond me! darn it, see what happens when you
>> post without first morning coffee!
>>
>
> Well, consider that you just had a bad dream, I've mangled them in the
> archives, and it looks like google has not cached them yet. So basically,
> they were only seen by subscribers. I will not do that every day though.
> Please all, try to be more careful next time ;-)
>
> BTW, I'm thinking that your problem is that you have not set any timeout,
> and dead sessions accumulate on your servers, until they cannot accept
> anymore connection. You should set clitimeout, srvtimeout and contimeout
> to reasonable values. For POP, timeouts between 5 and 15 minutes are
> generally considered OK for cli/srvtimeout. Contimeout only has to do
> with local connection, and 5 seconds is often fine.
>
> Best regards,
> Willy
>
> PS: to other members, if you reply to Rob, ensure that you do not copy
> his message with his IP addresses.
>
>
>
Received on 2007/11/20 23:18

This archive was generated by hypermail 2.2.0 : 2007/11/21 00:00 CET