Article View: news.software.nntp
Article #38214Re: INN 2.2 and innfeed: what am I doing wrong?
From: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
Date: Wed, 23 Jun 1999 00:00
80 lines
3376 bytes
3376 bytes
Another really old article, which I'm following up to as an excuse to post
code.
Bert Hyman <bert@yuck.net> writes:
> Since I'm still ironing out the config, I occasionally edit "newsfeeds"
> and do a "ctlinnd reload newsfeeds". When I do, innfeed seems to get
> strange.
innfeed doesn't always cope well with being restarted. I've seen a
dramatic improvement in 2.2 over the separate innfeed I was using with
1.7.2, but it still sometimes gets all confused.
> The innfeed-dropped.<pid> file in spool/innfeed starts growing and a
> file called "innfeed!" (that's the pseudo-site name in my newsfeeds
> file) shows up in spool/outgoing.
> Am I doing something wrong, or is this normal? If it's normal, how am I
> supposed to handle these files?
Run procbatch -vm on them.
I run the following out of cron every hour (warning, possibly
Solaris-specific outgoing mail program):
------------------------------
#!/bin/sh
# checkdropped -- Check for innfeed dropped article files.
# $Id: checkdropped,v 0.1 1999/05/21 09:14:37 eagle Exp $
#
# innfeed will occasionally drop articles (particularly when it's started
# and stopped a whole bunch of times in close succession, such as when
# INN is handling lots of control messages). When it does, it writes those
# articles to innfeed-dropped files in /news/innfeed. This script runs
# hourly and checks for innfeed-dropped files of non-zero size, mailing a
# report to news@news if there are any.
cd /news/innfeed
dropped="/tmp/dropped.$$"
for file in innfeed-dropped.*; do
test -s "$file" && ls -l "$file" >> "$dropped"
done
test -s "$dropped" \
&& /usr/bin/mailx -s "innfeed dropped articles" news@news < "$dropped"
rm -f "$dropped"
------------------------------
I also run the following nightly, to supplement the nightly report (which
only tells me about stuff in outgoing and doesn't tell me about backlogs
in the innfeed directory). This is really ugly and needs to be rewritten
in Perl:
------------------------------
#!/bin/sh
# backlog -- Report on non-zero innfeed backlog files.
# $Id: backlogreport,v 0.2 1999/05/21 10:58:14 eagle Exp $
#
# Scan /news/innfeed for non-zero innfeed backlog files and send a list of
# them to news@news so that we know what peers aren't keeping up.
PATH=/usr/local/bin:"$PATH"
export PATH
cd /news/innfeed
backlog="/tmp/backlog.$$"
for file in *; do
if `echo "$file" | grep -v lock 2>&1 >/dev/null` && [ -s "$file" ]; then
ls -l "$file" >> "$backlog"
fi
done
test -s "$backlog" \
&& /usr/bin/mailx -s "innfeed backlog report" news@news < "$backlog"
rm -f "$backlog"
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylbte7axhj.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<AUHT2.275$WA4.50457@ptah.visi.com>Show Full Headers
Complete Article Headers
Message-ID: <ylbte7axhj.fsf@windlord.stanford.edu> Subject: Re: INN 2.2 and innfeed: what am I doing wrong? Date: Wed, 23 Jun 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <AUHT2.275$WA4.50457@ptah.visi.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 492926710 Organization: The Eyrie Newsgroups: news.software.nntp