🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39802

Re: news spool area exported from NFS

#39802
From: Joe Greco
Date: Tue, 14 Sep 1999 00:00
117 lines
5956 bytes
In news.software.nntp article <2DwD3.10701$N77.804364@typ11.nn.bcandid.com>, cmadams@fly.hiwaay.net (Chris Adams) wrote:
:Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
:>In news.software.nntp article
:><gVtD3.10204$N77.783503@typ11.nn.bcandid.com>, cmadams@fly.hiwaay.net
:>(Chris Adams) wrote:
:>:Once upon a time, Joe Greco <jgreco@ns.sol.net> said:
:>:>    If you are not concerned about losing "some" data, you can drop the
:>:>    DAC960SX and one drive, and use my spooldir mod to Diablo to limit
:>:>    the number of articles you'd lose if you lost a drive.  Only really
:>:>    recommended for redundant environments.
:>:
:>:I am setting up a new server to use Diablo.  What is this "spooldir mod"
:>:you mention?  It doesn't seem to be on your patch page.  It sounds
:>:interesting.
:>
:>Nothing recent's on the patch page, it's all in my working sources.  :-/
:
:I thought the patch page looked a little out of date.

So's the INN one.  Most of that is in INN2* by now...  sigh


:>The basic idea is to split up
:>
:>/news/spool/news/D.xxxxxxx
:>
:>into
:>
:>/news/spool/news/N.xx/D.xxxxxxxx
:>
:>where the number of "N.xx" directories is configurable.  This means that
:>instead of setting up a CCD or RAID that spans all your drives, you can
:>set up smaller drives and risk losing less if one dies.  Mount each one
:>on a N.xx directory, obviously.
:
:That's what I thought it sounded like.
:
:>My original reason for doing it is invalid, however :-)  (you can learn
:>so much by actually experimenting...)  I was worried about fsck times on
:>a very large partition.  I reasoned that increasing parallelism would
:>reduce the fsck times.  However, simply reducing the inode count (a valid
:>thing to do with Diablo) accomplishes the same thing and allows you to use
:>a single filesystem, if you want.
:
:So, what is a good bytes per inode for a spool filesystem?  Again, not
:having actually _run_ Diablo yet, I don't have a feel for these kinds of
:things (but I want to set it up and never have to change it of course!).

I've been using very large numbers; 16 cylinder groups and 6144 inodes
per cg (yes that results in a df that looks like

/dev/da1s3h  93656576 83968464  2195600    97%     977   97325     1%   /news/spool/news/N.07

You'll note the immense number of inodes used; these spool servers are fed
by transit servers and therefore tend to aggregate the number of required
inodes a bit lower.  A Diablo box used for transit would need more.  Best
policy is to experiment a bit.  I think I used an inode per meg here.

:>My very large news filesystems fsck in 30 seconds (after a forced crash
:>that is).
:
:That's good.  How big of a spool do you have and how many inodes do you
:have (how many in use)?
:
:How about the overview filesystem?  It sounds like overview creates a
:lot of files.

Yes, but not as many as a traditional INN system.

:>:Any suggestions - is the way I am headed a good idea?  I have setup INN
:>:before and had it running smooth, but I am new to Diablo.  There isn't
:>:near as much info on Diablo as there was on INN, so I'm kind of in the
:>:dark on the best way to work things.
:>
:>Well, let me ask this of you.  If you lost 1/16 of your articles, would
:>you care?
:>
:>If not, you'd be better off setting up something like my spooldir mod,
:>_not_ mirroring the drives, and ending up with 138GB space.
:
:So, for non-binary groups, that would be something like 100 days of
:messages in the spool.  Much bigger history file and more overview
:information.  Can Diablo handle that?

As far as I've seen, yes.  I'm still growing my article spool though.

:>Otherwise, what you're doing is probably OK, but I'd recommend FreeBSD
:>instead.  Diablo was designed on FreeBSD and works great with it.
:
:I thought about that, but I'm not near as familiar with FreeBSD (and I'm
:a Linux fan :-) ).  Also, I didn't find the AMI MegaRAID controller on
:the supported hardware list.

SCSI-to-SCSI?  Or a PC device of some sort?

:Another thing I saw in your message: you said you are using RAID 5.
:Is the performance okay?  I have always steered clear of RAID 5 for
:high I/O applications (especially news) because I'd heard that it
:couldn't keep up.  If RAID 5 can keep up okay, I would have a lot more
:space (because right now I am doing RAID 0+1).

The overall write volume with a Diablo spool is pretty low.  Think of it,
you're just doing low volume (~.5MB/sec for full feed) writes, plus
metadata updates.  Turn off atime updating for additional savings.

:How about doing RAID 5 in the hardware on each of the two RAID
:controllers and then doing RAID 0 (striping) in software?  The reason
:I am doing part in software is because I can't create a RAID group that
:spans controllers (or at least I can't figure out how).

You can do that.  Or use the spooldir patch to set up two separate
spools (probably a more general solution that gives more flexibility
in the event you lose one array).

... JG

Technical Details
Message-ID: <37df074a$0$91169@news.execpc.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
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <gVtD3.10204$N77.783503@typ11.nn.bcandid.com> <37de8171$0$11108@news.execpc.com> <2DwD3.10701$N77.804364@typ11.nn.bcandid.com>

Show Full Headers
Complete Article Headers
Message-ID: <37df074a$0$91169@news.execpc.com>
Subject: Re: news spool area exported from NFS
Date: Tue, 14 Sep 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <7rhmg7$gmh$1@coco.singnet.com.sg> <gVtD3.10204$N77.783503@typ11.nn.bcandid.com> <37de8171$0$11108@news.execpc.com> <2DwD3.10701$N77.804364@typ11.nn.bcandid.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: 525240778
Sender: jgreco@earth.execpc.com
X-Trace: S=T[4Gb?NPQI5[332>a9Y[bfNiaEHUgJWRYcgIRLSUE]98ei4aXj5JW<W6RQ\UfS6PF^oWHZ@J1E]GhaMU<hZ^NWF4FfQ?Mh6U]
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com