spamhaus / rspamd-dqs

Spamhaus code for RSPAMD Plugin. See https://docs.spamhaustech.com/40-real-world-usage/Rspamd/000-intro.html for instructions
Apache License 2.0
61 stars 11 forks source link

Slow LUA scanning. #13

Closed whataboutpereira closed 3 years ago

whataboutpereira commented 3 years ago

I've been running v2 for a week or so now and I'm noticing extremely slow scan times. I now looked at it and it seems the new LUA rules are the culprit:

2021-01-07 09:56:07 #492(normal) <690d66>; task; rspamd_symcache_finalize_item: slow rule: RBL_SPAMHAUS_SUSP(109): 3254.47 ms; enable slow timer delay
2021-01-07 09:56:09 #492(normal) <690d66>; task; rspamd_symcache_finalize_item: slow rule: RBL_SPAMHAUS_MALW(108): 4365.02 ms; enable slow timer delay

Is there anything I can do to speed it up short of turning them off?

whataboutpereira commented 3 years ago

Ahh, I understand my problem now. I didn't realize the LUA script only works with HBA enabled. Sorry for the noise!