[syslog-ng]DNS caching
Matthew Melvin
matthewm@webcentral.com.au
Wed, 20 Mar 2002 09:01:36 +1000 (EST)
On Tue, 19 Mar 2002 at 10:24am (+0100), Balazs Scheidler wrote:
> On Tue, Mar 19, 2002 at 12:04:34PM +1000, Matthew Melvin wrote:
> > Hello,
> >
> > I'm loath to ask a question right off the blocks but I wasn't able
> > to find too much in the archives about this...
> >
> > I'm using syslog-ng 1.5.14 and am trying to get the 'dns_cache(yes);' option
> > to work for me.
[...]
>
> can you check this patch, whether it fixes your problem ?
>
> diff -u -r1.37 cfgfile.c
> --- cfgfile.c 2001/09/03 16:42:23 1.37
> +++ cfgfile.c 2002/03/19 09:23:55
[...]
Thank you... it appears to be working as advertised now. When running with
NSCACHE_DEBUG enabled we get lots of messages like...
202.139.234.86... found on 733: bne006m (1 iters, 1016578298/1016581888)
203.147.241.17... found on 760: bne010m (1 iters, 1016578298/1016581888)
202.139.235.196... found on 93: bne002m (1 iters, 1016578298/1016581888)
202.139.235.196... found on 93: bne002m (1 iters, 1016578298/1016581888)
202.139.234.87... found on 734: bne007m (1 iters, 1016578298/1016581888)
202.139.234.87... found on 734: bne007m (1 iters, 1016578298/1016581888)
202.139.234.86... found on 733: bne006m (1 iters, 1016578298/1016581888)
202.139.235.196... found on 93: bne002m (1 iters, 1016578298/1016581888)
.... which looks good. CPU usage for the syslog process has dropped from
~80% to ~40% (hazzah!) and the named process that was doing local caching
has dropped from ~10% to almost nill.
M.
--
WebCentral Pty Ltd Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road. Network Operations - Systems Engineer
PO Box 4169, East Brisbane. phone: +61 7 3249 2500
Queensland, Australia. pgp key id: 0x900E515F