🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
26 messages
26 total messages Started by Vladimir Gabrielescu Tue, 11 Mar 1997 00:00
replic slaves and posting question
#15765
Author: Vladimir Gabrielescu
Date: Tue, 11 Mar 1997 00:00
28 lines
1479 bytes
Hi all.

Here is a question. Assuming I have a master news server and
a slave fed in xreplic mode. What happens if someones posts a
message to the slave and then the slave sends the message to the
master? Will the master feed the message back? Will I have to 
copies of the message on the slave? Will they be considered two 
different messages when someone reads news on the both machines 
with the same .newsrc?

I know thats more then one question. I'm trying to set up a system
in which I can have multiple identical servers and I wonder what 
happens when you post to a secondary. I there a way to make the 
sencondary servers post to the master automaticaly?

Any help greatly appreciated.

Vlad


-- 
Vladimir Gabrielescu       NBCS System Programmer        1-908-445-4785
vgabriel@toolbox.rutgers.edu         http://nbcs.rutgers.edu/~vgabriel/
  Someone should have labeled the future 'some assembly required'  


Re: replic slaves and posting question
#15718
Author: Matt Dillon
Date: Tue, 11 Mar 1997 00:00
68 lines
3407 bytes
:In article <5g4aha$4f2@lochaber.rutgers.edu>,
:Vladimir Gabrielescu <vgabriel@nbcs.rutgers.edu> wrote:
:>Hi all.
:>
:>Here is a question. Assuming I have a master news server and
:>a slave fed in xreplic mode. What happens if someones posts a
:>message to the slave and then the slave sends the message to the
:>master? Will the master feed the message back? Will I have to 
:>copies of the message on the slave? Will they be considered two 
:>different messages when someone reads news on the both machines 
:>with the same .newsrc?
:>
:>I know thats more then one question. I'm trying to set up a system
:>in which I can have multiple identical servers and I wonder what 
:>happens when you post to a secondary. I there a way to make the 
:>sencondary servers post to the master automaticaly?
:>
:>Any help greatly appreciated.
:>
:>Vlad
:>
:>
:>-- 
:>Vladimir Gabrielescu       NBCS System Programmer        1-908-445-4785
:>vgabriel@toolbox.rutgers.edu         http://nbcs.rutgers.edu/~vgabriel/
:>  Someone should have labeled the future 'some assembly required'  

    Normally you set the slave up to post the article directly to the
    master rather then to itself.  That is, the 'server' config line
    in the inn.conf file on the salve would point to the master, NOT 
    to the slave.  The slave innd only gets the article when the
    master sends it back.

    In general, I would strongly suggest that people NOT use 
    innd configured in xreplic/slave mode.    It's very easy for
    innd to get confused, and the xreplic protocol is not a streaming
    protocol so it will have a tough time scaling.

    There are several ways to approach the newsreader-machine problem:

    (a) you NFS-mount the main news machine's spool onto each
	'slave' and not bother with a feed at all.

    (b) your newsfeeds machine feeds each newsreader machine separately,
	without keeping article numbers in sync.. this is the most
	scaleable approach, but it means that yor users must choose
	a particular newsreader machine and stick to it.

	Also generally have the newsreader machines cross-feed each
	other and take posts directly, so posts made by your users
	propogate to all of your newsreader machines quickly even
	if your newsfeeds machine gets behind.

    I would suggest (b).  I would suggest (a) only if you were not taking
    a full feed... if you are taking a full feed, there's a good chance
    you may overload the disks and then your feeds will not be able to
    stay caught up.  

    (b) also allows you to use one of the newer newsfeed-only systems
    on the newsfeeds machine rather then innd. Diablo 
    ( http://www.backplane.com/diablo/ ) and NNTPRelay
    ( http://nntprelay.maxwell.syr.edu/ ) both come to mind.

						-Matt


Re: replic slaves and posting question
#15776
Author: Steve Jones
Date: Wed, 12 Mar 1997 00:00
67 lines
3651 bytes
In article <5g590b$cel@flea.best.net>,
Matt Dillon <dillon@flea.best.net> wrote:
>
>    In general, I would strongly suggest that people NOT use 
>    innd configured in xreplic/slave mode.    It's very easy for
>    innd to get confused, and the xreplic protocol is not a streaming
>    protocol so it will have a tough time scaling.

I disagree.  Innd doesn't get confused in Slave mode, and the speed of
transfer of articles to the slave is pretty much a hardware issue 
which is easily solved if the machines are in the same room.

There is another reason to use Slaves, and that is for redundancy for 
recovery from hardware failures.  This last week, I had a news server 
computer die, but because I had other Slave systems which spooled the 
articles, I had interruption in service for some groups only until the
problem was reported and the redundant server was promptly configured 
into service.  

>    There are several ways to approach the newsreader-machine problem:
>
>    (a) you NFS-mount the main news machine's spool onto each
>	'slave' and not bother with a feed at all.
>
>    (b) your newsfeeds machine feeds each newsreader machine separately,
>	without keeping article numbers in sync.. this is the most
>	scaleable approach, but it means that yor users must choose
>	a particular newsreader machine and stick to it.
>
>	Also generally have the newsreader machines cross-feed each
>	other and take posts directly, so posts made by your users
>	propogate to all of your newsreader machines quickly even
>	if your newsfeeds machine gets behind.

Also when the Master is throttled, the slaves cannot post. 
(At least that is the case with INN 1.4, has anyone a solution
for that?)

>    I would suggest (b).  I would suggest (a) only if you were not taking
>    a full feed... if you are taking a full feed, there's a good chance
>    you may overload the disks and then your feeds will not be able to
>    stay caught up.  
>
>    (b) also allows you to use one of the newer newsfeed-only systems
>    on the newsfeeds machine rather then innd. Diablo 
>    ( http://www.backplane.com/diablo/ ) and NNTPRelay
>    ( http://nntprelay.maxwell.syr.edu/ ) both come to mind.

There are two parts to the scaling problem.  
(1) Increase in newsreading (clients) activity.
(2) Increase in overhead to store and distribute articles.

Solution (a) I've not tried, so I won't comment on, but solution (b) 
doesn't address the second (2) part of the problem.  As the overhead 
for transfering and storing the articles increases, you have a smaller
portion of resources available for clients.  A third solution I use 
which addresses both parts is to divide the news amongst multiple 
(this is where it scales) Slave servers, and use DNNTP (from CMU)
to provide NNTP access to the messages.  
-- 
--
  Steven Jones
  Computing & Communications 354843,  University of Washington
  E-mail:  noyd@u.washington.edu    Phone:  (206) 543-5852

Re: replic slaves and posting question
#15778
Author: Matt Dillon
Date: Wed, 12 Mar 1997 00:00
147 lines
8714 bytes
:In article <5g7gn9$4caa@newssvr05-int.news.prodigy.com>,
:bill davidsen <davidsen@tmr.com> wrote:
:>In article <5g590b$cel@flea.best.net>,
:>Matt Dillon <dillon@flea.best.net> wrote:
:>
:>|     In general, I would strongly suggest that people NOT use 
:>|     innd configured in xreplic/slave mode.    It's very easy for
:..
:>|     (b) your newsfeeds machine feeds each newsreader machine separately,
:>| 	without keeping article numbers in sync.. this is the most
:>| 	scaleable approach, but it means that yor users must choose
:>| 	a particular newsreader machine and stick to it.
:>
:>It's not scalable at all, each machine and it's readers are a unique
:>entry and since nobody has totally fail-proof hardware, when it goes
:>down the readers either see a change of server or no server. And for
:>a large ISP the multiple cheap redundant machines are much cheaper
:>than few fault tolerant machines. Sort of like RAID.

    I think we are using different definitions of the word 'scaleable'.
    Dedicating users to specific newsreader machine is not an issue of
    scaleability.  The basic machine hardware that you have to purchase
    and the ability of current software to scale up is what I am talking
    about here, and feeding independant newsreader machines is VERY scaleable.

    While it is certainly nice to be able to keep article numbers in
    sync, I personally do not see how it can be done without introducing
    weak links that tend to effect your ENTIRE user base when something
    goes wrong.  Personally, I think it's better to annoy a small portion
    of your user base when something goes wrong rather then the entire user
    base.  

    I would LOVE to keep articles in sync, but innd is not the way to 
    do it.

:>
:>Keeping slaves caught up is indeed a problem. But it's not that
:>impossible at current news volumes, as long as the hardware is
:>configured to handle the load. To me this means RAID, lots of
:>spindles to spread the head motion.
:>--
:>	-bill davidsen (davidsen@tmr.com)
:>"As a software development model, Anarchy does not scale well."
:>		-Dave Welch

    Keeping slaves caught up is already a problem for many people
    who are finding they must purchase more expensive hardware to be able
    to continue to use innd.  If the poor people *we* feed
    are any indication, innd implementations started screwing up
    when we passed the 250,000 articles/day (4.5+ GBytes/day) mark.
    slave feeds probably started failing earlier due to the badly
    designed protocol.  We are now at the 300,000 articles/day mark
    with over 5 GBytes/day in volume for a full feed.  Peers which were
    doing great 6 months ago are now seriously failing, and that's WITH
    streaming feeds. 

    The correct solution is an article-synchronized caching nntp proxy.
    A number of people have written beasts with this as a goal, but
    I don't think anyone has gotten it exactly right yet.

    Backbone and very large sites do not have a problem spending money.
    Smaller sites do.  Do you want to know how bad it is?  I'll show you
    how bad it is... just *count* the number of feeds that are maxed out
    in their backlog.  The ones that aren't are generally either (a) using
    real expensive hardware, or (b) not using INND at all.

					-Matt

news1:/news> doutq
aimnet2      650-651   (  1/ 25 files   4% full)        00650 
archive      495-520   ( 25/ 25 files 100% full)        00495 00496 00497 
athome       481-522   ( 41/ 50 files  82% full)        00481 00482 
backplane    881-882   (  1/ 10 files  10% full)
batnet       584-586   (  2/100 files   2% full)        00584 00585 
bdt          500-525   ( 25/ 25 files 100% full)
biz          498-523   ( 25/ 25 files 100% full)        00498 00499 00500 
bofh         442-442   (  0/500 files   0% full)
brainstorm   502-522   ( 20/125 files  16% full)        00504 00505 
c2           496-521   ( 25/ 25 files 100% full)        00496 00497 00498 
california   488-520   ( 32/125 files  25% full)        00488 00489 
captech      901-902   (  1/ 50 files   2% full)
catch22      442-518   ( 76/100 files  76% full)        00442 00443 
community    393-518   (125/125 files 100% full)        00393 00394 
cygnus       494-519   ( 25/ 25 files 100% full)        00494 00495 00496 
demos        796-799   (  3/125 files   2% full)        00796 00797 
dnai         494-519   ( 25/ 25 files 100% full)        00494 00495 
dogwood      898-899   (  1/100 files   1% full)
exodus       505-522   ( 17/100 files  17% full)        00506 00507 
genesyslab   818-820   (  2/100 files   2% full)        00818 
greatbasin   491-522   ( 31/125 files  24% full)        00491 00492 
hooked       496-521   ( 25/ 25 files 100% full)        00496 00497 00498 
hp           593-595   (  2/125 files   1% full)        00594 
icinet       496-521   ( 25/ 25 files 100% full)        00496 00497 
ico          395-520   (125/125 files 100% full)        00395 00396 00397 
ictv         463-519   ( 56/125 files  44% full)        00463 00464 
impulse      495-519   ( 24/125 files  19% full)        00495 
infopiz      769-770   (  1/ 75 files   1% full)
internetmci   494-519   ( 25/ 25 files 100% full)       00494 00495 
jsamtb       193-193   (  0/ 50 files   0% full)
justintime   468-518   ( 50/ 50 files 100% full)
lanminds     494-519   ( 25/ 25 files 100% full)        00494 00495 
legal        225-285   ( 60/125 files  48% full)
lever        420-520   (100/100 files 100% full)        00420 00421 
market       396-521   (125/125 files 100% full)        00396 00397 00398 
maxwell      365-366   (  1/125 files   0% full)
meer          15-15    (  0/ 25 files   0% full)
nacamar      702-703   (  1/125 files   0% full)
navio        419-522   (103/125 files  82% full)        00419 00420 
nbn          397-522   (125/125 files 100% full)        00397 00398 00399 
netmagic     396-521   (125/125 files 100% full)
nntp1        516-521   (  5/500 files   1% full)        00516 00517 00518 00519 
nntp2        347-381   ( 34/500 files   6% full)        00347 00349 00350 00351 
phc          396-521   (125/125 files 100% full)        00396 00397 00398 
pixi         396-521   (125/125 files 100% full)        00396 00398 
pn           396-521   (125/125 files 100% full)        00396 00397 00398 
premier      418-518   (100/100 files 100% full)        00418 00419 
sdsu         490-519   ( 29/125 files  23% full)        00490 00491 
sfo          394-519   (125/125 files 100% full)        00394 00395 
sgigate      821-824   (  3/125 files   2% full)
sierra       395-520   (125/125 files 100% full)        00395 00396 00397 
sirius       409-520   (111/125 files  88% full)        00409 00410 
slip         416-520   (104/125 files  83% full)        00417 00418 
sprintlink   527-528   (  1/125 files   0% full)        00527 
supermac     495-520   ( 25/ 25 files 100% full)
supranet     395-520   (125/125 files 100% full)        00395 00397 
surf         488-520   ( 32/100 files  32% full)        00488 00489 
tdl          505-520   ( 15/125 files  12% full)        00505 00506 
tetherless   401-519   (118/125 files  94% full)
texas        497-541   ( 44/125 files  35% full)        00497 00498 
thenet       542-551   (  9/ 25 files  36% full)        00542 00543 
this         841-844   (  3/ 75 files   4% full)
tlg          494-519   ( 25/ 25 files 100% full)        00495 00496 00497 
transmeta    494-519   ( 25/ 25 files 100% full)        00494 00495 
umich        900-901   (  1/125 files   0% full)
value        494-519   ( 25/ 25 files 100% full)        00494 00495 00496 
via          495-519   ( 24/ 25 files  96% full)        00495 00497 
webmaster    900-901   (  1/ 50 files   2% full)
worldpassage 559-560   (  1/ 25 files   4% full)        00559 
zocalo       494-519   ( 25/ 25 files 100% full)
zoom         494-519   ( 25/ 25 files 100% full)        00494 00495 00496 


						-Matt


Re: replic slaves and posting question
#15787
Author: Matt Dillon
Date: Wed, 12 Mar 1997 00:00
70 lines
4441 bytes
:In article <Pine.LNX.3.93.970313073953.120Z-100000@radostne-vanoce.radio.cz>,
:Cracker Buster  <ag786@yfn.ysu.edu> wrote:
:>On 12 Mar 1997, Matt Dillon wrote:
:>
:>>     [...] Personally, I think it's better to annoy a small portion
:>>     of your user base when something goes wrong rather then the entire user
:...
:>with no strain on the machines involved, a single SCSI disk handling both
:>spool and newslib, and something like 30 outgoing feeds of various
:>capacity (now bandwidth is starting to limit me rather than INN).  Okay,
:>so bandwidth keeps some of my peers from getting news batches to me until
:>the weekend, but typically I see some 320 000 articles daily.
:>
:>    Of course, I'd be hard pressed to get anywhere near this performance
:>from a single IDE drive with the conventional INN spool, but my point is
:>that a few code changes have resulted in a throwaway machine[1] that flies
:>as a transfer machine, should even support readers (though I have not
:>bothered with this and it is not so easy to tune as a conventional spool),
:>and is far outperforming the expensive hardware here needed to barely keep
:>up with half of a full feed, and still relies on INN. 
:>
:>
:>Barry Bouwsma, bandwidth, dammit, more BANDWIDTH
:>Radio Praha newsbastard from hell
:>
:>[1] If I gotta buy the hardware from my own pocket, you *know* it's not
:>going to be top-o'-the-line, for not only am I a greedy bastard, but I am
:>a CHEAP greedy bastard.

    Hmm.. well, I'm skeptical.  I know a number of people who have gotten
    excellent results in innd, but they have generally gotten the
    peformance by reducing the history retention time... something I
    no major news node can afford to do.  If you've managed to make INND
    run efficiently in the face of a few fully transited feeds without
    messing around with the history retention time, then I am impressed.

    With full retention, the INN history file grows to over 300 MBytes.
    A backbone news node has no choice but to deal with that.  No matter
    how fast the disk, I don't see how a 64MB machine could possibly
    have the performance to handle more then a dozen full feeds or so,
    if even that.  

    Assuming the history is not a problem (and it isn't if you have 
    sufficient ram for your disk cache), INND's major bottleneck is 
    the file create and link()ing.  This tends to be independant of
    the number of feeds one has, settling in at around 4 or 5 file 
    creates per second and perhaps 8-to-10 link()s.  The file create
    and linking performance is directly related to the size of the spool...
    the larger the spool, the lower the nami() cache hit ratio.  Even
    a standard filesystem would not have a problem with innd if it only
    maintained, say, a 2G spool.  The real test is when you use a
    reasonably-sized spool for a news transit box... 8G or so is good.
    With an 8G spool, the filesystem will contain on the order of 
    2 million files.  One of the big problems with INN is it's almost
    random file pathing on file create... this is where a log-based
    filesystem with hash-table filename lookups really starts to break
    through performance wise, but even log fs's will have problems
    if your lookups are random enough.

    And, anyway... if something like Diablo kicks ass on a standard
    machine configuration, just think what it would do on a tuned custom
    job.  It would be romp city.  One must also think about stability...
    innd is not a very stable program, things can hang it up big time.
    Control messages, for instance.  It's biggest problem is it's complexity.

						-Matt


Re: replic slaves and posting question
#15799
Author: Matt Dillon
Date: Wed, 12 Mar 1997 00:00
42 lines
2486 bytes
:In article <5g6u02$hph@nntp1.u.washington.edu>,
:Steve Jones <noyd@u.washington.edu> wrote:
:>In article <5g590b$cel@flea.best.net>,
:>Matt Dillon <dillon@flea.best.net> wrote:
:>>
:>>    In general, I would strongly suggest that people NOT use 
:...
:>
:>I disagree.  Innd doesn't get confused in Slave mode, and the speed of
:>transfer of articles to the slave is pretty much a hardware issue 
:>which is easily solved if the machines are in the same room.
:>
:>There is another reason to use Slaves, and that is for redundancy for 
:>recovery from hardware failures.  This last week, I had a news server 
:>computer die, but because I had other Slave systems which spooled the 
:>articles, I had interruption in service for some groups only until the
:>problem was reported and the redundant server was promptly configured 
:>into service.  

    This is so.  I am holding out for a distributed nntp solution
    myself.  You can always throw hardware at a problem, but we are
    starting to talk serious money here and many people are opting for
    cheaper solutions.  Also, if you use a slave feed, then your master
    MUST be running innd.  innd does not make a good news transit machine...
    both Diablo news ( http://www.backplane.com/ ) and NNTPRelay
    ( http://nntprelay.maxwell.syr.edu/ ) do a MUCH better job on newsfeeds.
    We are talking the difference between a $6K pentium pro 200 with 128MB
    ram, and a $20k or $30k minicomputer with half a gig of ram, multiple
    cpus, and expensive software.  Adding a third machine in there just
    to be able to slave feed N other machines isn't all that cost effective.

					-Matt

:>--
:>  Steven Jones
:>  Computing & Communications 354843,  University of Washington
:>  E-mail:  noyd@u.washington.edu    Phone:  (206) 543-5852



Re: replic slaves and posting question
#15815
Author: Jeff Garzik
Date: Wed, 12 Mar 1997 00:00
29 lines
1457 bytes
Steve Jones wrote:
> Matt Dillon <dillon@flea.best.net> wrote:
> >    (b) your newsfeeds machine feeds each newsreader machine separately,
> >       without keeping article numbers in sync.. this is the most
> >       scaleable approach, but it means that yor users must choose
> >       a particular newsreader machine and stick to it.

> There are two parts to the scaling problem.
> (1) Increase in newsreading (clients) activity.
> (2) Increase in overhead to store and distribute articles.



There is also another solution -- NNTPCache.

Set up a master server with a large spool, and NNTPCache on the other
reader boxes.

	Jeff



-- 
Galbraith's Law of Human Nature:
	Faced with the choice between changing one's mind and proving that
	there is no need to do so, almost everybody gets busy on the proof.

Re: replic slaves and posting question
#15817
Author: Sven Paulus
Date: Wed, 12 Mar 1997 00:00
35 lines
1853 bytes
Vladimir Gabrielescu <vgabriel@nbcs.rutgers.edu> wrote:
 VG> Here is a question. Assuming I have a master news server and
 VG> a slave fed in xreplic mode. What happens if someones posts a
 VG> message to the slave and then the slave sends the message to the
 VG> master?

The slave's nnrpd sends the article to INN running on the master. The article
is _not_ submitted to the slave's INN. The slave's newfeeds file usually
only has one entry (overchan), it's useless to setup a feed to the master,
since all articles the slave get come from the master, so no article would
be send back.

 VG> Will the master feed the message back? 

Of course.

 VG> Will I have to  copies of the message on the slave?

No, the nnrpds contact directly the master (look at the man-page for the -S
option).

 VG> I there a way to make the  sencondary servers post to the master
 VG> automaticaly?

This happens automatically if you start inndstart with -S <master>.

Sven
-- 
--Sven-Paulus----------28-48-32--3-----ub6v@rz.uni-karlsruhe.de------
--Karlstr.-55----------30--2-50-29-----sven@oops.sub.de--------------
--D-76133-Karlsruhe----44-49-10--8-----T#-49-721-9375094-------irc---
--Fido-2:2476/530-------9-12-19-71-----F#-49-721-9375095-----svennie-

Re: replic slaves and posting question
#15829
Author: Matthew Stein
Date: Thu, 13 Mar 1997 00:00
22 lines
1433 bytes
Steve Jones <noyd@u.washington.edu> wrote in article
<5g6u02$hph@nntp1.u.washington.edu>...

> There is another reason to use Slaves, and that is for redundancy for 
> recovery from hardware failures.  This last week, I had a news server 
> computer die, but because I had other Slave systems which spooled the 

I can't agree more.  If you lose a Slave, another can pick-up the load
without any interruption to the client.  Granted, it'll be slower, but
it'll still go.

> Also when the Master is throttled, the slaves cannot post. 
> (At least that is the case with INN 1.4, has anyone a solution
> for that?)

Slave mode INND doesn't require slave mode nnrpd, does it?  If you allow
posting on your slaves, and you spool that out to the other slaves and
master, there should be no problem.


Re: replic slaves and posting question
#15831
Author: Mark Turner
Date: Thu, 13 Mar 1997 00:00
16 lines
1099 bytes
Steve Jones <noyd@u.washington.edu> wrote:
> 
> Also when the Master is throttled, the slaves cannot post. 
> (At least that is the case with INN 1.4, has anyone a solution
> for that?)

Dedicate a server (doesn't need to be very beefy) to accepting postings
from your own customers.  Use a shell script wrapper around nnrpd on
each slave using -S to direct postings towards your "postings" server.

Cheers,

Mark.

Re: replic slaves and posting question
#15853
Author: bill davidsen
Date: Thu, 13 Mar 1997 00:00
60 lines
3377 bytes
In article <5g590b$cel@flea.best.net>,
Matt Dillon <dillon@flea.best.net> wrote:

|     In general, I would strongly suggest that people NOT use 
|     innd configured in xreplic/slave mode.    It's very easy for
|     innd to get confused, and the xreplic protocol is not a streaming
|     protocol so it will have a tough time scaling.

Do you have another way to have multiple servers have the same
article numbers, or is this just "wouldn't it be nice?" This is a
real requirement for ISPs with large user bases. Without replicated
servers you need to have all users on a single server (not the same
server, but each user has a single server), and if it fails or goes
down for upgrade those readers are going to notice.

|     There are several ways to approach the newsreader-machine problem:
| 
|     (a) you NFS-mount the main news machine's spool onto each
| 	'slave' and not bother with a feed at all.

This works fine for mom-n-pop operations, but not for a large ISP
with multiple POPs. NFS doesn't work well over WAN. NFS works well
on machines in the same room, like the servers at a single local or
regional POP.

|     (b) your newsfeeds machine feeds each newsreader machine separately,
| 	without keeping article numbers in sync.. this is the most
| 	scaleable approach, but it means that yor users must choose
| 	a particular newsreader machine and stick to it.

It's not scalable at all, each machine and it's readers are a unique
entry and since nobody has totally fail-proof hardware, when it goes
down the readers either see a change of server or no server. And for
a large ISP the multiple cheap redundant machines are much cheaper
than few fault tolerant machines. Sort of like RAID.

| 	Also generally have the newsreader machines cross-feed each
| 	other and take posts directly, so posts made by your users
| 	propogate to all of your newsreader machines quickly even
| 	if your newsfeeds machine gets behind.

The net as a whole operates as a flood feed, but it's not clear this
is practicle if you want to appear seamless to your readers.

|     I would suggest (b).  I would suggest (a) only if you were not taking
|     a full feed... if you are taking a full feed, there's a good chance
|     you may overload the disks and then your feeds will not be able to
|     stay caught up.  

Keeping slaves caught up is indeed a problem. But it's not that
impossible at current news volumes, as long as the hardware is
configured to handle the load. To me this means RAID, lots of
spindles to spread the head motion.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch

Re: replic slaves and posting question
#15856
Author: Sven Paulus
Date: Thu, 13 Mar 1997 00:00
26 lines
1733 bytes
Matthew Stein <matt@ican.net> wrote:
 MS> Slave mode INND doesn't require slave mode nnrpd, does it?

It does.

 MS>  If you allow
 MS> posting on your slaves, and you spool that out to the other slaves and
 MS> master, there should be no problem.

Only the master assigns article numbers. The master doesn't know about
postings made on slaves if their nnrpds are not running in slave-mode
therefore the articles would immediatly overwritten (or the slave's innd
complains about already having an article of the filename, don't know at the
moment). If you have bad luck, the articles are overwritten on the slave
before they are transmitted to the master via innxmit or something, so it's
completely lost. I don't think, your customers will like that.

Sven
-- 
--Sven-Paulus----------28-48-32--3-----ub6v@rz.uni-karlsruhe.de------
--Karlstr.-55----------30--2-50-29-----sven@oops.sub.de--------------
--D-76133-Karlsruhe----44-49-10--8-----T#-49-721-9375094-------irc---
--Fido-2:2476/530-------9-12-19-71-----F#-49-721-9375095-----svennie-

Re: replic slaves and posting question
#15864
Author: Cracker Buster
Date: Thu, 13 Mar 1997 00:00
54 lines
3507 bytes
On 12 Mar 1997, Matt Dillon wrote:

>     [...] Personally, I think it's better to annoy a small portion
>     of your user base when something goes wrong rather then the entire user
>     base.

    Hmmm.  Methinks you gots an attitude problem here...  Hang around
sonny and we'll learn you goo-o-o-o-o-o-od...  Heh heh heh.


>     Keeping slaves caught up is already a problem for many people
>     who are finding they must purchase more expensive hardware to be able
>     to continue to use innd.  If the poor people *we* feed
>     are any indication, innd implementations started screwing up
>     when we passed the 250,000 articles/day (4.5+ GBytes/day) mark.

    Not to put down your work or that of the fine folks at Maxwell, I
wouldn't call INN dead in the water by a long shot.  I've been running an
experimental filesystem under innd for some time now, and I have no
problem keeping up and supplying a full feed of more than 300 000 articles
daily -- in fact, when I was running this on a cheap Pentium with only 64M
RAM and two IDE drives (one dedicated to the spool), I still was able to
make it into the Freenix top 50 in spite of my backwater location.  Of
course, the PC would crash frequently because the hardware was a bit *too*
cheap, and I had done nothing to try to tweak the setup for performance
(and still have not save for moving to slightly more stable SGI Indy
workstations); the outgoing feed technology is based on old innfeed and I
have not attempted to measure latency, but I am seeing throughput like
     * Mar 9 12:49:14 -- Mar 10 12:48:50 : 405419 articles received
with no strain on the machines involved, a single SCSI disk handling both
spool and newslib, and something like 30 outgoing feeds of various
capacity (now bandwidth is starting to limit me rather than INN).  Okay,
so bandwidth keeps some of my peers from getting news batches to me until
the weekend, but typically I see some 320 000 articles daily.

    Of course, I'd be hard pressed to get anywhere near this performance
from a single IDE drive with the conventional INN spool, but my point is
that a few code changes have resulted in a throwaway machine[1] that flies
as a transfer machine, should even support readers (though I have not
bothered with this and it is not so easy to tune as a conventional spool),
and is far outperforming the expensive hardware here needed to barely keep
up with half of a full feed, and still relies on INN. 


Barry Bouwsma, bandwidth, dammit, more BANDWIDTH
Radio Praha newsbastard from hell

[1] If I gotta buy the hardware from my own pocket, you *know* it's not
going to be top-o'-the-line, for not only am I a greedy bastard, but I am
a CHEAP greedy bastard.


Re: replic slaves and posting question
#15908
Author: Al
Date: Sat, 15 Mar 1997 00:00
71 lines
4269 bytes
Matt Dillon (dillon@flea.best.net) wrote:
: 
:     Hmm.. well, I'm skeptical.  I know a number of people who have gotten
:     excellent results in innd, but they have generally gotten the
:     peformance by reducing the history retention time... something I
:     no major news node can afford to do.  If you've managed to make INND
:     run efficiently in the face of a few fully transited feeds without
:     messing around with the history retention time, then I am impressed.
: 
:     With full retention, the INN history file grows to over 300 MBytes.
:     A backbone news node has no choice but to deal with that.  No matter
:     how fast the disk, I don't see how a 64MB machine could possibly
:     have the performance to handle more then a dozen full feeds or so,
:     if even that.  

The only solution I've found to make reading halfway decent is to throw
hardware at it -- multiple proc SPARCs with lots of RAM and stacks of 
SCSI controllers.  And these machines still backup to my feed machine.

: 
:     Assuming the history is not a problem (and it isn't if you have 
:     sufficient ram for your disk cache), INND's major bottleneck is 
:     the file create and link()ing.  This tends to be independant of
:     the number of feeds one has, settling in at around 4 or 5 file 
:     creates per second and perhaps 8-to-10 link()s.  The file create
:     and linking performance is directly related to the size of the spool...
:     the larger the spool, the lower the nami() cache hit ratio.  Even
:     a standard filesystem would not have a problem with innd if it only
:     maintained, say, a 2G spool.  The real test is when you use a
:     reasonably-sized spool for a news transit box... 8G or so is good.
:     With an 8G spool, the filesystem will contain on the order of 
:     2 million files.  One of the big problems with INN is it's almost
:     random file pathing on file create... this is where a log-based
:     filesystem with hash-table filename lookups really starts to break
:     through performance wise, but even log fs's will have problems
:     if your lookups are random enough.
: 
:     And, anyway... if something like Diablo kicks ass on a standard
:     machine configuration, just think what it would do on a tuned custom
:     job.  It would be romp city.  One must also think about stability...
:     innd is not a very stable program, things can hang it up big time.
:     Control messages, for instance.  It's biggest problem is it's complexity.
: 
: 						-Matt
: 

Agreed.  After I installed Diablo on my transit machine, performance went through
the roof!  Only BEST has been able to keep up with us.  All of my other down
stream sites, even the people with their Ultra Enterprise x000's can't take
articles fast enough.  Although INN has its benefits, it simply doesn't work
well at all for feeding.  

Although INN is very complex, I've had few problem with it.  Most of my problems
on the reader side have been Solaris bugs, and with the most recetn set of
patches, our machine is rock solid.  However, our reader box can't keep up with
our feeder box.  Basically we're stuck putting all of our eggs in one basket,
a big fast reader box.  A workable distributed NNTP would be great.

IMHO, anyone running transit machines should throw INN away (in the same trash
can as DOS and Windows) and run Diablo.  I've been blown away by its performance
and stability.  


-- 

Al Dowski
Manager, Systems Operations
Aimnet Corporation

Re: replic slaves and posting question
#15921
Author: Hugh Messenger
Date: Sun, 16 Mar 1997 00:00
40 lines
1648 bytes


Matt Dillon <dillon@flea.best.net> wrote in article
<5g590b$cel@flea.best.net>...

>     Normally you set the slave up to post the article directly to the
>     master rather then to itself.  That is, the 'server' config line
>     in the inn.conf file on the salve would point to the master, NOT 
>     to the slave.  The slave innd only gets the article when the
>     master sends it back.

I just noticed that I had to remove the "exclude" entry from the newsfeeds
definition for my slave, on my master.  This surprised me, as I'd asusumed
that the slave would NOT put it's name in the Path when posting to the
master.

I'm using INN as the master, and INS (on NT, part of MCIS) on the slave, so
this may or may not be an INS peculiarity.

If I was using INN for both, would I still have to take the slaves path
name out of the exclude field on the master, such that the feed entry looks
like:

slave-server/\
	:*\
	:Tf,WnR:slave-server

... rather than ...

slave-server/slave.path.name\
	:*\
	:Tf,WnR:slave-server

???

   -- hugh


Re: replic slaves and posting question
#15950
Author: Scott Fritchie
Date: Mon, 17 Mar 1997 00:00
30 lines
1922 bytes
dillon@flea.best.net (Matt Dillon) writes:

>     And, anyway... if something like Diablo kicks ass on a standard
>     machine configuration, just think what it would do on a tuned custom
>     job.  

Drifting a bit from question which started this thread ... what are
the chances that Diablo or NNTPsend will support readers in a way that
will also scale to many hundred simultaneous NNRP sessions?

For my own INN hacking work ... I've got NNRP (including overview
database) support, but it isn't exactly, er, heavily tested yet.

One thing I've heard from several different people is the wish to have
a "real" database, relational or otherwise, at the back end of an
NNTP/NNRP system.  I can't say I've played a database admin on
television or in real life, but what kind of hardware & software
investment (e.g. Oracle7) would be needed to support, oh, say 1000
simultaneous readers with an "average" mix of NNRP commands, looking
up articles by article number and Message-ID?

-Scott
---
Scott Lystig Fritchie, Network Engineer          MRNet Internet Services, Inc.
fritchie@mr.net, PGP key #152B8725               Minnesota Regional Network
v: 612/362.5820, p: 612/637.9547                 2829 University Ave SE
http://www.mr.net/~fritchie/                     Minneapolis, MN  55414

Re: replic slaves and posting question
#15953
Author: Matt Dillon
Date: Mon, 17 Mar 1997 00:00
46 lines
2683 bytes
:In article <ytld8syay8a.fsf@mr.net>, Scott Fritchie  <fritchie@mr.net> wrote:
:>dillon@flea.best.net (Matt Dillon) writes:
:>
:>>     And, anyway... if something like Diablo kicks ass on a standard
:>>     machine configuration, just think what it would do on a tuned custom
:>>     job.  
:>
:>Drifting a bit from question which started this thread ... what are
:>the chances that Diablo or NNTPsend will support readers in a way that
:>will also scale to many hundred simultaneous NNRP sessions?

    There's a good chance Diablo will have newsreader support in the
    next 6 to 12 months.  I duno re: NNTPRelay.

    As far as 'many hundreds' of simultanious user nntp sessions goes..
    this is ultimately limited by available disk bandwidth and memory.
    The only big advantage that a ground-up newsreader implementation
    would have over innd's nnrpd would be a reduced memory footprint
    and perhaps slightly faster overview operation.

:>For my own INN hacking work ... I've got NNRP (including overview
:>database) support, but it isn't exactly, er, heavily tested yet.
:>
:>One thing I've heard from several different people is the wish to have
:>a "real" database, relational or otherwise, at the back end of an
:>NNTP/NNRP system.  I can't say I've played a database admin on
:>television or in real life, but what kind of hardware & software
:>investment (e.g. Oracle7) would be needed to support, oh, say 1000
:>simultaneous readers with an "average" mix of NNRP commands, looking
:>up articles by article number and Message-ID?

    This would almost certainly be a waste of time.

					-Matt

:>-Scott
:>---
:>Scott Lystig Fritchie, Network Engineer          MRNet Internet Services, Inc.
:>fritchie@mr.net, PGP key #152B8725               Minnesota Regional Network
:>v: 612/362.5820, p: 612/637.9547                 2829 University Ave SE
:>http://www.mr.net/~fritchie/                     Minneapolis, MN  55414



Re: replic slaves and posting question
#16052
Author: bill davidsen
Date: Wed, 19 Mar 1997 00:00
25 lines
1761 bytes
In article <5gd8sa$3pk$1@news.aimnet.com>, Al <lynch@aimnet.com> wrote:

| The only solution I've found to make reading halfway decent is to throw
| hardware at it -- multiple proc SPARCs with lots of RAM and stacks of 
| SCSI controllers.  And these machines still backup to my feed machine.

My main problem is getting the slave machines to accept a feed at a
reasonable speed. I can get ~17 art/sec into a machine with
streaming NNTP, but a slave feed is slow, and multiple streams don't
really help much.

There are lots of good reasons for having multiple machines with the
same article numbers, mostly administrative. But the current
solution just isn't working, and I'm not sure what part of it is the
bottleneck, since predefining the article number doesn't seem to
intrinsically increase the work of linking the article, making
history file updates, etc.
--
	-bill davidsen (davidsen@tmr.com)
"As a software development model, Anarchy does not scale well."
		-Dave Welch


Re: replic slaves and posting question
#16061
Author: James Brister
Date: Wed, 19 Mar 1997 00:00
20 lines
1301 bytes
davidsen@tmr.com (bill davidsen) writes:

> There are lots of good reasons for having multiple machines with the
> same article numbers, mostly administrative. But the current
> solution just isn't working, and I'm not sure what part of it is the
> bottleneck, since predefining the article number doesn't seem to
> intrinsically increase the work of linking the article, making
> history file updates, etc.

The next version of INN (he says hopefully) will have slaving done over
normal transmission (IHAVE or TAKETHIS) (via Xref header parsing). XREPLIC
will fade away.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: replic slaves and posting question
#16073
Author: Chris Bellomy
Date: Wed, 19 Mar 1997 00:00
25 lines
1555 bytes
James Brister (brister@vix.com) wrote:
: davidsen@tmr.com (bill davidsen) writes:
: 
: > There are lots of good reasons for having multiple machines with the
: > same article numbers, mostly administrative. But the current
: > solution just isn't working, and I'm not sure what part of it is the
: > bottleneck, since predefining the article number doesn't seem to
: > intrinsically increase the work of linking the article, making
: > history file updates, etc.
: 
: The next version of INN (he says hopefully) will have slaving done over
: normal transmission (IHAVE or TAKETHIS) (via Xref header parsing). XREPLIC
: will fade away.

Any ballpark figures on when 1.6 (presumably) might be released?
(Keeping in mind that any time mentioned now is purely speculative
and not to be taken as any sort of promise, etc. etc. :-) )

-- 
Chris Bellomy				Flashnet Communications
Senior System Administrator		Fort Worth, Texas
cbellomy@flash.net			(817)332-8878

Re: replic slaves and posting question
#16089
Author: Al
Date: Thu, 20 Mar 1997 00:00
28 lines
1240 bytes
James Brister (brister@vix.com) wrote:
: 
: The next version of INN (he says hopefully) will have slaving done over
: normal transmission (IHAVE or TAKETHIS) (via Xref header parsing). XREPLIC
: will fade away.
: 
: James
: -- 
: James Brister                                            brister@vix.com
: Internet Software Consortium      http://www.isc.org     inn@isc.org 

This sounds wonderful -- is there any expected timeframe? I'm currently 
investigating an upgrade/overhaul of certain aspects of our Usenet systems,
and well-implemented slaving capabilities would have a significant impact
on design plans.

Thanks,

Al

-- 

Al Dowski
Manager, Systems Operations
Aimnet Corporation

Re: replic slaves and posting question
#16094
Author: James Brister
Date: Thu, 20 Mar 1997 00:00
16 lines
1096 bytes
cbellomy@flash.net (Chris Bellomy) writes:

> Any ballpark figures on when 1.6 (presumably) might be released?
> (Keeping in mind that any time mentioned now is purely speculative
> and not to be taken as any sort of promise, etc. etc. :-) )

Probably 2-3 months. Longer if the low-foreheads out there keep trying to
poke holes in 1.5.1.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: replic slaves and posting question
#16162
Author: Mark Turner
Date: Fri, 21 Mar 1997 00:00
20 lines
1123 bytes
Mike Horwath  <drechsau@visi.com> wrote:
> 
> Example set up:
> 
> 	Master system, 15 day history retention, INN refusing messages
> 	older than 14 days.
> 
> 	Slave system, 7 day history retention, INN refusing messages
> 	older than 7 days.

What is the point of the master accepting messages older than 7 days
from the rest of the world if the slaves won't then accept them from
the master?

Cheers,

Mark.

Re: replic slaves and posting question
#16159
Author: Greg Andrews
Date: Sat, 22 Mar 1997 00:00
75 lines
3331 bytes
Mike Horwath <drechsau@visi.com> writes:
>Greg Andrews <gerg@netcom.com> wrote:
>: Mike Horwath <drechsau@visi.com> writes:
>: >
>: >On a slave server, why would you need to keep a large history file
>: >around?  It should only have news fed into it from the master.
>: >
>
>: For expiration.  Slaves have independent spool filesystems, and the
>: articles don't magically disappear on their own.
>
>They have a 'master' which has a large history retention, why double
>it up?
>

Sounds like you think rejecting old articles is the reason history
files become so large.

Not true.  It's how many articles you have in your spool, which is
dependent on your expiration time and the size of your incoming feeds.
If you don't want to have a large history file, all you need to do is
reduce your expiration time to a few days and tell INN to reject posts
older than that.

But that uncovers the *real* reason for large history files.  Your
users want you to keep all those articles around longer than a few
days.

If the slaves server your news readers, it makes no sense to have a
short expiration time on your slaves and a long one on your master.

>:
>: A history database on the slave is also useful for handling the
>: nntp commands that require message-id lookups, such as the first
>: forms of the ARTICLE, HEAD, BODY, and STAT commands (the second
>: form uses the article number within a newsgroup rather than the
>: message-id), and your favorite and mine, the NEWNEWS command.
>
>I didn't say get rid of it :)
>

I couldn't detect the emphasis was on large history files rather
than on any size history file.

>
>Example set up:
>
>	Master system, 15 day history retention, INN refusing messages
>	older than 14 days.
>
>	Slave system, 7 day history retention, INN refusing messages
>	older than 7 days.
>
>So, history on the slave would hold all messages in the spool but get
>rid of old IDs and stay smaller on the slave.
>

What's the point of accepting 8-14 day old articles on the master when
the slaves will discard them as too old?  The slaves will end up with
holes in the articles numbers (and threads) where the older articles
exist on the master.

It's also a question of whether your users will tolerate a 7-day
expiration on the slaves.

Both of these issues will trigger complaints from users.

  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@netcom.com  :::::::::::::::::::
Fortune Cookie:  The best defense against logic is ignorance.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Re: replic slaves and posting question
#16174
Author: Greg Andrews
Date: Sat, 22 Mar 1997 00:00
55 lines
2936 bytes
Mike Horwath <drechsau@visi.com> writes:
>Mark Turner <markt@uunet.pipex.com> wrote:
>: Mike Horwath  <drechsau@visi.com> wrote:
>: > 
>: > Example set up:
>: > 
>: > 	Master system, 15 day history retention, INN refusing messages
>: > 	older than 14 days.
>: > 
>: > 	Slave system, 7 day history retention, INN refusing messages
>: > 	older than 7 days.
>
>: What is the point of the master accepting messages older than 7 days
>: from the rest of the world if the slaves won't then accept them from
>: the master?
>
>Set up of a new slave? :)
>

That doesn't make sense either.  It's going to take at least 2 or 3
days to feed just 7 days worth of articles to the new slave.  The new
slave might be able to accept a feed at 2-3 times the full daily rate,
but the master probably won't be able to send that fast - especially
if its feeding more than 3 or 4 slaves already.

And what about the new slave's spool filesystem?  After it's received
all those articles, when will it start expiring them?  Not right away.
It will wait until the first set of articles are 7 days old.  Since you
were transferring them at 2-3 times the normal rate, they'll take 2-3
days longer than you expect before expire will flush them out.  So your
slave comes online with a full spool and new articles add to the disk
space being consumed, but expire isn't freeing anything up.  The spool
on your new slave overflows.

Yes, you can tweak the expire on the new slave for the first few days
so it frees up the right amount of space, but consider the alternative:

Set up the new slave and feed it normally for 4-5 days before allowing
your users to read from it.  It only takes a couple of days longer to
fill than the 2-3 days I mentioned above, and expire needs no tweaking
at all.  You get the same result for less work - just a couple days
more time.

And there's no reason to have your master keep news longer than your
slaves.

  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@netcom.com  :::::::::::::::::::
Fortune Cookie:  The problem with the gene pool is
                 that there is no lifeguard.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Re: replic slaves and posting question
#16250
Author: Matt Dillon
Date: Mon, 24 Mar 1997 00:00
49 lines
2716 bytes
:In article <gergE7GKFs.6oM@netcom.com>, Greg Andrews <gerg@netcom.com> wrote:
:>Mike Horwath <drechsau@visi.com> writes:
:>>Mark Turner <markt@uunet.pipex.com> wrote:
:>>: Mike Horwath  <drechsau@visi.com> wrote:
:>>: > 
:>>: > Example set up:
:>>: > 
:>>: > 	Master system, 15 day history retention, INN refusing messages
:>>: > 	older than 14 days.
:>>: > 
:>>: > 	Slave system, 7 day history retention, INN refusing messages
:>>: > 	older than 7 days.
:>>
:>>: What is the point of the master accepting messages older than 7 days
:>>: from the rest of the world if the slaves won't then accept them from
:>>: the master?
:>>
:>>Set up of a new slave? :)
:>>
:>
:>That doesn't make sense either.  It's going to take at least 2 or 3
:>days to feed just 7 days worth of articles to the new slave.  The new
:>slave might be able to accept a feed at 2-3 times the full daily rate,
:>but the master probably won't be able to send that fast - especially
:>if its feeding more than 3 or 4 slaves already.
:>
:>And what about the new slave's spool filesystem?  After it's received
:>all those articles, when will it start expiring them?  Not right away.
:>It will wait until the first set of articles are 7 days old.  Since you
:>were transferring them at 2-3 times the normal rate, they'll take 2-3
:>days longer than you expect before expire will flush them out.  So your
:>slave comes online with a full spool and new articles add to the disk
:>space being consumed, but expire isn't freeing anything up.  The spool
:>on your new slave overflows.

    Yah, I've found that trying to play 'catch up' with a full feed
    to a new box is a lot of trouble for very little gain.

    My suggestion in setting up a new slave is to simply set it up,
    turn it on, and let it run for a few days before making it
    available to your users.  I would not wast time trying to pre-load
    the slave up from another spool or to requeue the newsfeed
    machine's entire spool to the new slave.

						-Matt


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