🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84550

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

#84550
From: Geek Marc
Date: Wed, 21 Dec 2011 03:39
79 lines
4118 bytes
Hello,

I was wondering how to build an High Availability cluster for inn2 with 
two nodes.

Little googling on the subject gave me : 
- NNTPSwitch - http://redmine.chiparus.net/projects/nntpswitch/wiki
- http://www.newsreaders.com/unix/servers.html
- http://www.eyrie.org/~eagle/faqs/inn.html

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

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)

In /etc/drbdlinks.conf 
link('/etc/news', '/data/etc_news')
link('/usr/lib/news', '/data/usr_lib_news')
link('/var/lib/news', '/data/var_lib_news')
link('/var/log/news', '/data/var_log_news')
# a link('/var/run/news', '/data/var_run_news') seems a bad idea
link('/var/spool/news', '/data/var_spool_news')

But I did not find any inn2 resource agent - http://www.linux-ha.org/wiki/
Resource_Agents

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.

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.

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.

In that case maybe a DRBD active/active with gfs with HA could be a great 
solution with a virtual IP for INN2 service (an eth0:0 IP address).

An /init.d/inn2 stop and an /init.d/inn2 start on node moving would 
probably deal the solution.


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.

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


I think to do a test for B solution but would like to know if it is a 
good way to do or not.
Solution F seems OK, but some messages could be lost.

Any advice would be appreciated by the new INN2 user I am.
 
Thanks

Geek Marc

Technical Details
Message-ID: <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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp3-2.free.fr!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4ef154d9$0$8820$426a74cc@news.free.fr>
Subject: [request] INN2 and HA/DRBD-active-passive ? how to build a HA solution for INN2 ?
Date: Wed, 21 Dec 2011 03:39:05 +0000
From: Geek Marc <geekmarcNOSPAM@gmNOSPAMail.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!usenet-fr.net!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp3-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: 79
Organization: Guest of ProXad - France
NNTP-Posting-Date: 21 Dec 2011 04:39:05 MET
NNTP-Posting-Host: 88.186.228.246
X-Trace: 1324438745 news-2.free.fr 8820 88.186.228.246:58551
X-Complaints-To: abuse@proxad.net
X-Original-Bytes: 3823