Great Circle Associates Majordomo-Users
(November 2004)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Majordomo performance issue
From: "Mailing List Subscriber" <lists @ ListOwners . Net>
Date: Tue, 9 Nov 2004 02:51:17 -0000
To: <majordomo-users @ greatcircle . com>
In-reply-to: <41900925.3040607@sonny.org>
References: <4162C9ED.1070301@bard.edu>, <4162C9ED.1070301@bard.edu>
Reply-to: lists @ ListOwners . Net
Spam-status: not spam, SpamAssassin (score=-5.899, required 5,autolearn=not spam, ALL_TRUSTED -3.30, BAYES_00 -2.60)
Virus-information: Virus Scanned By VLists.Net For Your Protection.
Virus-status: This EMail Has NOT Been Virus Scanned.

Daniel Liston <dliston@sonny.org> said:

> You may want to consider examining this section of the majordomo.cf file;
> 
> # You can force Majordomo to delay any processing if the system load is too
> # high by uncommenting the following lines.  THIS ONLY WORKS if 
your "uptime"
> # command (usually found in /usr/bin/uptime or /usr/bsd/uptime)
> # returns a string like:
> #   5:23pm  up  5:51,  9 users,  load average: 0.19, 0.25, 0.33
> #
> $max_loadavg = 10;                 # Choose the maximum allowed load
> #
> $uptime = `/usr/bin/uptime` if -x '/usr/bin/uptime';     # Get system uptime
> #$uptime = `/usr/bsd/uptime` if -x '/usr/bsd/uptime';     # or uptime is 
over here.
> #
> ($avg_1_minute, $avg_5_minutes, $avg_15_minutes) =
>      $uptime =~ /average:\s+(\S+),\s+(\S+),\s+(\S+)/;
> #
> exit 75 if ($avg_15_minutes >= $max_loadavg);           # E_TEMPFAIL
> #
> 
> Tune to your specific needs of course.  On my little 400Mhz single proc
> intel box, I set $max_loadavg=2.
> 
> Dan Liston

Dan;

My question is whether this simply delays processing, or does it throw an 
error back to the sender of the message.  If majordomo barfs an error back at 
the sender I don't want to use it.  But if it silently waits for the load 
average to go down, then I'm absolutely going to implement it.  

If it barfs an error back to the sender, does it just completely exit and not 
do anything with the original email?  "exit 76" (an unknown error to me) 
looks pretty fatal, so "...to delay processing..." seems misleading.




Follow-Ups:
References:
Indexed By Date Previous: Re: First time using Majordomo
From: Daniel Liston <dliston@sonny.org>
Next: Re: Nested and overlapping lists
From: "Roger B.A. Klorese" <rogerk@queernet.org>
Indexed By Thread Previous: Re: Majordomo performance issue
From: Daniel Liston <dliston@sonny.org>
Next: Re: Majordomo performance issue
From: Daniel Liston <dliston@sonny.org>

Google
 
Search Internet Search www.greatcircle.com