Thread View: news.software.nntp
8 messages
8 total messages
Started by Gary Palmer
Sat, 25 Jan 1997 00:00
Re: INND reported NOT running during expire
Author: Gary Palmer
Date: Sat, 25 Jan 1997 00:00
Date: Sat, 25 Jan 1997 00:00
17 lines
1224 bytes
1224 bytes
In article <mills.854075988@capella>, mills@co c.umanitoba.ca (Gary Mills) writes: > I'm running inn 1.5.1 under Solaris 2.4. About once a week, innwatch > will send me mail saying `INND is NOT running', followed by another > one ten minutes later saying `INND is now running'. This happens > during the expire run. What's going on? What is happening is that during ctlinnd renumber (towards the end of expire), innwatch tries to get the server status. During the renumber, inn essentially wedges. So innwatch thinks it's dead and reports it ... Gary
Re: INND reported NOT running during expire
Author: Joe Ramey
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
44 lines
2425 bytes
2425 bytes
gpalmer@webspan.net (Gary Palmer) writes:
> In article <mills.854075988@capella>,
> mills@co c.umanitoba.ca (Gary Mills) writes:
> > I'm running inn 1.5.1 under Solaris 2.4. About once a week, innwatch
> > will send me mail saying `INND is NOT running', followed by another
> > one ten minutes later saying `INND is now running'. This happens
> > during the expire run. What's going on?
>
> What is happening is that during ctlinnd renumber (towards the end of
> expire), innwatch tries to get the server status. During the renumber,
> inn essentially wedges. So innwatch thinks it's dead and reports it
> ...
Before I'd figured out what was happening (that is, innwatch is
checking the server state during the renumbering), I made this ugly
change to my innwatch:
------------------------------------------------------------------------------
@@ -127,7 +130,8 @@
## Check to see if INND is running.
## Notify NEWSMASTER if it has stopped or just restarted.
- if ctlinnd -s -t 120 mode 2>/dev/null ; then
+# this seems to generate lots of false alarms; try checking twice in a row
+ if ctlinnd -s -t 120 mode 2>/dev/null || ctlinnd -s -t 120 mode 2>/dev/null ; then
${HASEXITED} && {
HASEXITED=false
${MAILCMD} -s "INND is now running" ${NEWSMASTER} </dev/null
------------------------------------------------------------------------------
It seems to do the trick. Now we only get `INND is NOT running'
messages when the server really isn't running, which is rare.
Now, would it suffice to simply increase the timeout so that the
renumber would be sure to complete before ctlinnd gives up and
declares the server dead? I'll take a look at the ctlinnd and innd
sources to try to answer this question for myself, but perhaps someone
else already knows.
Joe
Re: INND reported NOT running during expire
Author: Gary Palmer
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
28 lines
1882 bytes
1882 bytes
In article <5clgl9$13p$1@mechti.wupper.de>, thomasm@mechti.wupper.de (Thomas Mechtersheimer) writes: > gpalmer@webspan.net (Gary Palmer) writes: >>What is happening is that during ctlinnd renumber (towards the end of >>expire), innwatch tries to get the server status. During the renumber, >>inn essentially wedges. So innwatch thinks it's dead and reports it > Is there any way to prevent this behaviour ? inn wedging during a renumber? Not really. The renumber updates the lo/hi entries in the active file, so other things running (e.g. inn accepting feeds) is generally a bad idea. I've been thinking about ways to drastically speed up the time it takes to do a renumber, but there is no escaping the fact that it has to be done sooner or later. Mebbe you could code in special handling of the control channel, but I honestly don't think it's worth the effort (issuing control commands like `reload' probably would make a real mess!). I admit there are some areas of inn that need polishing, but IMHO that's all it is. Certainly the way the renumber is done could be optimized, but more on that after I have code (and after I have more than pipedreams :-) )... Gary
Re: INND reported NOT running during expire
Author: Thomas Mechtersheimer
Date: Tue, 28 Jan 1997 00:00
Date: Tue, 28 Jan 1997 00:00
14 lines
1206 bytes
1206 bytes
gpalmer@webspan.net (Gary Palmer) writes: >What is happening is that during ctlinnd renumber (towards the end of >expire), innwatch tries to get the server status. During the renumber, >inn essentially wedges. So innwatch thinks it's dead and reports it Is there any way to prevent this behaviour ? -- Thomas Mechtersheimer - Zum Hasenkampsplatz 1 - D-42553 Velbert - Germany EMail: thomasm@mechti.wupper.de IRC-Nick: Mechti "No problem is so big or so complicated that it can't be run away from."
Re: INND reported NOT running during expire
Author: Ken Lalonde
Date: Wed, 29 Jan 1997 00:00
Date: Wed, 29 Jan 1997 00:00
16 lines
1071 bytes
1071 bytes
One way to avoid innd wedging during a renumber would be to move the spool-walking code out of the server. This avoids false innwatch complaints, and is kinder on clients. E.g.: ctlinnd throttle 'Renumbering active file' ctlinnd flush '' renumber <active >active.new && mv active.new active ctlinnd reload active 'renumbered' ctlinnd go 'Renumbering active file' where "renumber" is the obvious perl script.
Re: INND reported NOT running during expire
Author: Dave Barr
Date: Thu, 30 Jan 1997 00:00
Date: Thu, 30 Jan 1997 00:00
34 lines
1810 bytes
1810 bytes
In article <5cofmp$l1k@angel.uunet.ca>, Ken Lalonde <ken@angel.uunet.ca> wrote: >One way to avoid innd wedging during a renumber would >be to move the spool-walking code out of the server. >This avoids false innwatch complaints, and is kinder on clients. > >E.g.: > > ctlinnd throttle 'Renumbering active file' > ctlinnd flush '' > renumber <active >active.new && mv active.new active > ctlinnd reload active 'renumbered' > ctlinnd go 'Renumbering active file' Taking this to a logical conclusion but greatly reducing the delays would be a 'renumber' script which fed just the lo's to innd. Something like: renumber < active >/tmp/newlows.$$ && ctlinnd renumberlo < /tmp/newlows.$$ the tempfile just to assure that renumber is done when innd gets fed the new lo values. This would keep the renumbering in innd, but greatly reduce the freeze time since innd would not have to do any work except merge the new lo's in the current active file and sync it. Alternately instead of piping the lo data across the control channel, the 'ctlinnd renumberlo' could supply temp file which innd would open and read. --Dave
Re: INND reported NOT running during expire
Author: Ken Lalonde
Date: Thu, 30 Jan 1997 00:00
Date: Thu, 30 Jan 1997 00:00
12 lines
1075 bytes
1075 bytes
Dave, A month ago, I changed our INN 1.5.1 to do exactly what you outlined. A new ctlinnd command sends the server the name of a temp file containing "group N" lines, built by an external script. The server updates the active file low article counts from the file in nearly no time. Patches available on request. But I still think it's worth running a "real" renumber weekly, just in case.
Re: INND reported NOT running during expire
Author: Alan Brown
Date: Fri, 31 Jan 1997 00:00
Date: Fri, 31 Jan 1997 00:00
18 lines
1348 bytes
1348 bytes
In article <x6d8up5ti1.fsf@csc.ti.com>, Joe Ramey <ramey@csc.ti.com> wrote: >Now, would it suffice to simply increase the timeout so that the >renumber would be sure to complete before ctlinnd gives up and >declares the server dead? No. I've seen renumbers take up to 40 minutes to complete. AB -- o Stamp out unauthorised relay-hosting. This SMTP "feature" shouldn't default "on" - See http://www.vix.com/spam/ and http://www.sendmail.org/antispam.html o Junk email returned, in bulk, back to sender; w/copies to all postmasters. o Received junkmail constitutes a request for aggressive site security probing.
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