Re: How many redirectors to spawn?

From: Nigel Metheringham <Nigel.Metheringham@dont-contact.us>
Date: Thu, 21 May 1998 13:50:43 +0100

michael@surfdirect.com.au said:
} This is probably a good start, but you should consider using Dan
} Bernstein's cdb package.

} Look at http://pobox.com/~djb/cdb.html (I think that's the URL...)

} It is very fast, and does atomic updating, so you won't confuse your
} redirector if you update it while somebody accesses it (via a
} redirector).

Actually the build is *very* fast. The lookup is only averagely so since
Dan's implementation does heaps of seeks which seems to blow most Unices
caching nicely.
I have an implementation which mmaps the cdb file, and make cdb lookups as
fast or faster than Berkeley db. Obviously if your squid box is very
short of memory this will change especially if you have a large db.

[obviously for long lived processes you need to check occasionally that
the cdb file hasn't been updated(replaced).]

        Nigel.

-- 
[ Nigel.Metheringham@theplanet.net   -  Systems Software Engineer ]
[ Tel : +44 113 207 6112                   Fax : +44 113 234 6065 ]
[      Real life is but a pale imitation of a Dilbert strip       ]
Received on Thu May 21 1998 - 05:54:32 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:40:16 MST