Great Circle Associates Majordomo-Users
(November 2004)
 

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

Subject: Re: Majordomo performance issue
From: Daniel Liston <dliston @ sonny . org>
Date: Fri, 12 Nov 2004 21:33:32 -0600
To: lists @ ListOwners . Net
Cc: majordomo-users @ greatcircle . com
In-reply-to: <twig.1099968677.65274@ListOwners.Net>
References: <4162C9ED.1070301@bard.edu>, <4162C9ED.1070301@bard.edu> <twig.1099968677.65274@ListOwners.Net>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020



Mailing List Subscriber wrote:
> 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.
> 

You just need to look a little closer at the config.  exit "75" and the 
comment at the end of the line; #E_TEMPFAIL.  Basically, this just means
the messages will be queued for later processing.  Of course, if you 
have the means to run the load up on your test server, you could always
just "try" it. ;)

Dan


References:
Indexed By Date Previous: Problem with Majorcool (error 71)
From: news@fa1con.de
Next: Re: Nested and overlapping lists
From: Daniel Liston <dliston@sonny.org>
Indexed By Thread Previous: Re: Majordomo performance issue
From: "Mailing List Subscriber" <lists@ListOwners.Net>
Next: Re: How does Majordomo submit mail?
From: Daniel Liston <dliston@sonny.org>

Google
 
Search Internet Search www.greatcircle.com