Great Circle Associates Majordomo-Workers
(October 1996)
 

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

Subject: Re: Majordomo Bombing
From: Brent Chapman <Brent @ GreatCircle . COM>
Date: Sun, 20 Oct 1996 10:03:23 -0800
To: Brock Rozen <brozen @ webdreams . com>
Cc: Evan Champion <evanc @ synapse . net>, majordomo-workers @ greatcircle . com
In-reply-to: <Pine.OSF.3.95.961020084625.717E-100000@webdreams.com>
References: <v03007836ae6f03208c7e@[198.102.244.42]>

At 8:48 AM -0400 10/20/96, Brock Rozen wrote:
>On Wed, 25 Sep 1996, Brent Chapman wrote:
>
>>     # Check the load; if it's too high, none of the rest of this matters...
>>     $uptime = `/usr/bin/uptime`;
>>     $uptime =~ s/.*:\s*//;
>>     $uptime =~ s/,.*//;
>>     if ($uptime >= 8.0) {
>>         exit 75;    # EX_TEMPFAIL
>>     }
>
>I have to agree, this does work nicely. One major problem though.
>
>When the load hits the level I specify, not even MY commands go through.
>While that's a given -- sometimes I do want my commands to get through,
>while having user stuff wait until the load goes down.
>
>Any way you could think of doing ths?

Nothing clean; you'd have to somehow look ahead to the message to determine
who it's from...  I suppose you could invoke Majordomo by hand with a
different config file for your messages, and leave the load test above out
of that modified config file.

You could also make the code fragment above check which program was reading
the config file (majordomo, resend, archive, etc.), and make the load
limits only apply to certain programs (resend and archive, for example).


-Brent

----------------------+----------------------------+------------------------
Brent Chapman         | Great Circle Associates    | 1057 West Dana Street
Brent@GreatCircle.COM | http://www.greatcircle.com | Mountain View, CA 94041
----------------------+----------------------------+------------------------
                   Internet Tutorials from the Experts!




References:
Indexed By Date Previous: Re: outgoing_address keyword?
From: Brock Rozen <brozen@webdreams.com>
Next: Re: More problems with 1.94b5
From: rgeis@ncsa.uiuc.edu (Ral Geis )
Indexed By Thread Previous: Re: Majordomo Bombing
From: Brock Rozen <brozen@webdreams.com>
Next: noadvertise changes
From: Brock Rozen <brozen@webdreams.com>

Google
 
Search Internet Search www.greatcircle.com