🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Michael J. Pape Thu, 06 May 1999 00:00
INN Performance tuning...
#37282
Author: Michael J. Pape
Date: Thu, 06 May 1999 00:00
11 lines
976 bytes
My network admin. has informed me that 65% of our network bandwidth is
being consumed by news. I'm running version 2.2 -- what are my options
for controlling this?

Thanks,
Mike



Re: INN Performance tuning...
#37289
Author: bill davidsen
Date: Thu, 06 May 1999 00:00
23 lines
1678 bytes
In article <3731AAA1.FB916E23@union.edu>,
Michael J. Pape <papem@union.edu> wrote:
| 
| My network admin. has informed me that 65% of our network bandwidth is
| being consumed by news. I'm running version 2.2 -- what are my options
| for controlling this?

1 - get more bandwidth
2 - take less news
3 - find someone to give you a compressed batch feed, assuming you're a
    leaf node.
4 - find someone to send you a compressed NNTP stream feed. This save
    less than (3) by a good bit, particularly if the feed site for (3)
    knows a few tricks.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  One common problem is mistyping an email address and creating another
valid, though unintended, recipient. Always check the recipient's
address carefully when sending personal information, such as credit
card numbers, death threats or offers of sexual services.

Re: INN Performance tuning...
#37293
Author: Dave Pascoe
Date: Thu, 06 May 1999 00:00
17 lines
1050 bytes
Michael J. Pape <papem@union.edu> wrote:

MJP> My network admin. has informed me that 65% of our network bandwidth is
MJP> being consumed by news. I'm running version 2.2 -- what are my options
MJP> for controlling this?

MJP> Thanks,
MJP> Mike

1) Cut down your feed by getting fewer groups/hierarchies (usually not
   desirable) 
2) Outsource news (sometimes desirable)
3) Get more bandwidth

-dave

Re: INN Performance tuning...
#37299
Author: Russ Allbery
Date: Thu, 06 May 1999 00:00
23 lines
1515 bytes
Arthur Hagen <art@flying.broomstick.com> writes:

> filter_innd.pl can also be of help filtering unwanted articles.  To
> block crossposted binary spam and multipart binaries, I've changed the
> filter_art function in filter_innd.pl:

By the time you've blocked an article with the Perl filter, it's already
used up your incoming bandwidth.  This saves outgoing bandwidth if you
were going to feed it to someone else, but ideally you want your upstreams
to never feed such articles to you in the first place.

Another good option would be to seek out peers who filter out binaries in
non-binary groups and drop the binary groups (and peers who won't filter).

> Some may think the limits of max 12 ng's for crossposts may be a bit too
> harsh - if so, it's easy enough to increase.

Using an algorithm that factors in followup settings is better.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: INN Performance tuning...
#37301
Author: Arthur Hagen
Date: Thu, 06 May 1999 00:00
93 lines
4397 bytes
In article <3731AAA1.FB916E23@union.edu>, "Michael J. Pape" <papem@union.edu> writes:
> 
> My network admin. has informed me that 65% of our network bandwidth is
> being consumed by news. I'm running version 2.2 -- what are my options
> for controlling this?

Controlling?  Just one that I can see:  Throttle the connection to
your news server at the router(s).  Your OS *may* also have some
bandwidth throttling functions, but don't count on it.  Most don't.
And with throttling, you may lose articles, and probably annoy your
upstream feeds by having a high spool factor.

If you mean reducing bandwidth consumption, there's several ways.
You don't say whether you are feeding, or just receiving feeds, so
here's a bit of each.

The easiest way to decrease bandwidth is probably to get your upstream
feeds to stop feeding you the largest articles.  Decreasing the max
article size to let's say 768k will limit many of the multi-series CD
images and even DVD images.

Then you may want to drop certain newsgroups or hierarchies.
*.mp3*, *.warez* and *.jobs* are prime candidates.  High noise, little
information. Have your upstreams providers stop sending them if you
can.

If you can't get your upstreams provider to block, turn off streaming
feeds.  That will mean slower delivery, but less bandwidth will be
spent on receiving articles that would be refused.

If you feed others yourself, you may want to talk to them about
blocking certain articles or groups from being fed to them. 
Either because they would drop the articles themselves, or because your
distribution policy says you shouldn't distribute this (like child
porn, warez and other things that may be covered by local laws or
company policies).

If feeding across borders, it's also a Good Thing if you add a
/!yourcountrycode to all outgoing feeds that goes to other countries.
Like /!usa if you're a US feed feeding a Canadian site, and /!usa,!na
if you're a US feed feeding a European site.  That takes care of
many local ads that aren't meant for other than locals - *some*
ad spammers are at least nice enough to add a Distribution: header,
although far too few newsmasters bother to filter them out.

filter_innd.pl can also be of help filtering unwanted articles.
To block crossposted binary spam and multipart binaries, I've changed
the filter_art function in filter_innd.pl:

sub filter_art {
  # Warning - bad perl ahead.  Clean up if you like.
  my $rval = '';
  if ($hdr{'Message-ID'} !~ /<cancel\./) {
    my $froups = $hdr{'Newsgroups'};
    my $lines = $hdr{'Lines'};
    my @ng = split(/,/,$froups);
    if ($#ng > 5) {
      if ($froups =~ /binaries\.pictures/) {
        $rval = 'ECP porn spam rejected';
      } elsif ($froups =~ /\.jobs/) {
        $rval = 'ECP job ad rejected';
      } elsif ($lines > 500) {
        $rval = 'ECP binary rejected';
      } elsif ($#ng > 12) {
        $rval = 'ECP rejected';
      }
      goto rejected if $rval;
    }
    if ($lines > 500) {
      if ($hdr{'Subject'} =~
       /\.(mov|.pg|avi|exe|zip) \([0-9]+\/([0-9]+)\)$/ && $2 > 1) {
        $rval = 'MP binary rejected';
      }
    }
  }
rejected:
  # additional logging can be placed here
  $rval;
}

Combined with a max size on articles, that takes care of *quite* a bit
of spam, and removes very little useful content. It sure helps reducing
bandwidth on outgoing feeds as well as local storage space, and with
very little CPU use.
Some may think the limits of max 12 ng's for crossposts may be a bit
too harsh - if so, it's easy enough to increase.

Regards,
-- 
*Art

Re: INN Performance tuning...
#37306
Author: Jan Chrillesen
Date: Thu, 06 May 1999 00:00
21 lines
1609 bytes
Arthur Hagen <art@flying.broomstick.com> wrote:

> The easiest way to decrease bandwidth is probably to get your upstream
> feeds to stop feeding you the largest articles.  Decreasing the max
> article size to let's say 768k will limit many of the multi-series CD
> images and even DVD images.

I think a limit of 768k is way to high for a site that needs to limit
bandwidth usage. A limit on 32k will give you 85% of the articles from a
full feed but only use 5% of the bandwidth.

It least that's what I see from our innreports available at
http://news.inet.tele.dk.

Instead of limiting the article size you could drop all the soundz, warez
and p0rn groups. This cuts the bandwidth to less than 10% of a full feed
(1.5-2 GB pr. day)

/jan 

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