🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by SysAdmin Wed, 12 Nov 1997 00:00
Trimming the active file by group size
#23201
Author: SysAdmin
Date: Wed, 12 Nov 1997 00:00
66 lines
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 ##
##                                       ##
###########################################

Re: Trimming the active file by group size
#23197
Author: Simon Lyall
Date: Wed, 12 Nov 1997 00:00
33 lines
2139 bytes
SysAdmin <SysAdmin@ObviouslyBogus.com> wrote:
>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?

You are likely to have a problem with low volume groups, many of those
(especially moderated ones) are likely to go a couple of days with only a
few posts. Some like news.announce.important or comp.security.announce
might go for months with nothing.

I would guess that a better idea would be to monitor the logs and remove
any group that had not been read by your users in the last month.

You could also switch from INN to DNEWS or nntpcache as they might better
suit your system..

-- 
Simon Lyall. | Looking for Work | Mail: simon@darkmere.gen.nz
"Inside me Im Screaming, Nobody pays any attention."  |  MT.

                "...it's about damn time that all of us who actually
               give a damn about Usenet stand up and tell the people
               who don't to fuck off and die." -- Russ Allbery

Re: Trimming the active file by group size
#23224
Author: Michael Shields
Date: Thu, 13 Nov 1997 00:00
15 lines
1250 bytes
In article <34696CFA.6B6F@ObviouslyBogus.com>,
SysAdmin <SysAdmin@ObviouslyBogus.com> wrote:
> I don't have any time to deal with our News server.
[...]
> 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.

So, why is it need to that you run a news server at all?
-- 
Shields, CrossLink.

Re: Trimming the active file by group size
#23479
Author: SysAdmin
Date: Fri, 21 Nov 1997 00:00
56 lines
3148 bytes
Michael Shields wrote:
> 
> In article <34696CFA.6B6F@ObviouslyBogus.com>,
> SysAdmin <SysAdmin@ObviouslyBogus.com> wrote:
> > I don't have any time to deal with our News server.
> [...]
> > 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.

> So, why is it need to that you run a news server at all?


Based upon news reader stats, we don't really need one.  But we set one
up from our ISP days and have it already going with a full feed.  Where
else would I go to read alt.sysadmin.recovery??

Actually several of the leading developers get work support via Usenet
and have asked that we maintain a server.  But as I said, about 5 people
connect daily out of perhaps 100.  Not a high volume reader community.

And to update people, I have been running this system now for about a
month with very good results.  The active file hovers around 2700 groups
and spool space is under 30%.  It is quite stable so far.  I was
thinking I might change the decision points for adding/deleting groups. 
But now I think I might see what happens if I increase the default
expire.  

I had input from one chap who suggested that I should not be
aggressively removing groups so much as modulating the expiration of
groups based on reader stats.  When I have some time I will try that.  I
like the idea of adding groups based upon group volume.  It owuld be
nice to have a 'smart' algorithm that could sense a burst of posts at
creation to avoid someone forcing group creation.  It would be nice to
throttle an unread group to a day and allow a group that is read to have
an expire of a couple of weeks.  I think removing an empty group is
important.  

I suspect that the real answer is not down the path I am going but
instead down the authenticated control message path.  I can see many
ways to manipulate group formation and deletion just as easily with
postings as with control messages.  But this has the advantage that it
works and frees my time for higher priority work.  At least right now...

-- 


###########################################
##                                       ##
## Reply to user fg at domain portal.com ##
##                                       ##
###########################################

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads