Article View: news.software.nntp
Article #36367Re: Config files for CNFS
From: Russ Allbery
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
69 lines
3638 bytes
3638 bytes
Joel Goldberger <Joel@InfoMagic.com> writes:
> I find the docs somewhat confusing regarding the interaction of the CNFS
> storage method and the required and/or optimal configuration of the
> other inn components, in particular expire. Does anyone have some
> advice on how to put this all together ? Sample files would be great,
Well, are you trying to make a transit machine or a reader machine?
If you use CNFS cycbuffs exclusively, the only line in expire.ctl that
matters is the /remember/ line. Everything else is ignored. You need to
define a set of cycbuffs in cycbuff.conf and then organize them into
metacycbuffs; here's an example from my server (which uses raw devices;
this will be slightly different with regular files):
------------------------------
# $Id: cycbuff.conf,v 0.5 1999/03/14 06:44:59 news Exp $
# We have fourteen available partitions to use as cycbuffs, each slightly
# over 1GB in size. (We partitioned each available 2.11GB "disk" into two
# partitions to avoid running into 2GB device limits in Solaris). We're
# using them all as raw devices and using the extra paths created with mknod
# under /var/news/cycbuffs. Note that all cycbuffs must be specified before
# any metacycbuffs.
cycbuff:T10:/var/news/cycbuffs/c1t1d0s0:1103520
cycbuff:T11:/var/news/cycbuffs/c1t1d0s1:1104000
cycbuff:T20:/var/news/cycbuffs/c1t2d0s0:1103520
cycbuff:T21:/var/news/cycbuffs/c1t2d0s1:1104000
cycbuff:T30:/var/news/cycbuffs/c1t3d0s0:1103520
cycbuff:T31:/var/news/cycbuffs/c1t3d0s1:1104000
cycbuff:T40:/var/news/cycbuffs/c1t4d0s0:1103520
cycbuff:T41:/var/news/cycbuffs/c1t4d0s1:1104000
cycbuff:T50:/var/news/cycbuffs/c1t5d0s0:1103520
cycbuff:T51:/var/news/cycbuffs/c1t5d0s1:1104000
cycbuff:T60:/var/news/cycbuffs/c1t6d0s0:1103520
cycbuff:T61:/var/news/cycbuffs/c1t6d0s1:1104000
cycbuff:T80:/var/news/cycbuffs/c1t8d0s0:1103520
cycbuff:T81:/var/news/cycbuffs/c1t8d0s1:1104000
# Now the metacycbuffs, which storage.conf will associate with various
# newsgroups. Some effort is made here to spread binaries out across the
# various "disks", but whatever optimization effects this has are probably
# lost in cache effects.
metacycbuff:GOOD:T11,T21
metacycbuff:REGULAR:T31,T81
metacycbuff:REST:T51,T61
metacycbuff:ALT:T40,T41
metacycbuff:BINARIES:T10,T20,T30,T50,T60,T80
------------------------------
Then in storage.conf, you assign certain classes of articles to
metacycbuffs. I personally organize just by newsgroup; another good way
of organizing is by size. Make sure that you have a catch-all entry to
pick up the stuff that doesn't fit anywhere else.
For readers, you'll also need an overview.ctl. There's a suggestion in
the documentation on a good first shot at that; people here have reported
more success and more speed by using more buckets than just 26. If you're
doing transit, you don't need an overview.ctl at all, nor do you need to
run overchan.
Does that help any?
--
Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylyak3wwvx.fsf@windlord.stanford.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!not-for-mailReferences:
<7eg9as$340$1@Dudley.InfoMagic.com>Show Full Headers
Complete Article Headers
Message-ID: <ylyak3wwvx.fsf@windlord.stanford.edu> Subject: Re: Config files for CNFS Date: Wed, 07 Apr 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <7eg9as$340$1@Dudley.InfoMagic.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: 463910989 Organization: The Eyrie Newsgroups: news.software.nntp