Article View: news.software.nntp
Article #15743Re: Background ctlinnd renumber?
From: Rod
Date: Tue, 11 Mar 1997 00:00
Date: Tue, 11 Mar 1997 00:00
46 lines
2427 bytes
2427 bytes
Per Hedeland, per@erix.ericsson.se wondered, perhaps too loudly:
>In article <3324EB72.783EA40A@spinne.com>, Jeff Garzik
><jeff.garzik@spinne.com> writes:
>|> I saw somewhere that a patch is being worked on to renumber from the
>|> history file. Great, but won't the server still freeze for this length
>|> of time?
[...]
>Anyway, the point is innd shouldn't spend a lot of time reading the
>directories as it does now (or using any other time-consuming process),
>but rather just be fed the new numbers that are produced by whatever
>external method - the time needed to do the actual update of the active
>file should be neglible.
Well, news.daily script uses the output from wc -l on the active
file as input to ctlinnd:
ctlinnd -s -t`wc -l <${ACTIVE}` renumber ''
which I would take to mean that the server is tied up for
quite some time. Since I am about to simply add norenumber
to the news.daily flags and do a renumber after news.daily
runs adapted from the original scheme:
ACTIVE=/usr/lib/news/active
while read GROUP lo hi flag
do
[ `expr $hi - $lo` -gt 1 ] && {
ctlinnd renumber ${GROUPS} >/dev/null 2>&1
sleep 1
}
done <${ACTIVE}
from cron. That way each group takes what it takes to renumber
and between newsgroups it still allows newsreaders to do thier
thing. It will still take a while to renumber, but the server
won't be held up while it's happening. Any problems with this,
or do I misunderstand the interaction of ctlinnd renumber and
innd?
--
davids@davids.psyberlink.net| Any email arriving at this address carries an
Steinberger: | implicit agreement to agressive scanning of the
State of the Instrument | sender's network, without restrictions.
Technical Details
Message-ID:
<slrn5ibn48.qn5.serling@davids.isource.net>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:
<3324EB72.783EA40A@spinne.com> <5g3ca9$td$1@news.du.etx.ericsson.se>Show Full Headers
Complete Article Headers
Message-ID: <slrn5ibn48.qn5.serling@davids.isource.net> Subject: Re: Background ctlinnd renumber? Date: Tue, 11 Mar 1997 00:00:00 +0000 From: serling@davids.psyberlink.net (Rod) References: <3324EB72.783EA40A@spinne.com> <5g3ca9$td$1@news.du.etx.ericsson.se> 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: 224776122 Organization: That Great Twilight Zone in the Sky Reply-To: davids@davids.psyberlink.net Newsgroups: news.software.nntp