Thread View: news.software.nntp
11 messages
11 total messages
Started by Michael Grimm
Sun, 09 Jan 2011 21:24
2 readers, xrefslave, and HOWTO
Author: Michael Grimm
Date: Sun, 09 Jan 2011 21:24
Date: Sun, 09 Jan 2011 21:24
18 lines
1722 bytes
1722 bytes
Hi -- I'd like to run two reader servers on seperate hardware, and I'd like to access both reader servers in a round-robin scenario. Meaning: if one server fails, the other may continue to serve without interference ... Both reader servers are fed by independent feeders. I do know the xrefslave and nnrpdposthost parameters in inn.conf, but I'm unaware of what might happen if the master server, not the slave, will fail and the slave reader will be fed from from another feeder? What will happen, if the master will become available later? What are your recommendations? Regards, Michael -- to let
Re: 2 readers, xrefslave, and HOWTO
Author: Ralf Döblitz
Date: Mon, 10 Jan 2011 11:12
Date: Mon, 10 Jan 2011 11:12
35 lines
3175 bytes
3175 bytes
Michael Grimm <trashcan@odo.in-berlin.de> wrote: > Hi -- > > I'd like to run two reader servers on seperate hardware, and I'd like > to access both reader servers in a round-robin scenario. Meaning: if one > server fails, the other may continue to serve without interference ... xrefslave should ensure consistence in that scenario. > Both reader servers are fed by independent feeders. Why? Either you feed both feeders as xrefslaves from a master feeder or one must be an xrefslave of the other. Otherwise you will not be able to keep article numbering consistent. > I do know the xrefslave and nnrpdposthost parameters in inn.conf, but > I'm unaware of what might happen if the master server, not the slave, > will fail and the slave reader will be fed from from another feeder? > What will happen, if the master will become available later? The master will try to feed, the slave will refuse those articles, nothning bad happens - as long as you ensure that both masters use identical article numbering. > What are your recommendations? Use just one feeder. You will need exactly one instance that defines article numbering, so there will always be a SPOF. Ralf -- Ralf Döblitz * Schapenstraße 6 * 38104 Braunschweig * Germany Phone: +49-531-2361223 Fax: +49-531-2361224 mailto:doeblitz@doeblitz.net Homepage: http://www.escape.de/users/selene/ Mit UTF-8 kann man gleichzeitig äöüßÄÖÜæœłø‱¼½¾¤¹²³¢€£¥¶§¬÷×±©®™¡¿ verwenden…
Re: 2 readers, xrefslave, and HOWTO
Author: Michael Grimm
Date: Wed, 12 Jan 2011 18:51
Date: Wed, 12 Jan 2011 18:51
53 lines
3750 bytes
3750 bytes
Ralf Döblitz <doeblitz@doeblitz.net> wrote: > Michael Grimm <trashcan@odo.in-berlin.de> wrote: >> I'd like to run two reader servers on separate hardware, and I'd like >> to access both reader servers in a round-robin scenario. > > xrefslave should ensure consistence in that scenario. > >> Both reader servers are fed by independent feeders. > > Why? Either you feed both feeders as xrefslaves from a master feeder > or one must be an xrefslave of the other. Otherwise you will not be > able to keep article numbering consistent. I was thinking about syncing article numbers between both readers only, because my feeders are run by a minimal active file aka control.ALL and junk only. Thus, syncing feeder(s) and reader(s) won't work anyway, if I'm not mistaken ... >> I do know the xrefslave and nnrpdposthost parameters in inn.conf, but >> I'm unaware of what might happen if the master server, not the slave, >> will fail and the slave reader will be fed from from another feeder? >> What will happen, if the master will become available later? > > The master will try to feed, the slave will refuse those articles, > nothning bad happens - as long as you ensure that both masters use > identical article numbering. ... therefore my post had been misleading, sorry. But your reply ... >> What are your recommendations? > > Use just one feeder. You will need exactly one instance that defines > article numbering, so there will always be a SPOF. ... did help me in understanding that there always will be a SPOF in a round-robin scenario as outlined above. My current plan is using both feeders to feed one master reader which in turn exclusively feeds the slave reader server. That should keep my article numbers in sync. But that master reader server will screw my round-robin scenario as long there's no automatic role switching (master <--> slave) in place. At least I don't know of one. Thus, all ideas, suggestions are highly welcome. It's a pity that my newsreader needs articles for running under optimal conditions, although there's a config option for broken xref headers (broken_xref), but I haven't had the chance to test that, yet. Thanks and regards, Michael -- to let
Re: 2 readers, xrefslave, and HOWTO
Author: Jeffrey M. Vinocur
Date: Thu, 13 Jan 2011 10:00
Date: Thu, 13 Jan 2011 10:00
47 lines
3266 bytes
3266 bytes
In article <igkt81$1q6p$3@de-l.enfer-du-nord.net>, Michael Grimm <trashcan@odo.in-berlin.de> wrote: > >I was thinking about syncing article numbers between both readers only, >because my feeders are run by a minimal active file aka control.ALL and >junk only. Thus, syncing feeder(s) and reader(s) won't work anyway, if >I'm not mistaken ... Correct. >My current plan is using both feeders to feed one master reader which in >turn exclusively feeds the slave reader server. That should keep my >article numbers in sync. But that master reader server will screw my >round-robin scenario as long there's no automatic role switching (master ><--> slave) in place. At least I don't know of one. Thus, all ideas, >suggestions are highly welcome. Well, if either reader server fails, having clients silently be directed to the other one will work fine; the part that doesn't work is the feeder->slave reader feeds. However, the feeders will happily queue up articles in this scenario, so you could (at least in principle) automate some infrastructure where the slave reader server performs frequent checks of the master's existence, and if necessary promotes itself to independent functioning. The second half requires some doing, in that the slave reader server would have to turn off xrefslave and then rearrange the feeds (in such a way to also get the queued articles); perhaps the easiest way to arrange this for what should be an unusual occurrence would be to have the former-slave use pullnews or similar. This system would cope fine with brief disruptions (e.g. you need to take the master reader server down for a few minutes to do some maintenance) with nothing visible to the readers except a delay in incoming articles during that time. However, if the failure is dramatic enough to require promotion of the slave server, it will require manual intervention to recover from (and could be quite problematic for clients if the former-master recovers on its own as then the two servers will have different sets of articles and article numbers). -- Jeffrey M. Vinocur jeff@litech.org
Re: 2 readers, xrefslave, and HOWTO
Author: Michael Grimm
Date: Thu, 13 Jan 2011 20:43
Date: Thu, 13 Jan 2011 20:43
54 lines
3862 bytes
3862 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote: > In article <igkt81$1q6p$3@de-l.enfer-du-nord.net> Michael Grimm <trashcan@odo.in-berlin.de> wrote: >> My current plan is using both feeders to feed one master reader which >> in turn exclusively feeds the slave reader server. That should keep >> my article numbers in sync. But that master reader server will screw >> my round-robin scenario as long there's no automatic role switching >> (master <--> slave) in place. At least I don't know of one. Thus, all >> ideas, suggestions are highly welcome. > > Well, if either reader server fails, having clients silently be > directed to the other one will work fine; the part that doesn't work > is the feeder->slave reader feeds. However, the feeders will happily > queue up articles in this scenario, so you could (at least in > principle) automate some infrastructure where the slave reader server > performs frequent checks of the master's existence, and if necessary > promotes itself to independent functioning. > > The second half requires some doing, in that the slave reader server > would have to turn off xrefslave and nnrpdposthost plus a neccessary restart of innd. That promotion could be done, but needs to work bullet proof. > and then rearrange the feeds (in such a way to also get the queued > articles); perhaps the easiest way to arrange this for what should be > an unusual occurrence would be to have the former-slave use pullnews > or similar. Your 'similar' triggerd UUCP ;-) I could set of an UUCP feed from both feeders to the slave reader. Those rnews batches will be removed from the slave server's UUCP queue on a regular basis, unless the slave server triggers a down master. Ok, pullnews will work as well, but I love UUCP. > However, if the failure is dramatic enough to require promotion of the > slave server, it will require manual intervention to recover from (and > could be quite problematic for clients if the former-master recovers > on its own as then the two servers will have different sets of > articles and article numbers). Well, it seems to be a much more difficult task than anticipated if one wants to run a fail-over scenario with distinct reader servers. I might have to re-think my plan ... Anyway, I'd like to thank you for your post, now I do have more insight in the complexity of running server and reader farms. How do the big usenet providers cope with the issue of keeping those millions of article numbers in sync? Regards, Michael -- to let
Re: 2 readers, xrefslave, and HOWTO
Author: Jeffrey M. Vinocur
Date: Fri, 14 Jan 2011 10:03
Date: Fri, 14 Jan 2011 10:03
15 lines
1622 bytes
1622 bytes
In article <igno4j$c40$1@de-l.enfer-du-nord.net>, Michael Grimm <trashcan@odo.in-berlin.de> wrote: > >How do the big usenet providers cope with the issue of keeping >those millions of article numbers in sync? No idea. (I believe most of them use custom in-house software. But even so the algorithmic difficulty of the problem remains.) -- Jeffrey M. Vinocur jeff@litech.org
Re: 2 readers, xrefslave, and HOWTO
Author: Russ Allbery
Date: Fri, 14 Jan 2011 19:45
Date: Fri, 14 Jan 2011 19:45
28 lines
2699 bytes
2699 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Anyway, I'd like to thank you for your post, now I do have more insight
> in the complexity of running server and reader farms. How do the big
> usenet providers cope with the issue of keeping those millions of
> article numbers in sync?
Run a separate numbering service that maintains transactional integrity
across all incoming articles and ensures that all articles get assigned a
unique number, and then have all their reader servers get the numbering
information from that service. (Just a guess, but it's how I'd do it if I
were designing this at that kind of scale.)
INN doesn't have the facilities to do that sort of thing, since each
server maintains its own separate numbering information. xrefslave gets
you part of the way there, but of course doesn't work with multiple
incoming feeders and also has some problems with articles that arrive out
of order. A truly robust solution needs additional network communication
so that readers don't make available article 3000 or indicate that it has
arrived until they've gotten article 2999, and INN doesn't have those
facilities or a way of communicating that information inside a server
pool.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: 2 readers, xrefslave, and HOWTO
Author: Julien ÉLIE
Date: Fri, 14 Jan 2011 23:30
Date: Fri, 14 Jan 2011 23:30
16 lines
1811 bytes
1811 bytes
Hi Michael,
> I'd like to run two reader servers on seperate hardware, and I'd like
> to access both reader servers in a round-robin scenario. Meaning: if one
> server fails, the other may continue to serve without interference ...
Maybe you could have a look at the sections about distributed architectures
here, based upon either a shared NFS spool or article replication:
http://web.inter.NL.net/users/Elena.Samsonova/unix/INN/v2.3/architectures.html
--
Julien ÉLIE
« La perfection est atteinte non pas lorsqu'il n'y a plus rien à
ajouter, mais lorsqu'il n'y a plus rien à retirer. »
(Saint-Exupéry)
Re: 2 readers, xrefslave, and HOWTO
Author: John F. Morse
Date: Sat, 15 Jan 2011 00:26
Date: Sat, 15 Jan 2011 00:26
38 lines
2995 bytes
2995 bytes
Russ Allbery wrote: > Michael Grimm <trashcan@odo.in-berlin.de> writes: > >> Anyway, I'd like to thank you for your post, now I do have more insight >> in the complexity of running server and reader farms. How do the big >> usenet providers cope with the issue of keeping those millions of >> article numbers in sync? >> > > Run a separate numbering service that maintains transactional integrity > across all incoming articles and ensures that all articles get assigned a > unique number, and then have all their reader servers get the numbering > information from that service. (Just a guess, but it's how I'd do it if I > were designing this at that kind of scale.) > Perhaps Highwinds' Hurricane is one solution? http://keys.highwinds-software.com/products/hurricane.php > INN doesn't have the facilities to do that sort of thing, since each > server maintains its own separate numbering information. xrefslave gets > you part of the way there, but of course doesn't work with multiple > incoming feeders and also has some problems with articles that arrive out > of order. A truly robust solution needs additional network communication > so that readers don't make available article 3000 or indicate that it has > arrived until they've gotten article 2999, and INN doesn't have those > facilities or a way of communicating that information inside a server > pool. > -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: 2 readers, xrefslave, and HOWTO
Author: Michael Grimm
Date: Tue, 18 Jan 2011 17:46
Date: Tue, 18 Jan 2011 17:46
30 lines
2736 bytes
2736 bytes
Russ Allbery <rra@stanford.edu> wrote: > Michael Grimm <trashcan@odo.in-berlin.de> writes: >> How do the big usenet providers cope with the issue of keeping those >> millions of article numbers in sync? [idea about separate numbering service] > INN doesn't have the facilities to do that sort of thing, since each > server maintains its own separate numbering information. xrefslave > gets you part of the way there, but of course doesn't work with > multiple incoming feeders and also has some problems with articles > that arrive out of order. A truly robust solution needs additional > network communication so that readers don't make available article > 3000 or indicate that it has arrived until they've gotten article > 2999, and INN doesn't have those facilities or a way of communicating > that information inside a server pool. JFTR: I did define a master reader being fed exclusively, and a slave reader with xrefslave pointing to master reader. That will be sufficient redundancy for my purposes. Interestingly, my iPhone newsreader NewsTap can deal with different servers and numbering information quite well. One group list and view, and simultaneous fetching from all configured newsservers ... Thanks and regards, Michael -- to let
Re: 2 readers, xrefslave, and HOWTO
Author: Michael Grimm
Date: Tue, 18 Jan 2011 17:59
Date: Tue, 18 Jan 2011 17:59
14 lines
1758 bytes
1758 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Maybe you could have a look at the sections about distributed > architectures here, based upon either a shared NFS spool or article > replication: > http://web.inter.NL.net/users/Elena.Samsonova/unix/INN/v2.3/architectures.html That's overkill for my sceanario, as long as I'm the only user of my readers ;-) Regards, Michael -- to let
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