🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84556

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

#84556
From: Julien ÉLIE
Date: Wed, 21 Dec 2011 16:27
94 lines
4775 bytes
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)?

     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.



> 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).



> 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.



> 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.



> 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.



> 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.

-- 
Julien ÉLIE

« Le carré est une figure qui a un angle droit dans chaque coin. »
   (Jean-Charles)
Technical Details
Message-ID: <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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-32-208.w90-57.abo.wanadoo.fr!not-for-mail
References: <4ef154d9$0$8820$426a74cc@news.free.fr>

Show Full Headers
Complete Article Headers
Message-ID: <jct1du$59o$1@news.trigofacile.com>
Subject: Re: [request] INN2 and HA/DRBD-active-passive ? how to build a HA solution for INN2 ?
Date: Wed, 21 Dec 2011 17:27:42 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <4ef154d9$0$8820$426a74cc@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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!.POSTED.amontpellier-159-1-32-208.w90-57.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 21 Dec 2011 16:27:42 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="amontpellier-159-1-32-208.w90-57.abo.wanadoo.fr:90.57.215.208";
 logging-data="5432"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; fr;
In-Reply-To: <4ef154d9$0$8820$426a74cc@news.free.fr>
Lines: 93