🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #47396

Re: Test farm up, no restrictions, knock yourselves out.

#47396
From: Curt
Date: Tue, 08 Jun 2004 06:07
78 lines
4880 bytes
ViSiToR <me@privacy.net> wrote in 
news:epg9c0tap8oc816bjq89stoqocl59fl1ps@192.168.1.3:

> Ed <vegased@stripbigfoot.com> wrote:
> 
>> ViSiToR <me@privacy.net> wrote in 
> news:3ot8c09aip1lb2r1j29efj3mke1m33ogma@
>> 192.168.1.3:
>> 
>> >> So then if my reader does a group command before downloading by
>> >> message ID then is it really then downloading by article number?
>> > 
>> > Yip
>> 
>> No way to tell.  Some servers require a group command before the 
> message-
>> id.
> 
> True, in that case you intend to download by message-id, but sometimes
> first you have to do what the server wants you to do. Normally you ask
> headers then you choose the messages to download, in that case you do
> it by articlenumber.
> 

The RFC states that you can request an article at any time by its message 
ID, that includes the HEAD, BODY or ARTICLE command, so:

HEAD <blahblah@blahblah.com>

Is legal as soon as you log in, ie:

$ telnet 127.0.0.1 119
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
201 (phx-newsfe02) Powered by Highwinds Software -- http://www.highwinds-
software.com/ (Tornado v1.0.6)
head <Flcxc.705638$Ig.233288@pd7tw2no>
221 310347 <Flcxc.705638$Ig.233288@pd7tw2no>
Path: be01_bin!newchomper!npeer01.lga.highwinds-media.com!
newsfeed.news2me.com!sjc1.usenetserver.com!news.usenetserver.com!pd7cy2s
[]
..

The message-ID is globally unique to all usenet, and therefore is all 
thats theoretically required to identify an article. The abstraction of 
group name and article number are not necessary.

Easy for you to say, but it presents a rather interesting problem to the 
poor programmer who has to write the server. to wit-

PROBLEM: Create a data structure which can insert at least 100 ID's per 
second and associate at least two 32-bit values with them, but scale to 
at least 5000 per second (so a server can catch up after at least 16 
hours of downtime). While simultaneously (multithreaded) performing 
lookups at a rate of at least 10 per second, randomly distributed amongst 
every entry (ie- no assumptions can be made about locality). Oh and don't 
strain the disks any more, they are already at capacity ;)

At the same time, expire message ID's at the same rate they are being 
indexed, but only if the article is really gone (ie, if the spools are 
filling rather than cycling)

Extra credit would be to take up as little RAM as possible, its precious 
stuff, and needed for more important things than message ID lookup

What kinds of numbers are we talking about? Well, on the server we're 
testing now, figure 100 million articles. Thats 100 million message IDs 
that all have to be searched. While simultaneously being updated and 
inserted and expired. figure minimum of 8 bytes of information required 
to actually find an article on the physical disk means persisting 
800megabytes of data minimum, plus whatever you are using to index it and 
hash it. Any way you slice it, you gotta be able to scan and pull random 
data from a gigabyte index file.

Actually I think its fun as hell to write this stuff, call me a nerd :)

-Curt
Technical Details
Message-ID: <Xns9502168C6B10Acunohighsger@216.77.188.18>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20140909.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!bigfeed2.bellsouth.net!bigfeed.bellsouth.net!bignumb.bellsouth.net!news.bellsouth.net!bignews3.bellsouth.net.POSTED!8f892fc8!not-for-mail
References: <hi25c0t87a1mlckvc8n7gd47t8r9o2ut92@4ax.com> <MXLwc.1766$HP.18724902@news-text.cableinet.net> <Xns9500CE3DBA6C3cunohighsger@216.77.188.18> <Xns9500E14851821vegasedvegasedvegase@63.223.5.254> <Xns9501EEACB410cunohighsger@216.77.188.18> <dvh8c0p99nbqhup10mcj80d2t9lct7idbo@4ax.com> <s_Zwc.6135478$iA2.705535@news.easynews.com> <kqr8c0hscgmju3s6bv6nmgocv4ofp2k73b@4ax.com> <3ot8c09aip1lb2r1j29efj3mke1m33ogma@192.168.1.3> <Xns95017384463B1vegasedvegasedvegase@63.223.5.254> <epg9c0tap8oc816bjq89stoqocl59fl1ps@192.168.1.3>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9502168C6B10Acunohighsger@216.77.188.18>
Subject: Re: Test farm up, no restrictions, knock yourselves out.
Date: Tue, 08 Jun 2004 06:07:06 GMT
From: Curt <curt.hartung_NOSPAM@AT_highwinds-software.com>
References: <hi25c0t87a1mlckvc8n7gd47t8r9o2ut92@4ax.com> <MXLwc.1766$HP.18724902@news-text.cableinet.net> <Xns9500CE3DBA6C3cunohighsger@216.77.188.18> <Xns9500E14851821vegasedvegasedvegase@63.223.5.254> <Xns9501EEACB410cunohighsger@216.77.188.18> <dvh8c0p99nbqhup10mcj80d2t9lct7idbo@4ax.com> <s_Zwc.6135478$iA2.705535@news.easynews.com> <kqr8c0hscgmju3s6bv6nmgocv4ofp2k73b@4ax.com> <3ot8c09aip1lb2r1j29efj3mke1m33ogma@192.168.1.3> <Xns95017384463B1vegasedvegasedvegase@63.223.5.254> <epg9c0tap8oc816bjq89stoqocl59fl1ps@192.168.1.3>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20140909.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!bigfeed2.bellsouth.net!bigfeed.bellsouth.net!bignumb.bellsouth.net!news.bellsouth.net!bignews3.bellsouth.net.POSTED!8f892fc8!not-for-mail
Newsgroups: alt.free.newsservers
Organization: Highwinds Software
User-Agent: Xnews/5.03.24
Lines: 78
X-Complaints-To: abuse@bellsouth.net
X-Abuse-Info: Please forward a copy of all headers for proper handling
X-Trace: bhmkggakljkaanefdbdpiflmbcekedmfhojhikkbagflhcbobngnamibplhbjedpanicfbffhncaeligffndjgiainoioakolmcchooeheefindbmmobmnhejeihnjjgijmeooggjlfpjpbglfohhhdgllicmllo
NNTP-Posting-Date: Tue, 08 Jun 2004 02:07:06 EDT