🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Bradley Dunn Wed, 08 May 1996 00:00
Feed-only INN?
#7401
Author: Bradley Dunn
Date: Wed, 08 May 1996 00:00
25 lines
1455 bytes
Greetings!

I was doing some thinking (which is when I'm most dangerous :)) about
scaling our news server. I decided that eventually I would like to
have one server that processes incoming feeds and batches up outgoing
feeds and doesn't accept readers. I know many sites are doing this, so
my question is: How do you handle the spool? Do you just set all
articles to expire in 1 day? What I was thinking of is perhaps
specifying /dev/null as the spool dir or something to that effect in
config.data so that the articles are never written to the news spool.
This would still work, correct? INN would accept all incoming articles
that aren't in the history file, and then build the outgoing feeds
files in the out.going directory. No need for the news spool, right? I
know I am probably missing something, please flame me with the answer.
:)

Thanks!


Bradley Dunn             Harbor Communications
dunn@harborcom.net       http://www.harborcom.net/


Re: Feed-only INN?
#7365
Author: David Miller
Date: Wed, 08 May 1996 00:00
32 lines
1948 bytes
Bradley Dunn (dunn@harborcom.net) wrote:
: Greetings!

: I was doing some thinking (which is when I'm most dangerous :)) about
: scaling our news server. I decided that eventually I would like to
: have one server that processes incoming feeds and batches up outgoing
: feeds and doesn't accept readers. I know many sites are doing this, so
: my question is: How do you handle the spool? Do you just set all
: articles to expire in 1 day? What I was thinking of is perhaps
: specifying /dev/null as the spool dir or something to that effect in
: config.data so that the articles are never written to the news spool.
: This would still work, correct? INN would accept all incoming articles
: that aren't in the history file, and then build the outgoing feeds
: files in the out.going directory. No need for the news spool, right? I
: know I am probably missing something, please flame me with the answer.


OK.  What you're missing is that the out.going entries are one liners
which reference standard spool files.  No spool files, no feeding anyone
else.

Therefore, you need to spool articles for as long as the longest delay
you're will to tolerate in your outgoing feeds.  If you want to fed
qqq.com and backup two day's worth because their admin is slow to deal
with news problems, you must keep two days worth of files.


--
David Miller			Usual disclaimers apply

Re: Feed-only INN?
#7369
Author: Greg Andrews
Date: Wed, 08 May 1996 00:00
77 lines
3908 bytes
dunn@harborcom.net (Bradley Dunn) writes:
>
>I was doing some thinking (which is when I'm most dangerous :)) about
>scaling our news server. I decided that eventually I would like to
>have one server that processes incoming feeds and batches up outgoing
>feeds and doesn't accept readers. I know many sites are doing this, so
>my question is: How do you handle the spool? Do you just set all
>articles to expire in 1 day?
>

I've found that with more than just a handful of outgoing feeds,
an expiration of 4 days is a comfortable value.  The minimum is
2 days.

The reason?  Murphy's Law.  A 1-day expire works fine as long as
all goes well.  If something goes wrong, then it becomes very
claustrophobic.  If some of your outgoing feeds go down for a
weekend, they'll still want to catch up on the news they couldn't
get.  If it's not on your spool, they won't be able to get it,
and they won't be happy about that. (no matter whose fault the
outage was)  If *your* server goes down for 36 hours and your
spool is only large enough to hold a day's worth, you'll have
to dump news to avoid filling up the filesystem.

>
>What I was thinking of is perhaps specifying /dev/null as the spool
>dir or something to that effect in config.data so that the articles
>are never written to the news spool.  This would still work, correct?
>

Not without special modifications to INN. (see below)

>
>INN would accept all incoming articles that aren't in the history file,
>and then build the outgoing feeds files in the out.going directory.
>No need for the news spool, right? I know I am probably missing something,
>please flame me with the answer.
>

No flame here.  I've been thinking about some similar ideas.

The problem with the idea that you've presented is that the feed (batch)
files in the out.going directory don't have the articles in them.
They have references to the articles (the path to the article files),
but not the articles themselves.  As soon as innxmit would start, it
would try to read a nonexistent article, and it would end up feeding
nothing to the site.

I don't think you'll be able to simply link the spool directory to
/dev/null anyway.  I can't put my finger on it, but something tells
me that when innd looks to see if the newsgroup's directory exists
(and tries to create it when it isn't), the link to /dev/null will
cause trouble.


One of the ideas I've been kicking around is to collect the articles
themselves into the equivalent of batch files and transfer them to
the site with a modified innxmit (or, after compressing them, FTP).
I think someone's already doing work in this area (xbatch?).
The major drawback to this method is that for every article that
is sent to multiple feeds, you must store multiple copies.  If you
keep the article in the spool, you only keep one copy.

It's a tradeoff of the number of feeds against the size and performance
of your disks.


  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@netcom.com  :::::::::::::::::::
ObGuindon:  The fad of throwing tofu, Japanese bean curd, at the
            ceilings of restaurants to see how long it will stick
            has really gotten out of hand in some cities.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Re: Feed-only INN?
#7386
Author: Chris Lewis
Date: Wed, 08 May 1996 00:00
53 lines
2969 bytes
In article <gergDr2v7q.7BA@netcom.com>, Greg Andrews <gerg@netcom.com> wrote:
>dunn@harborcom.net (Bradley Dunn) writes:

>>I was doing some thinking (which is when I'm most dangerous :)) about
>>scaling our news server. I decided that eventually I would like to
>>have one server that processes incoming feeds and batches up outgoing
>>feeds and doesn't accept readers. I know many sites are doing this, so
>>my question is: How do you handle the spool? Do you just set all
>>articles to expire in 1 day?

>I've found that with more than just a handful of outgoing feeds,
>an expiration of 4 days is a comfortable value.  The minimum is
>2 days.

It depends on your circumstances.  We have three "reader-less" gateway
servers, plus about 13 "reader-full" ones.  We've designed our systems
so that each server has at least two full redundant feeds - at least
one of which is a "reader-full" server with a longish expiry.  So,
even if one of our gateway reader-less servers goes down for a day or
three, nobody loses anything.

Our gateway servers have a .5-1 day expiration on everything, and
receive about 1.5Gb/day.  With 2Gb spools, and 5 expires/day,
we don't lose anything.

>>INN would accept all incoming articles that aren't in the history file,
>>and then build the outgoing feeds files in the out.going directory.
>>No need for the news spool, right? I know I am probably missing something,
>>please flame me with the answer.

>One of the ideas I've been kicking around is to collect the articles
>themselves into the equivalent of batch files and transfer them to
>the site with a modified innxmit (or, after compressing them, FTP).
>I think someone's already doing work in this area (xbatch?).
>The major drawback to this method is that for every article that
>is sent to multiple feeds, you must store multiple copies.  If you
>keep the article in the spool, you only keep one copy.

>It's a tradeoff of the number of feeds against the size and performance
>of your disks.

Here's a simple possibility:

Write something that links the file into a per-feed directory.
Something like nntplink.  Each file is hard-linked to the same location
in each feed it's supposed to go to.  Each time innxmit sends a file,
it unlinks it's own copy.  When the last feed referencing the file
transfers it, the file disappears.
-- 
Chris Lewis: _Una confibula non sat est_

Re: Feed-only INN?
#7449
Author: Joe Greco
Date: Fri, 10 May 1996 00:00
90 lines
4167 bytes
In news.software.nntp article <Dr3pC2.876@ferret.ocunix.on.ca>, clewis@ferret.ocunix.on.ca (Chris Lewis) wrote:
:It depends on your circumstances.  We have three "reader-less" gateway
:servers, plus about 13 "reader-full" ones.  We've designed our systems
:so that each server has at least two full redundant feeds - at least
:one of which is a "reader-full" server with a longish expiry.  So,
:even if one of our gateway reader-less servers goes down for a day or
:three, nobody loses anything.
:
:Our gateway servers have a .5-1 day expiration on everything, and
:receive about 1.5Gb/day.  With 2Gb spools, and 5 expires/day,
:we don't lose anything.

Hmm, I'm not quite clear on this.

INN's feeding tools are able to look at an "alternate spool" for articles.
What this means is that you can set up a master-slave system with slave(s)
with VEEEEERY long retention time and a master with VEEEERY short retention
time.  Because you are running master-slave, the article numbers are in
sync between the two.  So you NFS mount the client spool on the master  :-)

But it looks like you're just cross feeding enough that it's not a problem,
yes?

:>One of the ideas I've been kicking around is to collect the articles
:>themselves into the equivalent of batch files and transfer them to
:>the site with a modified innxmit (or, after compressing them, FTP).
:>I think someone's already doing work in this area (xbatch?).
:>The major drawback to this method is that for every article that
:>is sent to multiple feeds, you must store multiple copies.  If you
:>keep the article in the spool, you only keep one copy.
:
:>It's a tradeoff of the number of feeds against the size and performance
:>of your disks.
:
:Here's a simple possibility:
:
:Write something that links the file into a per-feed directory.
:Something like nntplink.  Each file is hard-linked to the same location
:in each feed it's supposed to go to.  Each time innxmit sends a file,
:it unlinks it's own copy.  When the last feed referencing the file
:transfers it, the file disappears.

Nooooooooooooo!  :-(

You are limited to the size of a (single) spool disk.  Eeeech.

I was thinking about the following pretty-easy-to-integrate-as-a-channel-
thing-sorta-like-crosspost hack.

Your basic news spool looks sorta like this:

make /news
make /news/.0
cd /news
mkdir .0/alt
ln -s .0/alt

Now take the standard Usenet paradigm of hard links and have some fun.

mkdir /news/out.going
mkdir /news/.0/out.going
foreach i (feed1 feed2...)
mkdir /news/out.going/$i
mkdir /news/.0/out.going/$i
end

Use each one as the "base" for your hard links.  A simplistic system could
generate a whole parallel directory tree for each feed.

*For a feeder only system, the crosspost-like program responsible would
unlink the original spool article after making the hard links*  :-)

Advantages:  "files disappear entirely after being fed to all sites".
Disadvantages: Lots more disk activity to put a single file in spool.
How do you "expire" for hopelessly backlogged feeds?  (Perhaps find/rm).
How do you "expire" the history?  (ok, that's trivial).

But the problem that keeps coming back is that you are incurring a lot more
directory update activity ("of course").

O well.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/342-4847

Re: Feed-only INN?
#7452
Author: Anthony D'Atri
Date: Fri, 10 May 1996 00:00
10 lines
825 bytes
>claustrophobic.  If some of your outgoing feeds go down for a
>weekend, they'll still want to catch up on the news they couldn't
>get.

Is it likely, though, that they could catch up that many articles anyway,
though?


Re: Feed-only INN?
#7455
Author: Mark Turner
Date: Fri, 10 May 1996 00:00
29 lines
1783 bytes
Appologies for slightly side-tracking away from feed only towards reader
supporting, but....

In article <4mvfpt$g5k@solaria.sol.net>,
Joe Greco <jgreco@solaria.sol.net> wrote:
> 
> INN's feeding tools are able to look at an "alternate spool" for articles.
> What this means is that you can set up a master-slave system with slave(s)
> with VEEEEERY long retention time and a master with VEEEERY short retention
> time.  Because you are running master-slave, the article numbers are in
> sync between the two.  So you NFS mount the client spool on the master  :-)

Hmmmm.... if only nnrpd could do the same trick.  I looked at adding
such functionality a while ago but ran out of time and had doubts about
the amount of NFS traffic needed.  Has anyone else experimented in this
area?

Combine the "two spools with one NFS-mounted" trick with "make nnrpd
look at an NFS-mounted active file" and you might have a scalable reader
supporting machine.  I suspect the NFS traffic generated by the very
frequent reading of the active file might make this idea a non-starter,
and of course you still have your single point of failure.

Cheers,

Mark.

Re: Feed-only INN?
#7499
Author: Chris Lewis
Date: Sat, 11 May 1996 00:00
88 lines
4337 bytes
In article <4mvfpt$g5k@solaria.sol.net>,
Joe Greco <jgreco@solaria.sol.net> wrote:
>In news.software.nntp article <Dr3pC2.876@ferret.ocunix.on.ca>, clewis@ferret.ocunix.on.ca (Chris Lewis) wrote:
>:It depends on your circumstances.  We have three "reader-less" gateway
>:servers, plus about 13 "reader-full" ones.  We've designed our systems
>:so that each server has at least two full redundant feeds - at least
>:one of which is a "reader-full" server with a longish expiry.  So,
>:even if one of our gateway reader-less servers goes down for a day or
>:three, nobody loses anything.

>Hmm, I'm not quite clear on this.

>INN's feeding tools are able to look at an "alternate spool" for articles.
>What this means is that you can set up a master-slave system with slave(s)
>with VEEEEERY long retention time and a master with VEEEERY short retention
>time.  Because you are running master-slave, the article numbers are in
>sync between the two.

>So you NFS mount the client spool on the master  :-)

Nooooooooooooo!  :-(  Not NFS!  Eeech :-)

>But it looks like you're just cross feeding enough that it's not a problem,
>yes?

We chose not to use master/slave in order to retain redundancy.

In our particular environment (one of the largest internal IP networks
on the planet, spread across the planet), with mixed NIS/DNS/hosts and
all sorts of stuff, relying on NFS for this sort of service supplied
globally doesn't work very well.  And, dealing with network segment
outages means that the master/slave stuff would be in recovery mode
to much.

Further, few of these machines are physically (or logically) located
particularly close to each other, so NFS is too bloody slow.

>:>One of the ideas I've been kicking around is to collect the articles
>:>themselves into the equivalent of batch files and transfer them to
>:>the site with a modified innxmit (or, after compressing them, FTP).
>:>I think someone's already doing work in this area (xbatch?).
>:>The major drawback to this method is that for every article that
>:>is sent to multiple feeds, you must store multiple copies.  If you
>:>keep the article in the spool, you only keep one copy.
>:
>:>It's a tradeoff of the number of feeds against the size and performance
>:>of your disks.
>:
>:Here's a simple possibility:
>:
>:Write something that links the file into a per-feed directory.
>:Something like nntplink.  Each file is hard-linked to the same location
>:in each feed it's supposed to go to.  Each time innxmit sends a file,
>:it unlinks it's own copy.  When the last feed referencing the file
>:transfers it, the file disappears.

>Nooooooooooooo!  :-(

>You are limited to the size of a (single) spool disk.  Eeeech.

This is a trivial thing to solve.  Once the current spool gets close
to the max, you do all the links in the next spool.  So all links
are on the same drive.

>I was thinking about the following pretty-easy-to-integrate-as-a-channel-
>thing-sorta-like-crosspost hack.

Which is somewhat like what I was suggesting.

>Advantages:  "files disappear entirely after being fed to all sites".
>Disadvantages: Lots more disk activity to put a single file in spool.
>How do you "expire" for hopelessly backlogged feeds?  (Perhaps find/rm).

Yes.  As well as "if link == 1 and time - mtime > threshold"

>How do you "expire" the history?  (ok, that's trivial).

What history?  You use the messageids as filenames....

>But the problem that keeps coming back is that you are incurring a lot more
>directory update activity ("of course").

Not if you're smart and use multiple directories.
-- 
Chris Lewis: _Una confibula non sat est_

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