Thread View: news.software.nntp
10 messages
10 total messages
Started by float
Tue, 12 Jun 2001 21:46
slave servers with INN
Author: float
Date: Tue, 12 Jun 2001 21:46
Date: Tue, 12 Jun 2001 21:46
21 lines
1644 bytes
1644 bytes
I'd like to set up some news servers soon. I get the impression that my site's requirements are a bit unusual, so I'd like to get some guidance from the experts. We have a feeder machine living at our ISP, and a reader machine here. We'd like to replace the reader with two readers, for failover purposes. For obvious reasons, we'd like the reader boxes to have identical article numbers. Also, due to the bandwidth considerations, we'd like to have only one reader fed from the feeder, and have it feed the other reader. What's the best way to do this? We're leaning towards INN, but not religiously. (Though we are religious about open source.) Thanks in advance. -- Ben ENOSIG
Re: slave servers with INN
Author: Russ Allbery
Date: Wed, 13 Jun 2001 00:11
Date: Wed, 13 Jun 2001 00:11
39 lines
2701 bytes
2701 bytes
float <float@panix.com> writes:
> We have a feeder machine living at our ISP, and a reader machine here.
> We'd like to replace the reader with two readers, for failover purposes.
> For obvious reasons, we'd like the reader boxes to have identical
> article numbers. Also, due to the bandwidth considerations, we'd like
> to have only one reader fed from the feeder, and have it feed the other
> reader.
> What's the best way to do this? We're leaning towards INN, but not
> religiously. (Though we are religious about open source.)
Set up a second reader, set xrefslave to true in inn.conf, and then I'd
set up an nntpsend feed from the first reader to the second (feed to a
file in newsfeeds with Tf,Wnm and then run nntpsend from cron). The
advantage of nntpsend over innfeed is that all of the articles will arrive
in order; the disadvantage is that the second reader will lag behind the
first in new articles, so if you switch from the first reader server to
the second very quickly, it's possible that some news reading clients will
become confused.
If you run nntpsend from cron every minute, though, I doubt you'll have
problems, and I find that setup more reliable provided that the amount of
news that you take isn't that huge. It may not work for a full feed.
Oh, and make sure that nnrpposthost or whatever the actual name of the
config option is set on the second reader server to point to the first
reader server.
I'm running this configuration right now and it works great.
(This is all with INN.)
--
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: slave servers with INN
Author: those who know me have no need o...
Date: Wed, 13 Jun 2001 01:48
Date: Wed, 13 Jun 2001 01:48
74 lines
4066 bytes
4066 bytes
<slrn9id3e5.cha.float@panix1.panix.com> divulged: >We have a feeder machine living at our ISP, and a reader machine >here. when you say "a reader machine" do you mean that there's a system that your people log into on which they run newsreaders which makes use of your isp's news server? if so i'd suggest an nfs server (some memory, plenty of disk space) for home directories and a couple of systems (plenty of memory, not much disk space) for login/newsreader access, and a local cache (plenty of memory, some disk space) acting as your reader server -- some or all of which can be fronted by a l4 switch or round-robin dns. otherwise... what are you running now? what size feed are you taking? what is the reader load? do you need to get this working quickly or do you have some time? if you have the time and no other experience i'd suggest that you install each canidate on a test system (or systems) to get a feel for each. >We'd like to replace the reader with two readers, for failover >purposes. round-robin dns or a layer-4 switch to distribute the load? the l4 switch can introduce a single point of failure, but simplistic rr dns can lead a client to attempt a connection to a machine that is down. >we'd like the reader boxes to have identical article numbers. this requirement reintroduces a single point of failure. >due to the bandwidth considerations, we'd like to have only one reader >fed from the feeder, and have it feed the other reader. this requirement reintroduces a single point of failure. >What's the best way to do this? We're leaning towards INN, but not >religiously. (Though we are religious about open source.) software, e.g., diablo vs inn, is likely to be somewhat religious. (see <http://www.newsreaders.com/unix/servers.html> for a more complete list.) the traditional setup is to have transit servers, a numbering server, and reader servers. the number of transit and reader servers depends on your transit and reader load (respectively), but there's only the one numbering server. when your needs are basic these are all combined (or performed if you prefer) on one system. as your needs grow you begin to move servers onto their own systems. since you didn't mention wanting failover for your feeds it would seem that a single transit server would be sufficient, and most likely that would also be the numbering server. the usual arrangement calls for the numbering server to maintain only enough article article store as is necessary to keep the reader servers fed, and each reader server (often called a spooler) maintains it's own long-term article store (aka spool). this can be done easily using diablo or inn, and requires the largest number of high capacity disk drives but delivers the highest performance to the readers. another arrangement is to have the numbering server maintain the long-term article store, delivering articles to the reader servers on demand. this can be done easily using diablo, or diablo and newscache/nntpcache, or inn and newscache/nntpcache, and requires the least number of high capacity disk drives but delivers the lowest performance to the readers. (the performance can be quite acceptible however.) -- okay, have a sig then
Re: slave servers with INN
Author: Alexis Rosen
Date: Wed, 13 Jun 2001 22:46
Date: Wed, 13 Jun 2001 22:46
114 lines
6616 bytes
6616 bytes
Let me help out here, since I made Ben dive into this. (Though I may not be able to stick around for everything Ben will.) not-a-real-address@usa.net (those who know me have no need of my name) writes: ><slrn9id3e5.cha.float@panix1.panix.com> divulged: >>We have a feeder machine living at our ISP, and a reader machine >>here. To be precise, a top-200 (it was top-100 before we started cleaning out spam using cleanfeed, and the moose before we finally retired it) news feeder box lives in our space at a very high-bandwidth colo facility. It runs some hacked-on INN+CNFS from a couple of years ago. It's entirely satisfactory even now, though I expect we'll upgrade it to give it more disk and CPU after we're done with the readers, to to stay ahead of the curve. >when you say "a reader machine" do you mean that there's a system that >your people log into on which they run newsreaders which makes use of >your isp's news server?[...] No, we are the ISP. Our reader box is another INN box with HW RAID running a dev version of INN 2.3, plus the "news Gizmo" (http://www.panix.com/gizmo), a good portion of which is now integrated into INN 2.4. >otherwise... >what are you running now? what size feed are you taking? what is the >reader load? See above. The feeder gets everything, from a number of top-200 peers but we only pass about 7-8k groups to the reader box, about 350-450k articles, about 11-15GB/day. Reader load is up to 100 readers at a time, but figure on that growing by a factor of 4 over the next year (we'll add more slaves as necessary, too). >do you need to get this working quickly or do you have some time? if >you have the time and no other experience i'd suggest that you install >each canidate on a test system (or systems) to get a feel for each. I've got tons of experience, but not in the last 18 months. Ben has much less. I can help a bit. We have some time to get this right. But I don't want to build a bunch of different boxes. I know how to do this, at least reasonably, with INN, so if we don't see better ideas (Russ has already pointed out a couple of things I want to think about- I'd forgotten entirely about the out-of-order problem) we'll just go ahead with that. >>We'd like to replace the reader with two readers, for failover >>purposes. >round-robin dns or a layer-4 switch to distribute the load? the l4 >switch can introduce a single point of failure, but simplistic rr dns >can lead a client to attempt a connection to a machine that is down. I've got a handle on this... it's not what we need to research. L4 is clearly the better way to go, but due to the point below it may not add much. >>we'd like the reader boxes to have identical article numbers. >this requirement reintroduces a single point of failure. Do you understand what would happen if there weren't identical article number?!? It is my belief that this is an absolute requirement. If I'm wrong about this please explain. >>due to the bandwidth considerations, we'd like to have only one reader >>fed from the feeder, and have it feed the other reader. >this requirement reintroduces a single point of failure. Not a problem. Part of the project is to have a plan in place to quickly convert one of the slaves to master status. This can even be automated though it would be ugly to do (and test). And we already have a single point of failure. >since you didn't mention wanting failover for your feeds it would seem >that a single transit server would be sufficient, and most likely that >would also be the numbering server. We'll get to redundant feeders later this year, or early next, but it's not a big deal right now. That box is very reliable and easy to service. >the usual arrangement calls for the numbering server to maintain only >enough article article store as is necessary to keep the reader servers >fed, and each reader server (often called a spooler) maintains it's own >long-term article store (aka spool). this can be done easily using >diablo or inn, and requires the largest number of high capacity disk >drives but delivers the highest performance to the readers. The interesting question is whether to xref slave from feeder to reader #1 (which implies "chaining" xref slaving from reader #1 to reader #2- this is the part I have somewhat less confidence about, though I think it'll work), or from reader #1 to reader #2. Which would make life easier if reader #1 died and we had to start going to reader #2? I don't see a huge difference, but then again, I haven't built this yet. >another arrangement is to have the numbering server maintain the >long-term article store, delivering articles to the reader servers on >demand. this can be done easily using diablo, or diablo and >newscache/nntpcache, or inn and newscache/nntpcache, and requires the >least number of high capacity disk drives but delivers the lowest >performance to the readers. (the performance can be quite acceptible >however.) Cheap is attractive, but unlike the single points of failure you pointed out above, this one is NOT easily overcome. With redundant readers with their own spool, a few minutes can turn the slave unto the master. The same is not true of the single-store-many-cache approach. Someday if our volume warrants it we might tack cache boxes onto the readers, but first we have to have redundant readers with spools. So for now this solution is out, though I'd expect to implement caches for reader boxes #3,4,5, etc. /a
Re: slave servers with INN
Author: Aidan Cully
Date: Wed, 13 Jun 2001 23:58
Date: Wed, 13 Jun 2001 23:58
15 lines
1706 bytes
1706 bytes
Hi Alexis!!! In news.software.nntp, alexis@panix.com (Alexis Rosen) wrote: > No, we are the ISP. Our reader box is another INN box with HW RAID running > a dev version of INN 2.3, plus the "news Gizmo" (http://www.panix.com/gizmo), > a good portion of which is now integrated into INN 2.4. *ahem*... "News Shogun", http://www.panix.com/shogun/ There is no code shared between the News Shogun and INN, anymore. Before INN had the readers.conf file, the old News Gizmo (it's changing names) needed to have some facility to identify remote users, but even that shares no code with the readers.conf file that INN uses today. --aidan
Re: slave servers with INN
Author: Alexis Rosen
Date: Thu, 14 Jun 2001 21:54
Date: Thu, 14 Jun 2001 21:54
15 lines
1540 bytes
1540 bytes
aidan@panix.com (Aidan Cully) writes: >Hi Alexis!!! >In news.software.nntp, alexis@panix.com (Alexis Rosen) wrote: >> No, we are the ISP. Our reader box is another INN box with HW RAID running >> a dev version of INN 2.3, plus the "news Gizmo" (http://www.panix.com/gizmo), >> a good portion of which is now integrated into INN 2.4. >*ahem*... "News Shogun", http://www.panix.com/shogun/ Sorry, I didn't realize that link & name were up yet. /a
Re: slave servers with INN
Author: those who know me have no need o...
Date: Fri, 15 Jun 2001 19:54
Date: Fri, 15 Jun 2001 19:54
66 lines
4351 bytes
4351 bytes
<9g8qg6$c4c$1@panix1.panix.com> divulged: >I've got tons of experience, but not in the last 18 months. Ben has much >less. I can help a bit. We have some time to get this right. not that much has changed in that timeframe. oh sure inn has had a major release, and there are some new problems with tradspool expires taking forever, but nothing earthshaking. there is much to be said for sticking with what you know, and it can certainly be as simple as russ describes. if your client base generally consists of newsbrowsers (clients that disconnect and reconnect rapidly) and your load sharing solution doesn't guarantee delivering the client to the same reader (baring its failure) a delayed feed like russ describes _can_ be a problem, but he hasn't seen enough problem reports that he mentioned it so perhaps you wouldn't either. learning something new (e.g., diablo) can be quite rewarding as well. did you catch joe greco's presentation at sane2000? it's online at <http://www.nntp.sol.net/sane2000/>. >>>we'd like the reader boxes to have identical article numbers. >>this requirement reintroduces a single point of failure. >Do you understand what would happen if there weren't identical article >number?!? It is my belief that this is an absolute requirement. If I'm >wrong about this please explain. i agree. i just wanted to point out that adding another reader for "failover" purposes, i.e., to eliminate a single reader as a point of failure, you end-up creating another failure point. (so far there are no redundant numbering mechanisms -- or at least none that have come to my attention. i've got a c++/corba design for doing it, but the transaction rate is high enough that it's not nearly as simple as i'd hoped, and a couple of potential deadlocks i haven't figured a way to eliminate.) >>>due to the bandwidth considerations, we'd like to have only one reader >>>fed from the feeder, and have it feed the other reader. >Part of the project is to have a plan in place to quickly convert one of >the slaves to master status. This can even be automated though it would be >ugly to do (and test). And we already have a single point of failure. this can be handled by having all spoolers set to cross-feed each other. then configure backup or delayed feeds (from the numbering server) to all spoolers except the primary, or failing that let the l4 switch (or a failover dns strategy) maintain a feed to a single machine. >Cheap is attractive, but unlike the single points of failure you pointed >out above, this one is NOT easily overcome. With redundant readers with >their own spool, a few minutes can turn the slave unto the master. indeed. so far i see the primary feature of distributed readers chaining from central spoolers is in dealing with the advent of newsbrowsers, i.e., load management. an effect of which is that you save disk space (compared to the traditional reader/spooler combo), which was the main reason i included it in my response. since your readers aren't getting a full feed and your client load is expected to be low this probably isn't significant. still, give joe's presentation a read, it might change your mind (at least somewhat). -- okay, have a sig then
Re: slave servers with INN
Author: float
Date: Wed, 27 Jun 2001 23:21
Date: Wed, 27 Jun 2001 23:21
22 lines
1652 bytes
1652 bytes
In article <9gdp660mkm@enews2.newsguy.com>, those who know me have no need of my name wrote: > > not that much has changed in that timeframe. oh sure inn has had a major > release, and there are some new problems with tradspool expires taking > forever, but nothing earthshaking. Speaking of releases, which version of INN do you recommend using for this project? 2.3.2 or 2.4? I don't even see 2.4 on the ISC's website, so I'm assuming 2.3.2, but I'd still like to know what you (collectively) think. Also, what overview storage method is best these days, and what are its I/O characteristics? Thanks again. -- Ben ENOSIG
Re: slave servers with INN
Author: Jeffrey M. Vinocur
Date: Thu, 28 Jun 2001 18:19
Date: Thu, 28 Jun 2001 18:19
21 lines
1678 bytes
1678 bytes
In article <slrn9jkqkn.otu.float@panix1.panix.com>, <float@panix.com> wrote: > >I don't even see 2.4 on the ISC's website 2.4 is the "CURRENT" snapshot avaiable from the ftp site (2.3.3 is the "STABLE" snapshot). >Also, what overview storage method is best these days, and what are >its I/O characteristics? Err, if there were a "best" everybody would use it, and there'd be no point in having several. You have to pick the one that best suits you. Read the buffindexed.conf and ovdb.conf manpages and see what you think. -- Jeffrey M. Vinocur jeff@litech.org
Re: slave servers with INN
Author: bill davidsen
Date: Mon, 09 Jul 2001 19:20
Date: Mon, 09 Jul 2001 19:20
57 lines
3648 bytes
3648 bytes
In article <9g8qg6$c4c$1@panix1.panix.com>,
Alexis Rosen <alexis@panix.com> wrote:
| >>we'd like the reader boxes to have identical article numbers.
|
| >this requirement reintroduces a single point of failure.
|
| Do you understand what would happen if there weren't identical article
| number?!? It is my belief that this is an absolute requirement. If I'm
| wrong about this please explain.
|
| >>due to the bandwidth considerations, we'd like to have only one reader
| >>fed from the feeder, and have it feed the other reader.
|
| >this requirement reintroduces a single point of failure.
|
| Not a problem. Part of the project is to have a plan in place to quickly
| convert one of the slaves to master status. This can even be automated
| though it would be ugly to do (and test). And we already have a single point
| of failure.
| The interesting question is whether to xref slave from feeder to reader #1
| (which implies "chaining" xref slaving from reader #1 to reader #2- this
| is the part I have somewhat less confidence about, though I think it'll
| work), or from reader #1 to reader #2. Which would make life easier if
| reader #1 died and we had to start going to reader #2? I don't see a huge
| difference, but then again, I haven't built this yet.
If you use the remote machine as the numbering server, all numbers are
the same, and the readers can feed each other. So then:
master ________________________________reader #1
| (realtime innfeed) /|\
| |
| |
| |
| \|/
_______________________________reader #2
(delayed innxmit)
So every article is offered to two reader machines, but because they
feed each other the delayed (5-20 sec?) feed should be all refused. Now,
if reader #1 dies, the feed shifts with no intervention to #2, and when
#1 comes back up #2 will catch him up. The nice thing is that you can
run a fairly small queue on the master, to prevent the master from
trying too hard to catch up.
Obviously all reader machines are xref slaves. This does work, at
least with INN.
--
bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
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