I've been experiencing problems with a mail cluster I've set up, and policyd (aka Cluebringer) seems to be at the heart of it.
I've been doing tests this morning, and come up with some numbers. For the test, I just used a bit of bash to spit out a large number of messages to a large number of recipients. 100 messages, to 26 recipients each. This is on a box on which I run Mailman. This box is configured to use my cluster as an outbound relay. Three boxes handling mail, using another backend box running MySQL & policyd. The three mail boxes use the backend MySQL server for mail handling (PostFix Admin), and are configured to call policyd as a policy server in smtpd_recipient_restrictions and smtpd_end_of_data_restrictions. Policyd is doing both message count and message size quotas, and greylisting. I have the following set for servers : min_servers=8 min_spare_servers=8 max_spare_servers=16 max_servers=64 max_requests=1000 All the machines run Debian Lenny, apart from the Mailman box which runs Debian Etch (but that's not part of the problem). If I comment out all the policy server statements in the mail cluster then I can shift around 2 messages per second - so that's around 50 recipients per second. Putting the plocy service lines back in, throughput drops to about 3 or 4 messages per *minute* - or 2 to 3 recipients per second. Not only does the throughput drop off, but I get errors like these from Postfix : >warning: mysql query failed: MySQL server has gone away >fatal: >mysql:/etc/postfix/sql/mysql_relay_domains_maps.cf(0,lock|fold_fix): >table lookup problem I had the backend running a a Xen guest. To rule out problems with that, I've transferred it to a standalone box : model name : Intel(R) Pentium(R) 4 CPU 2.80GHz MemTotal: 1547380 kB MemFree: 1332812 kB A reasonably capable processor, and more than adequate RAM. So, suggestions where to look next for the problem ? -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
