🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
13 messages
13 total messages Started by Kathleen M Thiel Fri, 27 Jun 1997 00:00
Help with redundancy of news servers
#18843
Author: Kathleen M Thiel
Date: Fri, 27 Jun 1997 00:00
24 lines
1416 bytes

I need to come up with a good way to make out news servers stay
in service at all times. We have two machines, a peering news
machine, and a reading/posting machine. If the peering machine
goes down from time to time it is ok, because users can still
read/and post news. But, if the reading/posting machine goes
down, the users are out of luck. 

I want to set up an exact duplicate of our read/post machine 
(an ultra1 with a disk array) and have them named in a 
round-robin fashion. So when one goes down, the other can
remain in service with no change to the users. But, I wanted
to know how to keep the two machines in sync with each other. 
I know there is the actsync utility which keeps the active 
files in sync, but is this the only thing that is needed 
for a setup like this? Are there other tools available?

Thanks for any ideas/suggestions.
Kathleen
 


Re: Help with redundancy of news servers
#18937
Author: Dan Tedrick
Date: Wed, 02 Jul 1997 00:00
32 lines
1966 bytes
Kathleen M Thiel wrote:
> 
> I need to come up with a good way to make out news servers stay
> in service at all times. We have two machines, a peering news
> machine, and a reading/posting machine. If the peering machine
> goes down from time to time it is ok, because users can still
> read/and post news. But, if the reading/posting machine goes
> down, the users are out of luck.
> 
> I want to set up an exact duplicate of our read/post machine
> (an ultra1 with a disk array) and have them named in a
> round-robin fashion. So when one goes down, the other can
> remain in service with no change to the users. But, I wanted
> to know how to keep the two machines in sync with each other.
> I know there is the actsync utility which keeps the active
> files in sync, but is this the only thing that is needed
> for a setup like this? Are there other tools available?

set up the reading/posting machines as slaves to the peering machine.
there are a couple of ways to do this with inn, see the FAQ.

a DNS round robin isn't the best way to go, due to the method most
current news clients use DNS.  they only do the lookup once and then
hold on to that IP until they are restarted. they completely ignore
TTLs. a better way to do this than DNS is to use one of the many
redirectors available such as the Web Server Director, or the Local
Director.

Dan Tedrick

Re: Help with redundancy of news servers
#19111
Author: Ragnar Lonn
Date: Wed, 09 Jul 1997 00:00
93 lines
5482 bytes
In article <5pdsk3$3fs$1@news5.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
>Kathleen M Thiel wrote:
>> 
>> I need to come up with a good way to make out news servers stay
>> in service at all times. We have two machines, a peering news
>> machine, and a reading/posting machine. If the peering machine
>> goes down from time to time it is ok, because users can still
>> read/and post news. But, if the reading/posting machine goes
>> down, the users are out of luck.
>> 
>> I want to set up an exact duplicate of our read/post machine
>> (an ultra1 with a disk array) and have them named in a
>> round-robin fashion. So when one goes down, the other can
>> remain in service with no change to the users. But, I wanted
>> to know how to keep the two machines in sync with each other.
>> I know there is the actsync utility which keeps the active
>> files in sync, but is this the only thing that is needed
>> for a setup like this? Are there other tools available?
>
>set up the reading/posting machines as slaves to the peering machine.
>there are a couple of ways to do this with inn, see the FAQ.
>
>a DNS round robin isn't the best way to go, due to the method most
>current news clients use DNS.  they only do the lookup once and then
>hold on to that IP until they are restarted. they completely ignore
>TTLs. a better way to do this than DNS is to use one of the many
>redirectors available such as the Web Server Director, or the Local
>Director.
>

Does those redirectors work with news clients?  Aren't they just sending
HTTP-Redirect commands to the clients when they connect?

