Some applications provide logs in a meaningful uniform format, while others just spits out strings to logs. From my experience, most open-source applications running on Unix flavors which uses syslog facility are excellent in this regard. On the other hand Most windows applications that logs via event log facility are pathetic. Output from tomcat on web servers are just plain funny, they don't even have a time stamp.
OK, back to the title of this post. I made some changes to a sendmail instance running on one of my boxes. The goal was to
- Stop processing the queue if the load average on the box rises above, say 20.
- Delay the incoming messages if the load average rises above, say 30.
When the load average rise past 20, sendmail stops processing the queue and logs:
runqueue: Aborting queue run: load average too high
When load average rise past 30, sendmail delays incoming e-mails and logs:
delaying connections on daemon
Additionally, I think , if the load average goes above during an SMTP session, sendmail delay the commands of the session and logs:
delaying=EHLO, load average=32 >= 30
delaying=MAIL, load average=32 >= 30
delaying=DATA, load average=32 >= 30
Sweet!
No comments:
Post a Comment