I so love to posters.....
On 08/20/2014 03:33 PM, Matteo Dessalvi wrote:
Ok, perfect! Thanks a lot! This is what I want to know
and I was not so sure about.
I may be wrong but it looks to me the fact that
tools like sa-learn can access transparently the
backends configured for SA is not exactly clear
from the docs.
It would be great if the wiki maintainers could add
a short note somewhere in the pages regarding the
SiteWide deployment or related topics.
Best regards,
Matteo
On 20.08.2014 15:08, Axb wrote:
bayes_store_module Mail::SpamAssassin::BayesStore::Redis
tells SA to use the Redis backend. To sa-learn this becomes transparent,
as with any other backed (DBD,SDBM,SQL)
bayes_redis.cf shows what parameters are mandatory/optional
Watch your memory usage:
If you configure Redis to dump data from memory to file, it's safe to
*double* the amount of memory you planned for Redis usage
as in my case:
sa-learn --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 25218483 0 non-token data: nspam
0.000 0 11919587 0 non-token data: nham
# Memory
used_memory:3637407032
used_memory_human:3.39G
used_memory_rss:4068585472
used_memory_peak:3702485960
used_memory_peak_human:3.45G
used_memory_lua:205824
mem_fragmentation_ratio:1.12
mem_allocator:jemalloc-3.2.0
I keep at least 5 GB of free memory for the dump to file to avoid ugly
swaps or crashes.
free
total used free shared buffers cached
Mem: 14262648 5786664 8475984 0 162744 1343408
-/+ buffers/cache: 4280512 9982136
Swap: 2046968 0 2046968