Article View: news.software.nntp
Article #23201Trimming the active file by group size
From: SysAdmin
Date: Wed, 12 Nov 1997 00:00
Date: Wed, 12 Nov 1997 00:00
66 lines
3882 bytes
3882 bytes
I don't have any time to deal with our News server. And while we have a full feed, our agreement with our upstream is that we pretty much have to accept everything they toss our way. In addition, our spool space hasn't been upgraded in over a year - we still have only 7 Gigs of space for a full feed. I had to do something, we kept running out of spool and throttling. So I've hit on the following solution which seems to be working well enough that I'm tossing it out for comments. First, we're a leaf node and don't feed anyone else. I don't think this would work if you have people you feed. Second, our readers number about a dozen people and they are either browsing the sex pictures groups or the rec/comp groups. Very light reader work load. Third, I moved the NOV to a separate disk which made a HUGE difference. I cannot say enough how much of a difference it made: average CPU is about 1/3 what it was and expire times are also about 1/3 what they were. I had a spare 500 Meg disk laying around so I simply recompiled with the changes laid out in the FAQ. Best 30 minutes I've spent with INN so far. So after setting up a new NOV database, I then wrote a couple of NAWK scripts that run each night during news.daily. The first one searches the NOV database and does a ctlinnd rmgroup for any group that has less than 3 items in the .overview file. The second one goes through the log file and pulls out all the lines showing an article was refused because it isn't in the active file. The result is sorted, counted and a ctlinnd newgroup is issued for any group found with a count of 9 or more. I turned off control message processing completely. The scripts have a provision to protect groups of my choosing so I can take user requests, (the control groups will never be deleted, for example). After 2 weeks here is the result: My active file was purged of empty groups and went from 16,000+ entries to 2200. It has since grown a bit to just about 2700. I expect it will stabilize around 3000. My spool hangs out at about 35-40% (of 7 Gig) and my history file has stabilized at about 1.3 million lines. I process about 500-600K lines per day and my acceptance runs about 75-80% of all articles offered. This last is important becasue my feed has said they will cut me off if I load them down with refusals. Backlog seems to be zero. I only keep three days of news (with the exception of reqeusted groups - like this one). That makes things much easier I know. But still,this seems to be such an easy and workable way to handle news administration that I wonder if I'm just not seeing the downside. Is there one? I know that a knowledgeable person could stream bogus articles and fill up my system as easily as they stream bogus control messages. But unless they're willing to keep it up, this system seems to be pretty self corrrecting - if I don't run out of disk first. And I think I can count on my upstream to trim out a lot of the bogus messages via the cancel system. Comments? -- ########################################### ## ## ## Reply to user fg at domain portal.com ## ## ## ###########################################
Technical Details
Message-ID:
<34696CFA.6B6F@ObviouslyBogus.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-mailShow Full Headers
Complete Article Headers
Message-ID: <34696CFA.6B6F@ObviouslyBogus.com> Subject: Trimming the active file by group size Date: Wed, 12 Nov 1997 00:00:00 +0000 From: SysAdmin <SysAdmin@ObviouslyBogus.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: 288845924 Distribution: inet Organization: Portal, Home of Infranet: don't got it? Get it! Newsgroups: news.software.nntp