Are there any instructions in setting up the Bayes DB using a Redis 
server?

I've installed the server, took the sample config options and added them 
to local.cf

bayes_store_module  Mail::SpamAssassin::BayesStore::Redis
bayes_store_module_additional Mail::SpamAssassin::Util::TinyRedis
bayes_sql_dsn       server=127.0.0.1:6379;password=spamd;database=2
bayes_token_ttl 21d
bayes_seen_ttl   8d
bayes_auto_expire 1
use_bayes               1
bayes_auto_learn        1

Performed a redis-cli -n 2 FLUSHDB

Did a backup of one of my mysql bayes databases and am attempting to do a 
restore to the new system.
Looks like the redis server keeps chewing up swap space until it runs out, 
then the redis server terminates.

Running on FreeBSD 9.2   perl 5.18-5.18.2   redis server 2.8.4    Any 
ideas?

root@spam2:~/.spamassassin # sa-learn --restore backup.txt
bayes: note: assuming the database is empty; to manually clear a database: 
redis-cli -n <db-ind> FLUSHDB
Error reading from Redis server:  at 
/usr/local/lib/perl5/site_perl/5.18/Mail/SpamAssassin/Util/TinyRedis.pm 
line 105, <GEN0> chunk 5249066.
root@spam2:~/.spamassassin #

>From messages.log

Jan 16 10:41:05 spam2 kernel: swap_pager: out of swap space
Jan 16 10:41:05 spam2 kernel: swap_pager_getswapspace(1): failed
Jan 16 10:41:06 spam2 kernel: pid 2879 (redis-server), uid 535, was 
killed: out of swap space

last pid:  2929;  load averages:  0.57,  0.57,  0.40       up 0+16:58:52 
10:38:33
31 processes:  1 running, 30 sleeping
CPU:  0.0% user,  0.0% nice,  4.6% system,  5.4% interrupt, 90.0% idle
Mem: 722M Active, 66M Inact, 168M Wired, 25M Cache, 94M Buf, 3616K Free
Swap: 819M Total, 715M Used, 104M Free, 87% Inuse, 1820K In, 2176K Out

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU 
COMMAND
 2903 root          1  20    0 42252K  2208K sbwait  1   1:39  0.00% perl
 2879 redis         3  52    0   814M   431M uwait   3   1:02  0.00% 
redis-server
 1533 root          1  20    0 54580K  2044K select  1   0:06  0.00% perl
 2915 redis         1  20    0   810M   401M swread  2   0:04  0.00% 
redis-server
  677 root          1  20    0 11256K   520K select  3   0:02  0.00% ntpd
  831 ajezierski    1  20    0 15852K   512K select  1   0:02  0.00% sshd
  763 ajezierski    1  20    0 15852K   432K select  3   0:02  0.00% sshd
 1534 spamd         1  20    0 58676K  1608K select  3   0:01  0.00% perl
  602 root          1  20    0  9544K   372K select  1   0:01  0.00% 
syslogd

Reply via email to