The master/slave mode of INN seem to work for some and not for
others - I think it appears not to be completely reliable when it comes
to keeping article numbering synced between servers. What you can 
do (what we have done) is to have an NFS-server that holds the 
article and overview files and then let all reader clients mount their
spool from it - that ensures the same article numbering on all
machines. Any local postings go to a single host that is the only
machine allowed to write on the spool (might be the NFS server
itself if it's a Unix box). 

Start nnrpd via inetd on the reader clients and use the "-S nfs-host" 
parameter to make local postings get sent to the NFS server host
(or the machine that is allowed to write on the spool), then you will
have a bunch of reader machines that behaves exactly the same -
they will all claim to be "nfs-host" for example, when someone
connects to them, and they will have the same article numbering
always. To get failover functionality you need to make some scripts
or programs and work some with your DNS but it shouldn't be
too hard to do (I've planned doing it but haven't got around to it yet) -
if your system is gte.net and your news server is news.gte.net you
can, in gte.net's nameserver setup:

news.gte.net.   IN      NS      nfs-news-server-host.gte.net.

..then you setup your own little nameserver on that machine and
setup some A records for the reader machines in a round-robin way
so load will be distributed among your reader servers. You also write
a small script that periodically connects to each of the reader hosts
and 'reads' an article to make sure the reader host is functional. If
it isn't, the script removes that reader host from the DNS and restarts
the DNS. Oh, yeah you should of course have very short TTL times
on your DNS data. Maybe even 0 TTL.

Why setup a different nameserver?   It depends on what your main
nameserver looks like. In our case, we are authoritative for thousands
of .se domains and reloading our DNS data takes a while so we don't
want to do that unless necessary. By moving this volatile newsserver
DNS data to a special nameserver, I can mess around without disrupting
our main DNS service which must be running at all times. 

And also, you can of course use this solution for more advanced load-
balancing. Say you have one reader machine that is twice as fast as
the next one - seems only fair this machine should server more readers,
right?  If you use round-robin DNS you can't accomplish this without
giving the machine two IP-addresses (and even if you do that, the DNS
won't take into account any heavy jobs e.g. running on a machine when
distributing reader connects to it). What you can do is make a more
advanced program that connects to your reader machines and measures
average connect time, article download time, command response time,
etc. to see how well the news service works on that particular host.
Then you let your DNS always reply with the IP-number of the host
that is currently the fastest NNTP server. (this is what I intend to do
at some point but I've found it's not all that easy to have a program
measure which server is fastest - NNRP reading is pretty jerky)

  /Ragnar, Algonet/TNI


Re: Help with redundancy of news servers
#19126
Author: Dan Tedrick
Date: Thu, 10 Jul 1997 00:00
35 lines
2168 bytes
Ragnar Lonn wrote:
> Ah well then you'll run into a performance bottleneck once the 'router host'
> gets saturated with packets from reader connections. Either CPU-wise or
> because its network cards can only carry a certain amount of traffic. Also,
> the router host will be one more potential source of failure.
>

yep, but most of these solutions offer high availability fail over
options, which helps with the single point of failure. and as to
bandwidth, most also offer several interface solutions. if I recall
correctly the Local Director even supports ATM.

> When your large and expensive NFS-server starts hitting the roof
> in terms of disk accesses you buy more physical disks for it and when
> you can't install more disks, you buy another NFS server and let it
> handle $NEWSSPOOL/alt. This way you can, by juggling some with
> the physical location of group hierarchies, upgrade the system
> performance quite a lot before you're at a dead end.
>

thats deffinatly one way to do it.
 
> No I guess the order in which the nameserver delivers the IP-addresses
> is more important (round-robin DNS replies). Unless you plan to make news
> reading available to people outside your own system in which case TTL matters.
> 

except again we hit the problem with clients that only look up the news
server when they are loaded and never look again, until they are
shutdown and reloaded. neither order, nor TTL can help that.

Dan Tedrick

Re: Help with redundancy of news servers
#19132
Author: Matt Dillon
Date: Thu, 10 Jul 1997 00:00
100 lines
5804 bytes
:In article <5q3b22$39t$1@gte1.gte.net>, Dan Tedrick  <dtedrick@gte.net> wrote:
:>Ragnar Lonn wrote:
:>> Ah well then you'll run into a performance bottleneck once the 'router host'
:>> gets saturated with packets from reader connections. Either CPU-wise or
:>> because its network cards can only carry a certain amount of traffic. Also,
:>> the router host will be one more potential source of failure.
:>>
:>
:>yep, but most of these solutions offer high availability fail over
:>options, which helps with the single point of failure. and as to
:>bandwidth, most also offer several interface solutions. if I recall
:>correctly the Local Director even supports ATM.
:>
:>> When your large and expensive NFS-server starts hitting the roof
:>> in terms of disk accesses you buy more physical disks for it and when
:>> you can't install more disks, you buy another NFS server and let it
:>> handle $NEWSSPOOL/alt. This way you can, by juggling some with
:>> the physical location of group hierarchies, upgrade the system
:>> performance quite a lot before you're at a dead end.
:>>
:>
:>thats deffinatly one way to do it.
:> 
:>> No I guess the order in which the nameserver delivers the IP-addresses
:>> is more important (round-robin DNS replies). Unless you plan to make news
:>> reading available to people outside your own system in which case TTL matters.
:>> 
:>
:>except again we hit the problem with clients that only look up the news
:>server when they are loaded and never look again, until they are
:>shutdown and reloaded. neither order, nor TTL can help that.
:>
:>Dan Tedrick

    I have never found large NFS-based spools to be cost effective.  Not only
    do you have to purchase the honking NFS box, but you also have to purchase
    serious network infrastructure to support it.  

    The same money would be better spent on outfitting more client machines
    and giving them local disk.  If you keep the newsreader boxes 
    synchronized, which is NOT hard to do (though we do not bother ourselves),
    and one dies, you simply fail-over to another with an IP alias.  Your 
    entire network infrastructure consists of one 24 port 100BaseT-backed 
    10BaseT switch, with 10BaseT run to each box.  It couldn't be simpler.

    We run pretty cheap news boxes...  PPro 200's w/ 256MB of ram and five 
    4G disks (four thrown together to make a striped 16GB spool).  Each one
    costs around $10K and is capable of supporting 300 users @ 256MB of 
    ram w/ the cpu 70% idle, and 600 at 512MB of ram with the cpu 35% idle.

    The only problems we have is with INND's single-threaded nature, but
    with appropriate spam and cancel filters to reduce the article volume
    to something reasonable, it isn't a problem.

    The nominal account : active-reader ratio is nearly 100:1 for us and,
    I presume, for most companies running a news server.  That comes
    to around $0.33 in one-time capital costs to support each user.

    We currently only have two newsreader boxes, but we have over a dozen
    identically configured shell boxes and we have found that the time
    required to manage all of them is virtually the same as to manage
    just one.  It would be even easier managing multiple news boxes.  There
    is really no good reason to run NFS, RAID, *or* to try to put all the
    blasted news on a larger multi-processor 'enterprise' machine.

    The larger enterprise-class multi-processor boxes are generally a bad
    idea.  While they might be able to support a reasonable multiplication
    of processes, they generally do not do a good job under adverse 
    conditions... and blowing one up takes out a huge chunk of your business
    whereas if a single, smaller client box blows up the effect is much
    less pronounced.  From my experience, this fact is true for news,
    sendmail, AND web servers.  Smaller boxes are better (and, anyway, smaller
    boxes are pretty damn powerful these days, you would have to spend 
    hundreds of thousands of dollars and invest in several gigabytes of ram
    to max out a multi-processor enterprise server and that's too many
    eggs for one basket if you ask me).

    Here's an interesting item:  I have found that to max-out *all* the
    various machine resources to 80%, I would need the following in the
    given ratios (for general processing applications: mail, web servers,
    ftp, news, etc....):

	200 MIPS class cpu, 512MB ram, 2 UW SCSI controllers, and 10 physical
	disks.  

	(the multiple SCSI controllers are necessary not so much
	because the SCSI bus hits its 40 MByte/sec bandwidth limit but
	because the controllers hit their SCSI transaction rate limit...
	usually around 500 transactions/sec/controller).

    So, if you have a four-cpu enterprise box w/ ultra sparcs, pentium pro's,
    or R10K's, you would need six to eight SCSI busses, 40 physical disks,
    and 2GB of ram to use the box efficiently.  Anything less and you are
    wasting money and should have purchased a smaller box.

						-Matt


Re: Help with redundancy of news servers
#19133
Author: Ragnar Lonn
Date: Thu, 10 Jul 1997 00:00
40 lines
2362 bytes
In article <5q3b22$39t$1@gte1.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
>
>> No I guess the order in which the nameserver delivers the IP-addresses
>> is more important (round-robin DNS replies). Unless you plan to make news
>> reading available to people outside your own system in which case TTL
> matters.
>> 
>
>except again we hit the problem with clients that only look up the news
>server when they are loaded and never look again, until they are
>shutdown and reloaded. neither order, nor TTL can help that.
>

Yes but remember we're talking about *readers* here, not feeders. Most
readers are Windows PCs and that means the only thing that will happen in 
case one of your reader servers goes down is that the people currently 
connected to that particular machine will experience a loss of service. If
you have several reader servers, this means that only part of the people
reading news at the time of breakdown will have any problems whatsoever.
And if they logoff and on again later, things will be back to normal (though 
maybe they'll have to turn off and on their machines, dunno how Windows 
TCP/IP software caches DNS data). The major part of your users
won't ever notice that a reader machine has gone down and this because
most people turn on and off their PCs quite a lot, erasing any cached 
DNS data. 

I think it's a very small price to pay. I'd say that with this scheme, a
breakdown of one of, say, 3 reader machines would bother less than 5%
of the people using the news service daily. And many of them would
probably try again later and find the service working again then.

  /Ragnar, Algonet/TNI






Re: Help with redundancy of news servers
#19137
Author: Dan Tedrick
Date: Thu, 10 Jul 1997 00:00
31 lines
1846 bytes
Ragnar Lonn wrote:
> 
> In article <5q3b22$39t$1@gte1.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
> >except again we hit the problem with clients that only look up the news
> >server when they are loaded and never look again, until they are
> >shutdown and reloaded. neither order, nor TTL can help that.
> >
> 
> Yes but remember we're talking about *readers* here, 

yes  thats what I was talking about ;)

> not feeders. Most
> readers are Windows PCs and that means the only thing that will happen in
> case one of your reader servers goes down is that the people currently
> connected to that particular machine will experience a loss of service. If
> you have several reader servers, this means that only part of the people
> reading news at the time of breakdown will have any problems whatsoever.

but they can be very loud, or it could be your boss :(



for feeders, DNS is very important and a 300 TTL would make sense.
(but I'm used to the feeders being at least entirely different boxes,
and set up substantially different from a reader)

Dan Tedrick

Re: Help with redundancy of news servers
#19139
Author: Juan Carlos Castro
Date: Thu, 10 Jul 1997 00:00
31 lines
2119 bytes
Dan Tedrick wrote: 

> > What you can
> > do (what we have done) is to have an NFS-server that holds the
> > article and overview files and then let all reader clients mount their
> > spool from it - that ensures the same article numbering on all
> > machines. Any local postings go to a single host that is the only
> > machine allowed to write on the spool (might be the NFS server
> > itself if it's a Unix box).
> 
> good idea, but unfortunatly it only grows so far. I've had a news system
> set up similarly that would support ~5,000 simultanious active
> connections like that, but when it got much over that, I had to
> replicate the network (thus needing two spools with identical article
> numbers), as disks only have so much bandwidth... though I've been
> keeping an eye on fiber disks ;)
> 

Did you do any client side caching?  I would like to set an NFS 
spool/ov/his/active and use a huge (relatively speaking) cachefs
say 8G worth on the client.  

----
J. Carlos Castro (JCC31) -  Consulting for your Internet Needs
work --president@netcrusader.net--> http://www.netcrusader.net
http://www.jcas.com <-------------j@jcas.com------------- play



Re: Help with redundancy of news servers
#19142
Author: Ragnar Lonn
Date: Thu, 10 Jul 1997 00:00
45 lines
2554 bytes
In article <5q1g70$1u4$2@news2.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
>Ragnar Lonn wrote:
>> Does those redirectors work with news clients?  Aren't they just sending
>> HTTP-Redirect commands to the clients when they connect?
>> 
>no, these actually reroute the packet to another machine (useing tcp/ip,
>not http)
>

Ah well then you'll run into a performance bottleneck once the 'router host'
gets saturated with packets from reader connections. Either CPU-wise or
because its network cards can only carry a certain amount of traffic. Also,
the router host will be one more potential source of failure.

>good idea, but unfortunatly it only grows so far. I've had a news system
>set up similarly that would support ~5,000 simultanious active
>connections like that, but when it got much over that, I had to
>replicate the network (thus needing two spools with identical article
>numbers), as disks only have so much bandwidth... though I've been
>keeping an eye on fiber disks ;)
>

When your large and expensive NFS-server starts hitting the roof
in terms of disk accesses you buy more physical disks for it and when
you can't install more disks, you buy another NFS server and let it
handle $NEWSSPOOL/alt. This way you can, by juggling some with
the physical location of group hierarchies, upgrade the system
performance quite a lot before you're at a dead end.

>> it isn't, the script removes that reader host from the DNS and restarts
>> the DNS. Oh, yeah you should of course have very short TTL times
>> on your DNS data. Maybe even 0 TTL.
>> 
>
>great idea, except most news clients pay no attention to TTL. :(
>

No I guess the order in which the nameserver delivers the IP-addresses
is more important (round-robin DNS replies). Unless you plan to make news 
reading available to people outside your own system in which case TTL matters.

  /Ragnar, Algonet/TNI

Re: Help with redundancy of news servers
#19160
Author: Dan Tedrick
Date: Thu, 10 Jul 1997 00:00
73 lines
3823 bytes
Ragnar Lonn wrote:
> 
> In article <5pdsk3$3fs$1@news5.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
> >a DNS round robin isn't the best way to go, due to the method most
> >current news clients use DNS.  they only do the lookup once and then
> >hold on to that IP until they are restarted. they completely ignore
> >TTLs. a better way to do this than DNS is to use one of the many
> >redirectors available such as the Web Server Director, or the Local
> >Director.
> >
> 
> Does those redirectors work with news clients?  Aren't they just sending
> HTTP-Redirect commands to the clients when they connect?
> 

no, these actually reroute the packet to another machine (useing tcp/ip,
not http)

> The master/slave mode of INN seem to work for some and not for
> others - I think it appears not to be completely reliable when it comes
> to keeping article numbering synced between servers. 

thats the only point to use it....

> What you can
> do (what we have done) is to have an NFS-server that holds the
> article and overview files and then let all reader clients mount their
> spool from it - that ensures the same article numbering on all
> machines. Any local postings go to a single host that is the only
> machine allowed to write on the spool (might be the NFS server
> itself if it's a Unix box).

good idea, but unfortunatly it only grows so far. I've had a news system
set up similarly that would support ~5,000 simultanious active
connections like that, but when it got much over that, I had to
replicate the network (thus needing two spools with identical article
numbers), as disks only have so much bandwidth... though I've been
keeping an eye on fiber disks ;)

> 
> Start nnrpd via inetd on the reader clients and use the "-S nfs-host"
> parameter to make local postings get sent to the NFS server host
> (or the machine that is allowed to write on the spool), then you will
> have a bunch of reader machines that behaves exactly the same -
> they will all claim to be "nfs-host" for example, when someone
> connects to them, and they will have the same article numbering
> always. To get failover functionality you need to make some scripts
> or programs and work some with your DNS but it shouldn't be
> too hard to do (I've planned doing it but haven't got around to it yet) -
> if your system is gte.net and your news server is news.gte.net you
> can, in gte.net's nameserver setup:
> 
> news.gte.net.   IN      NS      nfs-news-server-host.gte.net.
> 
> ..then you setup your own little nameserver on that machine and
> setup some A records for the reader machines in a round-robin way
> so load will be distributed among your reader servers. You also write
> a small script that periodically connects to each of the reader hosts
> and 'reads' an article to make sure the reader host is functional. If
> it isn't, the script removes that reader host from the DNS and restarts
> the DNS. Oh, yeah you should of course have very short TTL times
> on your DNS data. Maybe even 0 TTL.
> 

great idea, except most news clients pay no attention to TTL. :(


->other great stuff deleted<-

Dan Tedrick

Re: Help with redundancy of news servers
#19165
Author: Ragnar Lonn
Date: Fri, 11 Jul 1997 00:00
38 lines
2572 bytes
In article <5q3mdf$do8$1@flea.best.net>, dillon@flea.best.net (Matt Dillon) 
wrote:
>    I have never found large NFS-based spools to be cost effective.  Not only
>    do you have to purchase the honking NFS box, but you also have to purchase
>    serious network infrastructure to support it.  
>
>    The same money would be better spent on outfitting more client machines
>    and giving them local disk.  If you keep the newsreader boxes 
>    synchronized, which is NOT hard to do (though we do not bother ourselves),
>    and one dies, you simply fail-over to another with an IP alias.  Your 
>    entire network infrastructure consists of one 24 port 100BaseT-backed 
>    10BaseT switch, with 10BaseT run to each box.  It couldn't be simpler.
>

Not sure I agree. You should try keeping a large system with many reader
machines with local disks synchronized before claiming it's easy :-)

I admit that I haven't tried either, but I know experienced news 
administrators who have and who says it can get pretty difficult and also, in 
my experience, more machines with individual configurations usually means
more administration. For one thing you have to feed each of all your
reader machines - that's a pain to administrate and means you use a lot
of bandwidth on your LAN. You'll be administrating multiple spools on
multiple machines, with lots of things that can go wrong. 

If you have a system that uses NFS, you'll have one single spool and
never have to bother about article number synchronization problems, you'll
only need one single feed to your whole reader system, you'll only have one
disk system to administrate. 

I think *this* is what you could say "couldn't be simpler" about :-)
(Btw, I NFS-export the config files so I also have only one set of those
that I need to change in order to affect the whole pool of reader machines)

  /Ragnar, Algonet/TNI

Re: Help with redundancy of news servers
#19172
Author: Ragnar Lonn
Date: Fri, 11 Jul 1997 00:00
18 lines
1446 bytes
In article <5q3sp2$13f$1@gte1.gte.net>, Dan Tedrick <dtedrick@gte.net> wrote:
>Ragnar Lonn wrote:
>> readers are Windows PCs and that means the only thing that will happen in
>> case one of your reader servers goes down is that the people currently
>> connected to that particular machine will experience a loss of service. If
>> you have several reader servers, this means that only part of the people
>> reading news at the time of breakdown will have any problems whatsoever.
>
>but they can be very loud, or it could be your boss :(
>

If they're loud, you pretend they don't exist. If it's your boss you tell 
him/her it's a matter of system security :-)

  /Ragnar, Algonet/TNI

Re: Help with redundancy of news servers
#19203
Author: Matt Dillon
Date: Fri, 11 Jul 1997 00:00
34 lines
2170 bytes
:In article <gergED5258.4p6@netcom.com>, Greg Andrews <gerg@netcom.com> wrote:
:>dillon@flea.best.net (Matt Dillon) writes:
:>>
:>>    The same money would be better spent on outfitting more client machines
:..
:>Heh.  There you go again, Matt.  You say you've never kept servers
:>synchronized, then you say it "couldn't be simpler."
:>
:>In practice, keeping more than 5-6 reader servers synchronized is not
:>simple, particularly when the most popular NNTP clients fetch the

    With the slave mode junk it wasn't, but my understanding is that the
    next release of INN will be able to do slave synchronization with 
    normal Xref: headers.    i.e. you will no longer have to use xreplic.
    I thought I mentioned that.

    (You can't currently run synchronized feeds from a diablo feeds box,
    though, so i have no solution to the problem from that configuration
    for the moment).

    We don't bother doing slave synchronization because there is no particular
    need.  The users select a newsreader box and stick with it.  If we
    loose a disk, we just stick in a new one, newfs everything, and
    refeed the last one or two day's worth of news from the newsfeeds
    machine to prime it.  News needs to be reliable and up to date, but it
    isn't one of those 99.9999999% up-time critical services.  If it's down
    for a few hours once a year, nobody will care and it makes no sense
    throwing money at non-existant problems.

						-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