Article View: news.software.nntp
Article #26517Re: Diablo progress report
From: Matt Dillon
Date: Wed, 25 Feb 1998 00:00
Date: Wed, 25 Feb 1998 00:00
54 lines
3328 bytes
3328 bytes
:In article <6d0sa2$1e2$1@xs1.xs4all.nl>,
:Jan-Pieter Cornet <johnpc@xs4all.nl> wrote:
:>In article <6d0jmp$rii$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:
:..
:>
:>Matt, Quick question to merge two threads in this newsgroup: any plans
:>on implementing newnews, and if so, how are you going to implement it
:>efficiently? Since if I recall things correctly, you weren't using any
:>history file...?
I have no plans to implement newnews at this time.
:>> The only big ticket item left on my list is in dealing with expiration
:>> of overview information. I hope to get that in tomorrow, and will then
:>
:>I take it you're going to have to have a sort-of "expire" feed from the
:>spool to the readers, right? So multiple reader boxes using the same spool
:>box will expire simultaneously? That'd be great.
Well, it depends on the situation. It is possible to do a pseudo-expire
in a fully-slaved configuration simply by synchronizing the article range
in the local active file with what's on the spool box. When coupled with
Xref:, this would allow several readers to be synchronized together from
one master 'spool'.
My problem is how to 'clean up' old overview info. My current idea is
to group overview info into multiple files per group, each file containing
1/4 of the headers, and then simply remove() the stale files.
My current idea on how to index overview information is with a circular
per-group-basis fixed-length array. Consider: 25,000 groups, 1000 articles
per group max = 25 million index records. Each index record is 16
bytes resulting in around 400MB worth of index info and perhaps 4GB worth
of overview information. Smaller news sites would be able to use smaller
index arrays, news sites with access to more storage would be able to use
longer index arrays. So, by default, you would have around 25000 16K
'index' files, one per group.
I have two goals here: (1) I want expiration of stale data to be
efficient, and (2) constant-sized index files are much more reliable then
append-style index files. Because the file size does not change, the
meta-data can survive horrendous crashes with the end result being the loss
of just a few index records verses whole groups.
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@best.net>, include original article w/ any response.
do not under any circumstances send email to joeblow@bigspender.idiom.com
and, for gods sake, don't email bucktram@popserver.idiom.com
Technical Details
Message-ID:
<6d1n5m$69o$1@flea.best.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:
<6clc7s$b96$1@apollo.backplane.com> <6d0jmp$rii$1@flea.best.net> <6d0sa2$1e2$1@xs1.xs4all.nl>Show Full Headers
Complete Article Headers
Message-ID: <6d1n5m$69o$1@flea.best.net> Subject: Re: Diablo progress report Date: Wed, 25 Feb 1998 00:00:00 +0000 From: dillon@best.net (Matt Dillon) References: <6clc7s$b96$1@apollo.backplane.com> <6d0jmp$rii$1@flea.best.net> <6d0sa2$1e2$1@xs1.xs4all.nl> 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: 328577927 X-Trace: 888430583 9336 dillon 206.184.139.132 Organization: Best Internet Communications, Inc. - 650 964 BEST Newsgroups: news.software.nntp