🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7886

Re: loads caused by slurping newsfeeds

#7886
From: Joe Greco
Date: Wed, 22 May 1996 00:00
53 lines
3288 bytes
In news.software.nntp article <4nrjdp$97i@kadath.zeitgeist.net>, edgar@news.zeitgeist.net (Edgar Nielsen) wrote:
:Hi,
:	I've been getting quite a few requests from sites wanting to
:get their news using 'slurping' or 'pull' methods using tools like DNews,
:mainly from sites that don't want to invest in multiple spindles,
:lots o' ram, etc. on their news server.
:
:From what I've seen, this method tends to load my server more than the
:standard 'push' style of newsfeed using innxmit or nntplink. Some
:claim that their software is designed to not cause a big load on
:the server, etc. etc. My server doesn't have many NNTP client readers,
:it is mostly for news feeds only.
:
:However, I don't have anything concrete on this, and was wondering what
:other people's experience has been with the various slurping packages.

The worst offenders are the ones that retrieve by message-ID, because they
will cause nnrpd to load the history.pag into RAM.  You can disable this by
setting NNRP_DBZINCORE_DELAY to -1.  This doesn't prevent the random
seeking, or the thrashing on your history disk.

I wrote a "utility" years ago that worked very much like a newsreader.  It
would iterate through a list of newsgroups, tracking the high message
retrieved, and presented a very low load to the remote server.  Since
retrievals would tend to be in the same directory, the random seeking
phenomenon was lowered too...  I do not comprehend why more people don't use
this model, given that the BIGGEST reason people tell me they want to use
slurp is so that they can control the selection of newsgroups.

Don't ask me for the program, it was something I lost years ago.  It was
trivial to write and would be more trivial in perl.

You can let them do it, but you have much less control over the load imposed
on your server.  One _useful_ trick is to recode nnrpd with a "piggy" flag,
when set by some threshold (i.e. "more than 2 arts per second requested on
average", "accessed an article by message-ID", etc) you can tell nnrpd to
sleep(1) after each article.  This prevents people running things like
AUB, UQWK, slurp, etc. from dragging your server's performance down into the
abysmal range by requesting two dozen articles per second per abusive
client.

This seems totalitarian at first glance but when you think about it, it
starts to make sense.  You can also place a maximum limit on the number of
nnrpd's you wish to allow.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Technical Details
Message-ID: <4nvoo1$n45@brasil.moneng.mei.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
References: <4nrjdp$97i@kadath.zeitgeist.net>

Show Full Headers
Complete Article Headers
Message-ID: <4nvoo1$n45@brasil.moneng.mei.com>
Subject: Re: loads caused by slurping newsfeeds
Date: Wed, 22 May 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <4nrjdp$97i@kadath.zeitgeist.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-mail
X-Deja-AN: 156156766
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp