Great Circle Associates Majordomo-Workers
(September 1996)
 

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

Subject: Re: Majordomo Bombing
From: Brent Chapman <Brent @ GreatCircle . COM>
Date: Wed, 25 Sep 1996 10:03:34 -0600
To: Evan Champion <evanc @ synapse . net>
Cc: majordomo-workers @ greatcircle . com
In-reply-to: <32496362.3C67@synapse.net>
References: <v03007836ae6f03208c7e@[198.102.244.42]>

At 12:52 PM -0400 9/25/96, Evan Champion wrote:
>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'm going to give that a try.  An even better idea might be to add load
>checking to the wrapper; the load of starting the wrapper should be much
>lower than starting perl.

The wrapper is a setuid-root program, and thus potentially very dangerous.
To minimize that danger, it should do one thing and one thing only: set the
UID/GID that the rest of the code is going to operate under.  It should be
as simple as it can possibly be.  Figuring out the current load in a C
program is decidedly NOT simple...


-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: Documentation Ideas
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: Majordomo Bombing
From: Bonnie <bonnie@staff.prodigy.com>
Indexed By Thread Previous: Re: Majordomo Bombing
From: Brent Chapman <Brent@GreatCircle.COM>
Next: Re: Majordomo Bombing
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com