Wouldn't the simplest way to handle that kind of load to use the partitionning fonctionnality of MySQL 5.1?
I've got a 81GB / 0.5G rows log database set up like that giving me good speed and stability. MySQL does the whole job for you, nothing to change in the application. Robert Pelletier Technicien informatique dans les écoles Service des technologies de l'information -----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Paolo Cravero Envoyé : 28 août 2007 10:11 À : [email protected] Objet : Re: [AMaViS-user] Per-day msgs/msgrcpt/quarantine tables Mark Martinec wrote: > Yes, %sql_clause can be assigned-to in a config file. Thank you Mark for the prompt answer. I tried it out this way: * exported %sql_clause to amavisd.conf from amavisd /binary/ * created a multiple set of tables: +----------------------------+ | Tables_in_amavisquarantine | +----------------------------+ | maddr | | msgrcpt | | msgrcpt01 | | msgs | | msgs01 | | quarantine | | quarantine01 | +----------------------------+ For some reason I don't want maddr to be duplicated... well, it might be convenient anyway to have N maddr tables too keep them small. * sent a message and it went to the default tables * amavisd reload (sorry I don't reload the daemon that often ;-)) * sent a message and it went to the *01 tables >> Are (My)SQL connections closed and reopened when amavisd received a SIGHUP? > > A new process is started completely from afresh. ... and MySQL connections are closed and reopened with the new configuration. So, since the amavisd reload does stop all traffic through amavisd processes/threads, this quick patch can be applied without creating data inconsistencies in the RDBMS. I don't know about implications on penpals feature. (not used here) I did the test on a 2.5.0-pre1, that is what I had ready to modify in the lab. For now I can automate the tableset rotation with a crontab that changes the .conf and reloads amavis. Even if this request doesn't become a feature, we can cope with this little patch by hand. Ciao, Paolo ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
