🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84572

Re: [request] INN2 and HA/DRBD-active-passive ? how to build a HA solution for INN2 ?

#84572
From: Geek Marc
Date: Thu, 22 Dec 2011 07:43
100 lines
5081 bytes
Le Wed, 21 Dec 2011 17:27:42 +0100, Julien ÉLIE a écrit :

> Hi Marc,
> 
>> A.
>> On first test, I created two independent INN2 servers.
>> The replication between servers works well, but in case of one server
>> fail, for users :
>> - they need to connect to the other NNTP server - they lose their
>> client configuration (read/unread/deleted articles as message-IDs are
>> different).
> 
> For the first point, couldn't you use a balancing service (a virtual IP
> redirecting a user to a given server during a whole session) as Steve
> also suggests?
> 
> I do not understand your second point.  Why would message-IDs be
> different?  Maybe you are speaking about article numbers; if that is the
> case, did not you run one of the two INN servers in slave mode (see
> xrefslave in inn.conf, and also nnrpdposthost in the same file)?
I confused Message-IDs and article numbers.

> 
>      http://www.eyrie.org/~eagle/software/inn/docs/inn.conf.html
> 
> 
> Depending on which server fails, you have to (automatically) modify its
> configuration.  For instance, when the active server fails, the passive
> (slave) one should become the active one.
OK I will do this test.


>> B.
>> On a second step, I was thinking about an active/passive drbd file
>> system with HA with a virtual IP for INN2 service (an eth0:0 IP
>> address)
>>
>> So, I imagined to add an /init.d/inn2 stop and an /init.d/inn2 start
>> (with some conditions/delay) into /etc/ha.d/resource.d/MailTo script
>> plus maybe a /usr/lib/news/bin/tdx-util -R $newsgroupdir -n $newsgroup
>> ; for all newsgroupsdirectories.
>> Not a clean way to do but probably it would work when node is moving.
> 
> I believe it should work.
> Only one instance should be working at the same time (otherwise, your
> history, overview or spool will get corrupted).
May be it would give less maintenance for creating/deleting groups.
Only one place to manage.
May be more stress when big problems - when drbd disks are not sync...


>> C.
>> For measuring time response onto port 119, I was thinking s small test
>> script which will record time response and would send ONE alert email
>> when the server stops to give correct response and would send ONE OK
>> email when back to normal operation.
> 
> When the server is heavily loaded, or throttled during expiry, it will
> not send the expected 200 response.  It still works, though.  It should
> not always be considered as down.
OK

>> D.
>> As I saw nfswriter parameter into inn.conf, I was wondering if 2 inn2
>> servers can use at same time the same /var/spool/news/ and
>> /var/lib/news/.
>> Probably yes for reading, but what happen when writing???
>> If only one writes data it could sound OK.
> 
> I am unsure that the newly written data is properly seen by all the
> readers.  Maybe it works, but I have not tested.

I don't think I would have time to test that.


>> E.
>> For NNTPSwitch solution, I don't think a message sent to the NNTPSwitch
>> could be sent to two servers at same time and would have same
>> message-ID.
> 
> The Message-ID is the same.  It identifies a given news article on all
> servers in the world.
Using Message-ID with intranet hostnames does not cause problem?
Right?

>> F.
>> In a HA/DRBD-active-passive, I can do 2 independent INN2 servers with
>> only INN2 running on active node while there is each 5 minutes a rsync
>> from active to passive for /var/spool/news and for /var/lib/news/.
> 
> Your previous suggestions are more robust than this one.
> 
> 
> 
>> Solution F seems OK, but some messages could be lost.
> 
> Yes.


A big thank you for your assistance.
Technical Details
Message-ID: <4ef2df8a$0$17992$426a34cc@news.free.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!novso.com!nerim.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp7-2.free.fr!not-for-mail
References: <4ef154d9$0$8820$426a74cc@news.free.fr> <jct1du$59o$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <4ef2df8a$0$17992$426a34cc@news.free.fr>
Subject: Re: [request] INN2 and HA/DRBD-active-passive ? how to build a HA solution for INN2 ?
Date: Thu, 22 Dec 2011 07:43:06 +0000
From: Geek Marc <geekmarcNOSPAM@gmNOSPAMail.com>
References: <4ef154d9$0$8820$426a74cc@news.free.fr> <jct1du$59o$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news2.euro.net!novso.com!nerim.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp7-2.free.fr!not-for-mail
Newsgroups: news.software.nntp
User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT
 eac2ac1 master)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 100
Organization: Guest of ProXad - France
NNTP-Posting-Date: 22 Dec 2011 08:43:06 MET
NNTP-Posting-Host: 88.186.228.246
X-Trace: 1324539786 news-4.free.fr 17992 88.186.228.246:45876
X-Complaints-To: abuse@proxad.net
X-Original-Bytes: 4817