[Rspamd-Users] Redis and Neural

christian usenet at schani.com
Wed Jul 17 13:38:52 UTC 2024


Am 17.07.2024 um 13:07 schrieb christian via Users:
> Hello,
> 
> The neural function hasn't been working for me for some time.
> 
> The emails are trained until the max_trains are reached. After that, a 
> process starts for a few minutes and then the message appears:
> 
> cannot save ANN default:default to redis key 
> rn_default_default_bioioq5b_0: ERR Protocol error: invalid bulk length
> 
> I checked redis again. Everything is working fine so far. Maxmemory is 
> not set. Bayes is being trained.
> 
> What could be the reason for this?
> Thanks for your help
> Christian


Something is going completely wrong:

I looked through everything and reinstalled redis and discovered the 
following in the log file:


2024-07-17 15:33:36 #10660(controller) <is3eca>; neural; neural.lua:536: 
finished neural train for ANN default:default
2024-07-17 15:33:38 #10660(controller) <is3eca>; neural; neural.lua:571: 
subprocess for ANN default:default returned 1053083892 bytes
2024-07-17 15:33:41 #3560(controller) <is3eca>; lua; neural.lua:583: 
cannot save ANN default:default to redis key 
rn_default_default_bioioq5b_0: ERR Protocol error: invalid bulk length


That's over 1 GB! It can't save that in Redis, can it?

What's going wrong?

Christian


neural.conf
servers = "127.0.0.1:6379";

train {
   max_trains = 1k; # Number ham/spam samples needed to start train
   max_usages = 20; # Number of learn iterations while ANN data is valid
   learning_rate = 0.01; # Rate of learning
   max_iterations = 10; # Maximum iterations of learning (better 
preciseness but also lower speed of learning)
}

ann_expire = 2d; # For how long ANN should be preserved in Redis


More information about the Users mailing list