You'll need quite a lot of memory to run Bayes/Redis
Did you expire old tokens before the backup?
what does sa-learn --dump magic say (when using mysql)
my Redis
top - 18:11:53 up 39 days, 8:01, 1 user, load average: 0.80, 0.29, 0.16
Tasks: 128 total, 1 running, 127 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.5%us, 0.0%sy, 0.0%ni, 99.5%id, 0.0%wa, 0.0%hi, 0.0%si,
0.0%st
Mem: 14262656k total, 7572280k used, 6690376k free, 171460k buffers
Swap: 2046968k total, 0k used, 2046968k free, 1765856k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5728 root 20 0 5355m 5.1g 1020 S 1.3 37.1 711:19.45 redis-server
sa-learn --dump magic
0.000 0 3 0 non-token data: bayes db version
0.000 0 16481050 0 non-token data: nspam
0.000 0 5690858 0 non-token data: nham
bayes_token_ttl 864000
bayes_seen_ttl 2d
On 01/16/2014 05:58 PM, Andy Jezierski wrote:
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