Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: SMTP server in perl

by Eyck (Priest)
on Apr 08, 2005 at 07:42 UTC ( [id://445964]=note: print w/replies, xml ) Need Help??


in reply to SMTP server in perl

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://445964]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-03-28 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found