Article View: news.software.readers
Article #250955Re: leafnode: running texpire weekly instead of daily?
From: John F. Morse
Date: Wed, 25 Jul 2012 17:56
Date: Wed, 25 Jul 2012 17:56
349 lines
14324 bytes
14324 bytes
Fritz Wuehler wrote:
> "John F. Morse" <john@example.invalid> wrote:
>
>> I should also point out that I use CNFS for the spool, which is a set
>> size of spool buffers. Old articles are overwritten, saving deletion
>> (removal) time.
>>
>> With CNFS, retention can vary by incoming load, and by server
>> configuration. Junk groups come and go within days or maybe hours, while
>> groups that contain useful information can remain for many months and
>> even years. You get to choose which groups are assigned to which class,
>> how many cycbuffs serve each class, and their sizes.
>>
>
> I read about that and it looks very attractive from a speed standpoint. I am
> thinking I would like more control over retaining certain groups though.
>
>> Reader servers should keep articles for a minimum of 16 days, which
>> would allow someone on a two-week vacation to read, or at least download
>> the news (this includes both weekends).
>>
>
> I use my news server as an archive as well. I will have to figure out how to
> set up INN for this. My retention needs vary widely by group.
>
I've tried to find time to take a look at Leafnode, but there is always
something else coming up that needs my attention. <sigh>
I've been running a Usenet server farm using several (five at this time)
computers, since 2000. From 1982 I ran a simple BBS on a 1976 Apple ][,
then an Apple //e. In 1989 I switched over to a multi-node BBS on a
Macintosh Plus, then a Mac IIsi, followed by a Mac IIci.
The lure of the Internet attracted all of the users, running it into
disuse around 2000, so I fired up a Usenet server to take over from a
commercial Texas NNTP server that had shut down. My new server used
RumorMill software, which could pull news from other NNTP servers.
In 2005 I started up INN under Debian 3.1 "Sarge" and slowly added
additional servers. I shut down the RumorMill server shortly afterward,
but occasionally used it for short periods to pull news from specific
groups on two ISPs, feeding the INN server(s).
Then I established peering accounts with some of the top Usenet servers
around the world, and no longer needed the RumorMill server.
I do use Pullnews (a program that is part of the INN package) to pull
five binary groups from my ISP's NSP, mainly for fills, because most of
my peers do not handle binaries, or those which do limit them in size.
Pullnews runs as a cron job twice every hour, so news articles are never
older than that.
Control is what INN provides.
I have seven groups that never expire. I use the tradspool for them (one
file per article), and have it optioned to keep forever. These are local
groups where local users are interested in archiving them for historical
reasons. The articles date from 2001, but only occupy 507,732 kilobytes
(496 MB). Compare to the 85 GB used by the CNFS cycbuffs on the main
reader server.
All other groups (I host 32,669 total groups) are in CNFS, which keeps
the hard disk from filling up. The CNFS buffers are created at whatever
size is required, and they do not grow.
Buffers can be grouped into metabuffers, which then can hold whichever
newsgroups you desire. This makes retention needs by group(s) easy to
set and forget.
Here is how the /etc/news/cycbuff.conf is set up for the same example
old reader server (you may want to save this message to refer back to as
a guide):
------------------------------------------------------------------------
news@news5:/etc/news$ cat cycbuff.conf
## $Id: cycbuff.conf 7651 2007-08-20 10:28:34Z iulius $
##
## Configuration file for INN CNFS storage method.
##
## This file defines the cyclical buffers that make up the storage pools
## for CNFS (Cyclic News File System). For information about how to
## configure INN to use CNFS, see the storage.conf man page; and for
## information about how to create the CNFS buffers, see the cycbuff.conf
## man page.
##
## The order of lines in this file is not important among the same item.
## But all cycbuff item should be presented before any metacycbuff item.
## Number of articles written before the cycbuff header is
## written back to disk to (25 by default).
cycbuffupdate:25
## Interval (in seconds) between re-reads of the cycbuff (30 by default).
refreshinterval:30
## 1. Cyclic buffers
## Format:
## "cycbuff" (literally) : symbolic buffer name (less than 7
characters) :
## path to buffer file : length of symbolic buffer in kilobytes in
decimal
## (1KB = 1024 bytes)
##
## If you're trying to stay under 2 GB, keep your sizes below 2097152.
cycbuff:001:/var/spool/news/cycbuffs/001:65535
cycbuff:002:/var/spool/news/cycbuffs/002:262143
cycbuff:003:/var/spool/news/cycbuffs/003:524287
cycbuff:004:/var/spool/news/cycbuffs/004:2097151
cycbuff:005:/var/spool/news/cycbuffs/005:2097151
cycbuff:006:/var/spool/news/cycbuffs/006:2097151
cycbuff:007:/var/spool/news/cycbuffs/007:2097151
cycbuff:008:/var/spool/news/cycbuffs/008:2097151
cycbuff:009:/var/spool/news/cycbuffs/009:2097151
cycbuff:010:/var/spool/news/cycbuffs/010:2097151
cycbuff:011:/var/spool/news/cycbuffs/011:2097151
cycbuff:012:/var/spool/news/cycbuffs/012:2097151
cycbuff:013:/var/spool/news/cycbuffs/013:2097151
cycbuff:014:/var/spool/news/cycbuffs/014:2097151
cycbuff:015:/var/spool/news/cycbuffs/015:2097151
cycbuff:016:/var/spool/news/cycbuffs/016:2097151
cycbuff:017:/var/spool/news/cycbuffs/017:2097151
cycbuff:018:/var/spool/news/cycbuffs/018:2097151
cycbuff:019:/var/spool/news/cycbuffs/019:262143
## 2. Meta-cyclic buffers
## Format:
## "metacycbuff" (literally) : symbolic meta-cyclic buffer name (less
than
## 8 characters) : comma separated list of cyclic buffer symbolic names
## [:INTERLEAVE|SEQUENTIAL]
##
## With the default INTERLEAVE mode, articles are stored in each cycbuff
## in a round-robin fashion, one article per cycbuff in the order listed.
## With the SEQUENTIAL mode, each cycbuff is written in turn until that
## cycbuff is full and then moves on to the next one.
##
## Symbolic meta-cyclic buffer names are used in storage.conf in the
## options: field.
metacycbuff:veryfast:001
metacycbuff:fastbins:002
metacycbuff:fasttext:003
metacycbuff:slowbins:004
metacycbuff:slowtext:005,006,007,008,009,010,011,012,013,014,015,016,017,018:SEQUENTIAL
metacycbuff:junk:019
news@news5:/etc/news$
------------------------------------------------------------------------
You create your server however you want. Use whatever names you choose
for the cycbuffs, etc. INN will do whatever you tell it to do in the
various configuration files.
I should also add that INN has never crashed on any of my Debian
GNU/Linux computers (well, neither has Debian for that matter). It would
run for years unattended.
Then your newsgroups are assigned to each class in the
/etc/news/storage.conf file:
------------------------------------------------------------------------
news@optima5:/etc/news$ cat storage.conf
## $Id: storage.conf 7651 2007-08-20 10:28:34Z iulius $
##
## Rules for where INN should store incoming articles.
##
## This file is used to determine which storage method articles are sent
## to be stored and which storage class they are stored as. Each
## method is described as follows:
##
## method <methodname> {
## newsgroups: <wildmat>
## class: <storage class #>
## size: <minsize>[,<maxsize>]
## expires: <mintime>[,<maxtime>]
## options: <options>
## exactmatch: <bool>
## }
##
## See the storage.conf man page for more information.
##
## Only newsgroups, class, and (for CNFS, to specify the metacycbuff)
## options are required; the other keys are optional. If any CNFS
## methods are configured, you will also need to set up cycbuff.conf.
## By default, store everything in tradspool.
#method tradspool {
# newsgroups: *
# class: 0
#}
## Here are some samples for a CNFS configuration. This assumes that you
## have two metacycbuffs configured, one for text newsgroups and one for
## binaries. Cancel messages, which tend to be very high-volume, are
## stored in the binary metacycbuff as well. This assumes storeonxref is
## set to true in inn.conf.
## Pick off the binary newsgroups first.
#method cnfs {
# newsgroups: *.bina*,control.cancel
# class: 1
# options: BINARY
#}
## Put the remaining (text) groups in the other cycbuff.
#method cnfs {
# newsgroups: *
# class: 2
# options: TEXT
#}
method tradspool {
newsgroups:
local.announce,local.computers,local.info,@local.binaries,@local.test
class: 0
}
method cnfs {
newsgroups: control.cancel,*.test,news.lists.filters
class: 1
options: veryfast
}
method cnfs {
newsgroups: *.bina*,!local.binaries
class: 2
options: fastbins
}
method cnfs {
newsgroups:
news.admin.net-abuse.email,news.admin.net-abuse.sightings,*.jobs*,perl.cpan.testers,alt.alt.spamtrap
class: 3
options: fasttext
}
method cnfs {
newsgroups: local.binaries
class: 4
options: slowbins
}
method cnfs {
newsgroups: *,!junk
class: 5
options: slowtext
}
method cnfs {
newsgroups: junk
class: 6
options: junk
}
news@news5:/etc/news$
------------------------------------------------------------------------
The /etc/news/expire.ctl file controls expiry. I use it for keeping the
articles in the tradspool groups from expiring, except I do want the
local.test group to expire in three days. Here is how it looks for this
same example server:
------------------------------------------------------------------------
news@news5:/etc/news$ cat expire.ctl
## $Id: expire.ctl 8575 2009-08-18 13:53:54Z iulius $
##
## Sample configuration file for article expiration.
##
## Format:
## /remember/:<keep>
## <class>:<min>:<default>:<max>
## <wildmat>:<flag>:<min>:<default>:<max>
##
## First line gives history retention; second line specifies expiration
## for classes; third line specifies expiration for group if
groupbaseexpiry
## is true in inn.conf.
## <class> Class specified in storage.conf.
## <wildmat> Wildmat-style patterns for the newsgroups.
## <flag> Status of the newsgroups.
## <keep> Number of days to retain a message-ID in history.
## <min> Minimum number of days to keep the article.
## <default> Default number of days to keep the article.
## <max> Flush the article after this many days.
## <keep>, <min>, <default> and <max> can be floating-point numbers or the
## word "never". Times are based on the arrival time for expire and
expireover
## (unless -p is used; see expire(8) and expireover(8)), and on the posting
## time for history retention.
##
## See the expire.ctl man page for more information.
## When an article is rejected or expires before 10 days, we still remember
## it for 11 days from its original posting time in case we get offered it
## again. See the artcutoff parameter in inn.conf; it should match this
## parameter (/remember/ uses 11 days instead of 10 in order to take into
## account articles whose posting date is one day into the future).
/remember/:11
## Keep for 1-15 days, allow Expires: headers to work. This entry uses
## the syntax appropriate when groupbaseexpiry is true in inn.conf. Times
## are based on the arrival time (unless -p is used).
*:A:14:14:14
local.*:A:never:never:never
local.test:A:3:3:3
## Keep for 1-15 days, allow Expires: headers to work. This is an entry
## based on storage class, used when groupbaseexpiry is false. Times
## are based on the arrival time (unless -p is used).
#0:1:15:never
news@news5:/etc/news$
------------------------------------------------------------------------
Everything you will need can be found here:
http://www.eyrie.org/~eagle/software/inn/docs-2.5
INN 2.5.2 is the current release, and is available as a binary package
by many Linux distros through their package manager. Or you can compile
it as described at the above link.
More help here: http://www.eyrie.org/~eagle/faqs/inn.html
The news.software.nntp newsgroup is where discussion takes place, plus
there is a mailing list that is mostly useful for developers.
If you prefer to compile INN from source, and for additional info, see:
http://www.isc.org/software/inn
--
John
When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<jupc0c$4vs$1@n102.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mailReferences:
<jun0mq$hbb$1@n102.xanadu-bbs.net> <e0030442749aa7d09529ca998d80cab7@msgid.frell.theremailer.net>Show Full Headers
Complete Article Headers
Message-ID: <jupc0c$4vs$1@n102.xanadu-bbs.net> Subject: Re: leafnode: running texpire weekly instead of daily? Date: Wed, 25 Jul 2012 12:56:56 -0500 From: "John F. Morse" <john@example.invalid> References: <jun0mq$hbb$1@n102.xanadu-bbs.net> <e0030442749aa7d09529ca998d80cab7@msgid.frell.theremailer.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Xanadu BBS Lines: 349 Reply-To: dont.bother NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Wed, 25 Jul 2012 17:56:28 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <e0030442749aa7d09529ca998d80cab7@msgid.frell.theremailer.net> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 14026