Good day,

I'm using ntopng 1.1 and redis 2.8.3 on CentOS 6.5 x86_64 on a system with 2 
dual core Xeon 5130 2.00GHz with 8GB of RAM.  When ntopng is first started name 
resolution works fine.  After a short period of time DNS name resolution stops 
working.

I understand that the name records are store in redis and looking at the code 
they are cached for 300 seconds.  When I look at the redis keys after about 5 
minutes of ntopng uptime most of the dns cache records have been replaced 
IP.json records.  The dns.toresolve list in redis is also almost always at the 
500 record limit.

If I trim the dns.toresolve list a few times by using the redis-cli command:

  LTRIM dns.toresolve 0 0

and then refresh the Active Flows list a few times then the host IPs are then 
resolved to names.

The web interface shows 2300-2600 hosts and 25000-140000 flows.

Currently the number of keys in the redis database range from about 512-2000.  
It appears that the redis database isn't growing to accommodate all of the 
hosts that our instance needs to store.  The redis-server process is running 
with the default options and is consuming about 50MB of system RAM.  I tried 
changing the maxmemorypolicy to noeviction but that didn't seem to make a 
difference.  

It also appears that the name resolution queue isn't being processes fast 
enough and the most frequent hosts with flows are having their dns.cache.* 
records expire in redis and never get placed back on the queue because it is 
already 500+

What can be done to make sure that DNS name resolution always operates 
properly?  Do I need to change the MAX_NUM_QUEUED_ADDRS define?  Is there a way 
that I can increase the number of keys that the redis database will store in 
memory?  Is there a way to process the DNS host resolution queue faster?

Thank you for your asssitance.

Cheers,
Andrew.
Confidentiality Notice: This e-mail message including attachments, if any, is 
intended only for the person or entity to which it is addressed and may contain 
confidential and/or privileged material. Any unauthorized review, use, 
disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message. If you are the intended recipient, but do not wish to 
receive communications through this medium, please so advise the sender 
immediately.
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to