Perl: the Markov chain saw | |
PerlMonks |
Re: SMTP server in perlby Eyck (Priest) |
on Apr 08, 2005 at 07:42 UTC ( [id://445964]=note: print w/replies, xml ) | Need Help?? |
Take a look at postal or rabid, http://www.coker.com.au/postal/, mail benchmarking tools.
You seem to be thinking that performance is non-issue, because your hardware is able to handle your current load, but remember that on internet everything is spiky, it's enough for one spammer, or few bots to target your server and you're in big trouble with your 16M processes trying to fork fast enough to handle incoming connections... Having said that, I have succesfully deployed perl-based servers, that were able to handle such situations, the key for pre-forking server is to keep large enough spool of idle threads. And the best trick is to limit amount of incoming connection at the firewall - say you found through your benchmarks that at 30 requests/second your machine starts melting, just set your firewall to accept SYN packets to port 25 with rate less then 25. That way under normal circumstances you'll be allright, and during spike/scan or attack you'll still be handling your users.
In Section
Seekers of Perl Wisdom
|
|