🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #21488

Re: Cacheing News Server

#21488
From: Vidar Hokstad
Date: Fri, 12 Sep 1997 00:00
74 lines
4629 bytes
In article <5vacao$6lr@panix4.panix.com>,
	alexis@panix.com (Alexis Rosen) writes:

> Hm. My news reader machine currently takes half a million articles a day
> from the transfer box, which takes a whole lot more. Even if I'm serving
> 250,000 articles/day to reader clients, I'll bet that only 20-40K of them
> are unique. (Think about cancels, *.jobs.*, zillions of spams nobody reads
> before they're canceled, etc.)

Not to mention that the groups people read daily is only a very small subset
of groups - one of the newsservers I run take about 12.000 groups now, and
the daily average is accesses to 500 groups, with a core of 3-400 that are
read every day.

> Would it be reasonable to run a news cache box as a main reader, if we
> preloaded some of the most popular hierarchies? Has anyone tried this?

I don't think you would gain much from preloading, since the articles
would be cached the first time a user requests the articles anyway, and with
a resonable number of readers for the popular groups only the few articles
that has arrived since someone else downloaded the group (presuming lots of
people use offliners) will be uncached. So the actual impact for the
readers will be small.

Also by preloading the cache, and thus "always" having articles that have
never been read in the cache, you use space that I believe would be better
utilized by keeping other data for a longer time period.

We will support preloading quite soon though, but mainly for people that
want to use the cache for dial on demand solutions where downloading the
most read groups in larger chunks will reduce the number of placed calls a
lot.

> It should be easy enough to identify the candidates for preloading simply
> by using the more extensive article stats available in the daily report.
> 
> I wonder how much the reader load on the reader box, when translated through
> the cache-filler, would be reduced. I suspect that the benefits of limited
> long-open connections to the transfer server would be sizeable. You could
> do a dbzincore on the reader process on the transfer server, which would
> help too (after all, you'll only have a few nnrpds running).

It depends very much on what kind of newsreaders your users use. I use knews,
which is *extremely* inefficient in it's use of the newsserver. It frequently
"rescans", which translates to a "LIST ACTIVE"... It also requests *all*
overview records for the groups it enters (at least by default, I'm on the
same LAN as the newsserver so I haven't bothered messing with it :) etc.
With newsreaders like that, and my newsreading pattern (check groups
frequently, which implies a full transfer of all overview records each
time... Sigh.), I've experienced reductions of up to 80% of traffic between
the server and the cache compared to between the cache and the reader.

And that's on my development setup of Evil Purple, which only I use.
(Homepage at <URL:http://a.ncg.net/newscache/> :-)

You won't see that kind of reductions with more sensible newsreaders, of
course. Not for _one_ user anyway, but since the caching of actual
articles only give a very minor payoff for one user (after all I don't
spend all day reading the same articles again and again), you will start
seeing substantial reductions in the traffic caused by the most popular
groups as the numbers of users increase.

-- 
--- Vidar Hokstad <v@ncg.net> ------+-+-- NorConnect Internet Services AS ---
  DrStrange on Undernet / EFnet     |+| Consulting on Internet and intranets
 <URL:http://a.ncg.net/DrStrange/>  |+|   <URL:http://www.norconnect.no/>
------------------------------------+-+--------------------------------------

-- 
 Posted through a BETA of NCG Evil Purple NewsCache. Info or complaints:
  <URL:mailto:newscache@ncg.net> or <URL:http://www.ncg.net/newscache/>

Technical Details
Message-ID: <5vb2ek$nck$1@nntp.newmedia.no>
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: <5uu26a$o4d$1@news.adl.auslink.net> <5v0ogq$2hb$1@nntp.newmedia.no> <5vacao$6lr@panix4.panix.com>

Show Full Headers
Complete Article Headers
Message-ID: <5vb2ek$nck$1@nntp.newmedia.no>
Subject: Re: Cacheing News Server
Date: Fri, 12 Sep 1997 00:00:00 +0000
From: vidarh@ncg.net (Vidar Hokstad)
References: <5uu26a$o4d$1@news.adl.auslink.net> <5v0ogq$2hb$1@nntp.newmedia.no> <5vacao$6lr@panix4.panix.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: 272229234
X-Cache-Posting-Host: a.ncg.net
X-Cache: NorConnects Evil Purple NewsCache v1.0.00 <URL:http://a.ncg.net/newscache/>
Organization: IDG New Media <firmapost@idg.no> - ISP in the IDG group
Newsgroups: news.software.nntp