Article View: news.software.nntp
Article #45221Re: News routing software
From: mouse
Date: Sat, 25 Mar 2000 00:00
Date: Sat, 25 Mar 2000 00:00
36 lines
4826 bytes
4826 bytes
On 25 Mar 2000 19:41:43 GMT curt@kcwc.com (Curt Welch) wrote: >mouse@nospam.nibble.net wrote: >I was tired of messing with other people's crappy code (that was at >the beginning of the 2.0 stuff). If I have to deal with crappy >code, I'd rather it be my own :). Yes, when it's your own code you at least know where to look when there is a problem. :) What news server software is yours? (other than the web based tool used on newsreaders.com) >And tranist servers are a lot simpler to write. If you want to do a >good job at both, you need to design the server from the ground up >to work well for both. Tacking on reader support later isn't likely >going to cut it. It has been designed from the ground up to support reader access. I just haven't wrote the code yet. While there may be some surprises in the future most of the general design is done. It's just a matter of codeing it. :) >For example, have you thought about the issues of how the >group/xover code "knows" when an article has expired? A newsreader >that returns GROUP info, or XOVER data, or LISTGROUP, data that's >outdated, or just wrong, is a bad news server. The spool system has callbacks when an article is being pushed out. The xover data is updated before the article is removed. The xover data can never become out of sync with the spool and no expire process is needed. That's the design theory. Like I said all the code isn't written yet, but these issues were thought about and the existing code has stub functions in place to handle these issues. >If you use a simple fixed size cyclic buffer of some type for >history. And the admin must define the size of the history file, >then you run into the problem of the admin not setting the size >large enough to hold "all" the Messages-IDs that in the spool. And >good reader box needs to adjust the size of the history >automatically to make sure that each and every article in the spool >has an entry in the history file. This is another problem like the The history system will support millions of records. It's a simple matter to compute the needed size. For example if you receive 1 million articles per day and you wish to store articles for 30 days you would need 30 million history entries. The system will be able to detect if it's removing a history item that is still pointing to a spool object. Also oversizeing the history will not hurt anything other than use some cheap hard drive space so you would just choose a larger number than needed. Yes the admin must make a guess, but the defaults should not need adjusting except on very large sites and those admins should be able to do some math. >Remeber also that on a reader box you will want to support different >article retentions based on how the admins wants to save things. The >could for example save one local group in a spool which lists for a >full year. But all other articles expire in about a week. You don't >want to force the history file to hold _all_ articles for a year >just because the 10 article in the local gorup stay around that >long. But you do need to make sure that the Message-IDs of those 10 >articles stay in the history for a full year. All the cyclic buffer modules have callbacks before an entry is deleted. This allows, for example, the history queue to skip the deleting of an entry if the article it points to is still stored on the spool. >You will need to change that later. You can't afford to use fixed >size buffers once you start trying to support 100's of peers or >1000's of readers. You have to allocate and free the buffers on the >fly as well as dynamically adjust their size. The 1 MB of memory is only needed for peers. I may change that in the future, but for now it's not an issue. The virtual memory system should allow most unused buffer pages to be swapped out without affecting performace. Does anyone that has a machine with several hundred incoming feed channels want to test it? Thanks for the feedback. I'll keep all these issues in mind as I add the reader support. Steve Walker. btw- Is this message formated better?
Technical Details
Message-ID:
<38dd4c92$1_1@news.nntpserver.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-mailReferences:
<20000325144143.934$mi@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <38dd4c92$1_1@news.nntpserver.com> Subject: Re: News routing software Date: Sat, 25 Mar 2000 00:00:00 +0000 From: mouse@NOSPAM.nibbel.net References: <20000325144143.934$mi@newsreader.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: 602388945 Organization: http://www.easyusenet.com via WNews the worlds most powerful web based news reader. X-Originating-Host: 63.75.241.145 (mouse) Newsgroups: news.software.nntp X-Complaints-To: support@easyusenet.com