🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Chris Bellomy Tue, 03 Dec 1996 00:00
INN 1.5b2 -- Caching while throttled
#12921
Author: Chris Bellomy
Date: Tue, 03 Dec 1996 00:00
15 lines
977 bytes
I have seen firsthand that the nnrpd (it *is* nnrpd, yes?) caching-
while-innd-is-throttled feature does in fact work.  What I haven't
seen an answer to is this:  what triggers the cached articles to
be posted?  Does a reboot caused the cache to be lost?  If so, what
can be done to prevent this?

Any info is greatly appreciated.

-- 
Chris Bellomy				Flashnet Communications
Senior System Administrator		Fort Worth, Texas
cbellomy@flash.net			(817)332-8878

Re: INN 1.5b2 -- Caching while throttled
#12953
Author: Jesper Skriver
Date: Tue, 03 Dec 1996 00:00
34 lines
1776 bytes
news@news.cam.ac.uk (USENET news) wrote:

[klip]

>A quick test (with the released V1.5) confirmed my suspicion that the
>article would get dropped in the in.coming directory in the spool, and a
>subsequent rnews -U run (cron job or whatever) picks it up and gives it to
>innd. [This does, of course, mean that if innd rejects an article which
>nnrpd thought was OK, the user won't get told about it - but that should
>presumably be rare, e.g. if the target group was deleted between spooling
>and final submission.]


Yes, actually "hacked" (a very minor hack) nnrpd, so that it won't try
to post the article directly, but always spools it.
We did this because we use the same machine for readers and feeds, and
sometimes our users experienced very long posting times (up to ~40sec)

And now we just run rnews out of the cron every minut.

It works fine, and we havn't had any problems.

regards
Jesper Skriver
Tele Danmark Internet
Jesper Skriver
Tele Danmark Internet

Holdningerne og sprogbruget i denne posting er ikke parset 
af nogen kommunikationsansvarlig enhed og kan derfor ikke 
noedvendigvis tages som et udtryk for den officielle firmapolitik :-)

Re: INN 1.5b2 -- Caching while throttled
#12954
Author: USENET news
Date: Tue, 03 Dec 1996 00:00
25 lines
1689 bytes
In article <581s1o$iu0@excalibur.flash.net>,
Chris Bellomy <cbellomy@flash.net> wrote:
>I have seen firsthand that the nnrpd (it *is* nnrpd, yes?) caching-
>while-innd-is-throttled feature does in fact work.  What I haven't
>seen an answer to is this:  what triggers the cached articles to
>be posted?  Does a reboot caused the cache to be lost?  If so, what
>can be done to prevent this?
>
>Any info is greatly appreciated.

A quick test (with the released V1.5) confirmed my suspicion that the
article would get dropped in the in.coming directory in the spool, and a
subsequent rnews -U run (cron job or whatever) picks it up and gives it to
innd. [This does, of course, mean that if innd rejects an article which
nnrpd thought was OK, the user won't get told about it - but that should
presumably be rare, e.g. if the target group was deleted between spooling
and final submission.]

                                John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk    (alias {newsmaster,news,usenet}@news.cam.ac.uk)

Re: INN 1.5b2 -- Caching while throttled
#12994
Author: Michael Handler
Date: Wed, 04 Dec 1996 00:00
45 lines
2616 bytes
In <32a4ab82.2456831@193.162.146.10>,
Jesper Skriver <jesper@tdk.net> wrote:

> Yes, actually "hacked" (a very minor hack) nnrpd, so that it won't try
> to post the article directly, but always spools it.
> We did this because we use the same machine for readers and feeds, and
> sometimes our users experienced very long posting times (up to ~40sec)
> 
> And now we just run rnews out of the cron every minut.
> It works fine, and we havn't had any problems.

I assume you're talking about Bill Well's spooling nnrpd patch. I
installed it on nntp.netaxs.com when I was working there, and indeed,
it worked very nicely.

