Think about Loose Coupling | |
PerlMonks |
Re: Applying the brakesby jettero (Monsignor) |
on May 08, 2008 at 11:34 UTC ( [id://685442]=note: print w/replies, xml ) | Need Help?? |
I think moritz is correct about getting the mailserver to do this throttling for you. But I do have limited experience with problems much smaller than yours. I send out mails to users whose mailboxes are full. I use two strategies to prevent overloading my already overloaded mailserver.
First, it refuses connections and new RCPTs when it's already sweating. Second, I try not to get it to that point. (This send_mail function is from my own Net::SMTP::OneLiner.)
The second thing is to simply wait until the load average is low enough:
-Paul
In Section
Seekers of Perl Wisdom
|
|