|
|||||||||||
|
Bayes innodb problems
From: Micah Anderson <micah(at)riseup.net>
Date: Wed Sep 26 2007 - 20:20:00 EDT I was having problems with scalability with my bayes DB, so I read up on the mailing list and found that it was recommended to switch to the innodb storage engine because of the row-level locking (versus the table-level locking that comes with MyISAM). Sounds great. So I switched, and everything was fine for several days. Then today the load on the DB server shot up to 11-13 and spam processing has ground down to really slow. I'm seeing some incredibly long queries now in my slow-query log, such as: # Time: 070926 17:10:53
FROM bayes_token
WHERE id = '4'
AND ('1190846660' - atime) > '345600';
This seems really wrong.... Then queries such as the following taking at least 30 seconds: # Time: 070926 17:13:24
FROM bayes_token
WHERE id = '4'
AND token IN
(' <binary data removed here> ') I'm seeing in my spamd logs the following: Sep 26 17:17:52 spamd2 spamd[5479]: bayes: expire_old_tokens: child processing timeout at /usr/sbin/spamd line 1246. Sep 26 17:17:52 spamd2 spamd[1160]: prefork: child states: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB Sep 26 17:17:52 spamd2 spamd[1160]: prefork: server reached --max-children setting, consider raising it I've got my --max-children set to 50, and I'm hitting this because the DB is not responding fast enough. Did I hit some sort of tipping point with the tokens in my database, do I have too many or ... what is going on here? I have to turn off bayes because its too slow and this is sad because this adds a lot to the results. This is what I have configured: bayes_store_module Mail::SpamAssassin::BayesStore::MySQL bayes_sql_dsn DBI:mysql:bayes:dbw-pn bayes_sql_username spamassassin bayes_sql_password notthepasswd bayes_sql_override_username @GLOBAL mysql settings related to innodb: # * InnoDB I'm using spamassassin 3.2.3 and mysql 5.0.45.
Thanks,
This archive was generated by hypermail 2.1.8 : Sat Oct 27 2007 - 17:53:16 EDT |
||||||||||
|
|||||||||||