On 06/07/2014 01:47 PM, hospice admin wrote:



Date: Sat, 7 Jun 2014 13:43:37 +0200
From: axb.li...@gmail.com
To: users@spamassassin.apache.org
Subject: Re: Advice re- SA 3.4.0

On 06/07/2014 01:33 PM, hospice admin wrote:



Date: Sat, 7 Jun 2014 13:22:13 +0200 From: axb.li...@gmail.com To:
users@spamassassin.apache.org Subject: Re: Advice re- SA 3.4.0

On 06/07/2014 01:09 PM, hospice admin wrote:
I was wondering about this one and had put it to one side until I
had a chance to look at the memory implications in more detail.
We run a VM infrastructure here, so I'll load it up on one server
and keep throwing resources at it until I have something
approaching stability.

my Redis DB's memory usage # Memory used_memory:3919713920
used_memory_human:3.65G used_memory_rss:6440914944
used_memory_peak:6307356768 used_memory_peak_human:5.87G
used_memory_lua:99328

the peak is used when Reids dumps the DB to file, every N minutes.
To do this, a second Redis server instance is started and does the
dump so if you think your Bayes DB will be 4GB... double that (at
least) for safety. If the box starts swapping hard it will all
become incredibly slow or even crash/feed.

free total used free shared buffers cached Mem: 14262652 8116144
6146508 0 151260 1349872 -/+ buffers/cache: 6615012 7647640 Swap:
2046968 10396 2036572


An almost related item ... have you found the 'RelayCountry'
plugin to be worth the effort?
Due to the nature of my traffic I see little use for it.

Ff you mainly deal with regional traffic it's probably worth
trying.



WOW! My DB isn't anything like 4GB, but our whole setup presently
runs in 6GB, to the increase is likely to be scary big. I guess you
get what you pay for though!

Don't let my Redis DB size scare you unless you're handling mail for a
for tens of thousands of users.

I'd suggest your start off with a dedicated VM for the Redis server,
assign it 8 GB (to be on the safe side) set our tokens to expire in 2
weeks and watch it closely. This way if you have a Redis issue, it won't
affect mail processing

# FOR REDIS ONLY!!!!
bayes_token_ttl 14d
bayes_seen_ttl 7d

should get you started...
You can also limit Redis' memory usage (if you want)


I put some Redis/Bayes stuff in
http://svn.apache.org/repos/asf/spamassassin/trunk/contrib/HOWTO.Bayes-Redis/

hope this helps

Axb

Reply via email to