Gea-Suan Lin <[EMAIL PROTECTED]> writes:
> Is that ok to running 32 varnishd and use HAProxy to redirect to them ?

32 Varnish instances?  Sounds like a lot.  What kind of site is it?

> We found they will run out of memory.

Hmm, you must be running 1.1; try switching to branches/1.2.  It
shouldn't run out of memory.

Here's a patch I think should help with the SES_Delete() issue, BTW.
I will commit it (or something similar) once I've confirmed that it
actually fixes the bug.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no

Index: bin/varnishd/cache_acceptor_kqueue.c
===================================================================
--- bin/varnishd/cache_acceptor_kqueue.c        (revision 2228)
+++ bin/varnishd/cache_acceptor_kqueue.c        (working copy)
@@ -66,8 +66,8 @@
        if (sp->fd < 0)
                return;
        EV_SET(&ki[nki], sp->fd, EVFILT_READ, arm, 0, 0, sp);
-       if (++nki == NKEV) {
-               assert(kevent(kq, ki, nki, NULL, 0, NULL) <= 0);
+       if (++nki == NKEV || arm == EV_DELETE) {
+               AZ(kevent(kq, ki, nki, NULL, 0, NULL));
                nki = 0;
        }
 }
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to