Great Circle Associates Majordomo-Workers
(November 1996)
 

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

Subject: Re: Load limits
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: Thu, 21 Nov 1996 16:13:31 -0600
To: Brent @ GreatCircle . COM
Cc: brozen @ webdreams . com, majordomo-workers @ GreatCircle . COM
In-reply-to: Your message of "Thu, 21 Nov 1996 10:58:35 -0800"
References: <v03007800aeba5546ab51@[198.102.244.42]>

>>>>> "BC" == Brent Chapman <Brent@GreatCircle.COM> writes:

BC> Right idea, but not an ideal implementation.

Brent is correct.  See, public review of patches works.  Also, don't write
patches in the ten minutes before you're due in class.  A revised patch:

--- sample.cf.orig	Mon Nov 18 14:12:48 1996
+++ sample.cf	Thu Nov 21 16:10:25 1996
@@ -72,6 +72,20 @@
 #
 # $config'default_subscribe_policy = "open+confirm";
 
+# You can force Majordomo to delay any processing if the system load is too
+# high by doing something like the following (the exact method is
+# system-dependent, but this works in most cases):
+#$max_loadavg = 10;                 # Choose the maximum allowed load
+#$uptime = `/usr/bin/uptime`;       # Get system uptime
+#$uptime =~ s/,/ /g;                # Remove commas
+#@uptime = split(/\s+/,$uptime);    # Split into parts
+#$loadavg = $uptime[$#uptime - 0];  # use 0 for 15 minute average,
+#                                   #     1 for 5 minute average,
+#                                   #     2 for 1 minute average.
+#if ($loadavg >= $max_loadavg) {
+#    exit 75;                       # E_TEMPFAIL
+#}
+
 # 
 #  Configure X400 parsing here.  This is functional, but not well tested 
 #  and rather a hack.


 - J<


References:
Indexed By Date Previous: Re: Potential 'which' / 'who' security loophole in 1.94
From: Nick Perry <nick@aboard.co.uk>
Next: Re: approve PASSWORD which ???
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: Load limits
From: Brent Chapman <Brent@GreatCircle.COM>
Next: Re: Load limits
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com