🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Michael Hucka Mon, 01 Apr 1996 00:00
How to get warnings *before* server is throttled?
#6161
Author: Michael Hucka
Date: Mon, 01 Apr 1996 00:00
20 lines
1741 bytes
innwatch can be used to throttle innd under various conditions, such as low
disk space in the spool area.  Does anyone have a utility that can be used to
notify the news admins via e-mail when some conditions are met?  I'd like to
have the system e-mail me when disk space is moderately low, *before* it
reaches the point when innwatch will throttle the server.  

Alternatively, is there a way to configure innwatch.ctl to do that?  (I
browsed the sources for innwatch and didn't see a way of rigging that, but
maybe I missed a clever way of doing it.)

(This question is prompted by the recent surge of traffic in the !#%^&@
binaries groups, which has occasionally pushed some of our disk partitions
over the limit during the day, before expire gets its chance to clear things
out again at night.  If I could have a monitoring program notify the help
staff, one of us could take emergency measures before the server throttles.)
-- 
Mike Hucka     hucka@umich.edu     http://ai.eecs.umich.edu/people/hucka
University of Michigan AI Lab & EECS Departmental Computing Organization

Re: How to get warnings *before* server is throttled?
#6272
Author: Peter Peters
Date: Wed, 03 Apr 1996 00:00
29 lines
2018 bytes
In article <8268bjw8j3.fsf@hawk.eecs.umich.edu> hucka@eecs.umich.edu (Michael 
Hucka) writes:
>Alternatively, is there a way to configure innwatch.ctl to do that?  (I
>browsed the sources for innwatch and didn't see a way of rigging that, but
>maybe I missed a clever way of doing it.)
Originaly the next lines is in my innwatch.ctl:
!!! bdf . | awk 'NR == 2 { print $4 }' ! lt ! 4000 ! throttle ! No space (sp)

Innwatch should go through that file and execute the command between the third 
and fourth "!", check whether it is "lt" the value between the next two "!"'s. 
If so innwatch issues a "ctlinnd <whatever between ! nr 6 and 7> <reason after 
! nr 7>

If I would want to do the things you want I would add something like:
!!! bdf . | awk 'NR == 2 { print $4 }' ! lt ! 10000 ! reserve ! No space (sp)

This will reserve innd so anybody running ctlinnd mode would see this state 
and innwatch mails a message to your staff. The staff can take action and 
afterwards issue a ctlinnd reserve "" to clear the message.

Peter Peters
--
 _ __                  _ __                  | Universiteit Twente
' )  )   _/_          ' )  )   _/_           | CIV - TSO (TWRC D108)
 /--' _  /  _  __      /--' _  /  _  __  _   | voice (053) 489 23 01
/    </_<__</_/ (_    /    </_<__</_/ (_/_)_ | fax   (053) 489 23 83
                             http://www.nic.utwente.nl/peter/index.html

Re: How to get warnings *before* server is throttled?
#6273
Author: Ron Jarrell
Date: Wed, 03 Apr 1996 00:00
13 lines
1155 bytes
Peter Peters (p.g.m.peters@civ.utwente.nl) wrote:
: If I would want to do the things you want I would add something like:
: !!! bdf . | awk 'NR == 2 { print $4 }' ! lt ! 10000 ! reserve ! No space (sp)
: 
: This will reserve innd so anybody running ctlinnd mode would see this state 

Unfortunately then you'll run yourself out of disk... Once it reserves
with something like "No space (spool) 8542 lt 10000" it can't throttle,
because "No space (spool) 7022 lt 10000" isn't the same message.



Re: How to get warnings *before* server is throttled?
#6281
Author: Ron Jarrell
Date: Thu, 04 Apr 1996 00:00
29 lines
2222 bytes
Peter Peters (p.g.m.peters@civ.utwente.nl) wrote:
: That is true but somebody should take action. And if you run out of diskspace 
: innd will throttle itself and news.daily will unthrottle innd afterwards. 

Oh?  Unless that's something dave added in unoff, no, it won't.  I've had
inn throttle itself because one of the disks completely filled, and the
next day I get a call asking me why the news server is down... (Plus,
large chunks of news.daily failed, because the server wasn't running.)

Note also that if you do the "reserve" trick, news.daily CAN'T run, because
among other things expire fill fail miserably...

You're also depending on someone being in a position to get to the machine
soon and do something about it, which might be true in your environment,
but not, of course, in all.

: My solution doesn't work without changing innwatch. By carefully examining 
: innwatch I noticed innwatch doesn't recognize reserve as a ctlinnd command. 
: Innwatch has to be changed. I am looking into that now. When changing innwatch 
: I can try to make innwatch remember its reserve reason and use that to 
: throttle or unreserve (reserve "") innd before it throttles innd.

If you're going to do that, then add in a "mail" command or a "page" command
to cause innwatch to send off some email or trigger a pager, rather
than much with reserving the server.  Which, I believe, someone else
has done already, at least, I remember seeing a mention of it 
a year ago.

Re: How to get warnings *before* server is throttled?
#6295
Author: Peter Peters
Date: Thu, 04 Apr 1996 00:00
32 lines
2435 bytes
In article <4jur5v$38i@solaris.cc.vt.edu> jarrell@solaris.cc.vt.edu (Ron Jarrell) writes:
>Peter Peters (p.g.m.peters@civ.utwente.nl) wrote:
>: If I would want to do the things you want I would add something like:
>: !!! bdf . | awk 'NR == 2 { print $4 }' ! lt ! 10000 ! reserve ! No space (sp)
>: 
>: This will reserve innd so anybody running ctlinnd mode would see this state 

>Unfortunately then you'll run yourself out of disk... Once it reserves
>with something like "No space (spool) 8542 lt 10000" it can't throttle,
>because "No space (spool) 7022 lt 10000" isn't the same message.
That is true but somebody should take action. And if you run out of diskspace 
innd will throttle itself and news.daily will unthrottle innd afterwards. 
Lately I have had innd throttle itself because innwatch noticed the diskspace 
was just over the trigger value but in the last 10 minutes (my sleeptime) 
there came a number of big binary articles so the disk was full before the 
next run of innwatch.

My solution doesn't work without changing innwatch. By carefully examining 
innwatch I noticed innwatch doesn't recognize reserve as a ctlinnd command. 
Innwatch has to be changed. I am looking into that now. When changing innwatch 
I can try to make innwatch remember its reserve reason and use that to 
throttle or unreserve (reserve "") innd before it throttles innd.

Peter
--
 _ __                  _ __                  | Universiteit Twente
' )  )   _/_          ' )  )   _/_           | CIV - TSO (TWRC D108)
 /--' _  /  _  __      /--' _  /  _  __  _   | voice (053) 489 23 01
/    </_<__</_/ (_    /    </_<__</_/ (_/_)_ | fax   (053) 489 23 83
                             http://www.nic.utwente.nl/peter/index.html

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads