🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19111

Re: Help with redundancy of news servers

#19111
From: 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


Technical Details
Message-ID: <5pvp2h$8j9$1@zingo.tninet.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <5p0gdo$er4@prometheus.acsu.buffalo.edu> <5pdsk3$3fs$1@news5.gte.net>

Show Full Headers
Complete Article Headers
Message-ID: <5pvp2h$8j9$1@zingo.tninet.se>
Subject: Re: Help with redundancy of news servers
Date: Wed, 09 Jul 1997 00:00:00 +0000
From: prl@algonet.se (Ragnar Lonn)
References: <5p0gdo$er4@prometheus.acsu.buffalo.edu> <5pdsk3$3fs$1@news5.gte.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 255708975
Organization: Algonet
Newsgroups: news.software.nntp