Article View: news.software.nntp
Article #58825Re: nntp server question
From: Curt Welch
Date: Tue, 14 May 2002 02:58
Date: Tue, 14 May 2002 02:58
94 lines
5793 bytes
5793 bytes
Rob Morelli <morelli@cs.utah.edu> wrote: > Can someone tell me what algorithm the common nntp > servers use for deciding when to drop messages? All the server software works slightly differently, and all can be configured to act differently. It's just a function of what the admin thinks is best for his system. > For instance, > 1. Is it just a function of age (and if so, how exactly is age > measured). That was common in older systems and is an option in many servers still, but it's not used as much anymore. It was common to have options to expire based on the time the article showed up on the server or based on the date in the article or a combination of either. Systems that expired based on age also tended to suport the Expires: header which allowed articles to expire sooner or to hang around longer. FAQs could be posted with a one month exires: time and then reposted in one month. Expiring based on age worked nicely when Usenet was much smaller and tended not to take up the entire disk space on a machine. Back in those days, Usenet was just one of many services which would run on one system, and it only took up a limited amount of disk space. But when Usenet started taking up entire disks, expiring by time was a problem. You wanted to use the entire disk, but had to set the time correctly to prevent it from filling up and loosing new messages because there was no disk space for them. As Usenet volume increased, you had to constantly reduce your expire times to keep it from filling up the disks. > 2. Does it depend on how often the message is requested. No. Or only indirectly. News admins will sometimes tend to try and figure out which groups people want to keep longer and adjust their configuration so the more popular groups will stay around longer, or so the least popular expire the quikest. But I don't recall any system be confiugred to automatcially expire based on this type of logic. The basic NNTP protocal prevents that type of stuff from working very well. It would cause problems if you tried to do that. The protocol assigns consigutively higher numbers to each new article put into a group and most servers expire articles in close to the same order they showed up. The NNTP "GROUP" command reports the lowest number article not yet expired in the group as well as the highest number. Most newsreaders assume that "most" articles in that range have not expired. If you expire the article out of order, most news clients won't correctly report to the user which articles are still on the server and which have expired. It can make a group "look" like it's got 100K articles when in fact there are only 100 articles in the group. If your server allowed groups to get that sparse, users would get very frusted because their clients would show a list of 100K articles, but tell you "not available" everytime you tried to read one of the expired articles. > 3. Does the server decide how many messages to keep, I don't think I've every seen it based on a count of messages. > or > how much disk space to use? The admin that configured the server decides how much space to allocate to the news server. Most large servers now (i.e. anything trying to get close to a full feed) expire based on space. The admins create "spools" which is a collection of disk space, and then defines which articles go into which spools (normally by newsgroup name). The news server puts each new article it receives into one of many spools. When the spool is full, old articles are removed as required to make room for each new article. > 4. Does the server allocate space on a per group basis or > globally for all groups? It's seldom done per-group, but it could be configured that way. Though it would be insane to try and allocate separte space for every group. The admin can set up as many different spools as they like, and then define (using a configuration language for the server) which articles will go to which spools. It's typically done by which group(s) the article is posted to so you can put all alt.binaries.* articles into one spool, and everything else into another if you like. Most servers allow you to sort articles by things like size, and number of cross posts and many other options as well, but mostly it's done in large sets based on newsgroup names. In the end, every server will be different. You just have to talk to the admin to see how he his his server configured. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020513225822.876$QK@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!newsfeed.mathworks.com!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3CE031C3.4654649B@cs.utah.edu>Show Full Headers
Complete Article Headers
Message-ID: <20020513225822.876$QK@newsreader.com>
Subject: Re: nntp server question
Date: Tue, 14 May 2002 02:58:23 +0000
From: curt@kcwc.com (Curt Welch)
References: <3CE031C3.4654649B@cs.utah.edu>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!newsfeed.mathworks.com!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com a@VnL8dtFPmSOf4d.5AlIGPxOPSpOFL_+RqYgD.TX,k2ojGX,
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 93