The one caveat about running rnews every minute out of cron is this:
if INN is paused (not throttled), or is renumbering, and you run rnews
-U, that rnews will hang infinitely waiting for a response to POST (or
a socket to INN, if it's renumbering). This really isn't a problem,
except that you build up lots of rnews processes, all trying to talk
to INN, and waiting until INN unpauses or finishes renumbering. And,
when INN does finish whatever it's doing, the rnews processes trip all
over themselves, each trying to serve the same articles into INN, and
whining into syslog when another rnews process deletes the article out
from under them.

This doesn't cause any major system damage, but it is messy and a
waste of resources. The solution is to get my esteemed cow-orker
Clayton O'Neill's super.rnews.diff from his web page at
<URL:http://www.news.erols.com/patches/>. This patch, in addition to
various other fun things, fixes rnews so that if it doesn't hear
anything from INN after 5 minutes, it exits cleanly. Then, the worst
case scenario is that you have five rnews processes running
simultaneously, which isn't that bad.

Michael, soon to be <mhandler@erols.com>, though not yet.
-- 
Michael Handler <handler@netaxs.com>


                                          dead set on destruction -- husker du


Re: INN 1.5b2 -- Caching while throttled
#13035
Author: Alan Brown
Date: Fri, 06 Dec 1996 00:00
29 lines
1777 bytes
In article <58230f$grp@lyra.csx.cam.ac.uk>,
USENET news <news@news.cam.ac.uk> wrote:

>A quick test (with the released V1.5) confirmed my suspicion that the
>article would get dropped in the in.coming directory in the spool, and a
>subsequent rnews -U run (cron job or whatever) picks it up and gives it to
>innd.

Which is how the originally realeased 1.4 patches dealt with the problem 
too :-)

> [This does, of course, mean that if innd rejects an article which
>nnrpd thought was OK, the user won't get told about it - but that should
>presumably be rare, e.g. if the target group was deleted between spooling
>and final submission.]

It's not that rare here - many users seem to use software which insists 
on timestamping the articles - if their localtime is "too old", then the 
article is quietly droppped.

One of my users keeps trying to spam and I just don't seem to have gotten 
round to telling him that his clock is set to 1980.... 

AB
-- 
  Junk email returned, in bulk, back to sender; w/copies to all postmasters.

Re: INN 1.5b2 -- Caching while throttled
#13211
Author: Alan Brown
Date: Wed, 11 Dec 1996 00:00
49 lines
2392 bytes
In article <slrn5ab469.kne.handler@access.netaxs.com>,
Michael Handler <handler@netaxs.com> wrote:

>....
>to INN, and waiting until INN unpauses or finishes renumbering. And,
>when INN does finish whatever it's doing, the rnews processes trip all
>over themselves, each trying to serve the same articles into INN, and
>whining into syslog when another rnews process deletes the article out
>from under them.

>waste of resources. The solution is to get my esteemed cow-orker
>Clayton O'Neill's super.rnews.diff from his web page at
><URL:http://www.news.erols.com/patches/>. This patch, in addition to
>various other fun things, fixes rnews so that if it doesn't hear
>anything from INN after 5 minutes, it exits cleanly.

What're the other patches?

> Then, the worst
>case scenario is that you have five rnews processes running
>simultaneously, which isn't that bad.

That's bad enough and easily avoided by shlocking the rnews -U call:

#!/bin/sh

# script to run rnews -U, ensuring that only one copy is running.
# AJB 17 July 1994

       LOCK=/usr/local/news/LOCK.rnewsU
          trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
          if /usr/local/news/bin/shlock -p $$ -f ${LOCK} ; then
              # Do appropriate work
		echo 'Starting rnews -U' > /dev/cub1
		/usr/bin/rnews -U > /dev/cub1
		echo 'rnews -U finished' > /dev/cub1
          else
              echo Locked by `cat ${LOCK}` >/dev/cub1
          fi
exit 0


-- 
Stamp out relay-hosting. This SMTP "feature" should never default to "on".

Junk email returned, in bulk, back to sender; w/copies to all postmasters.

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