Article View: news.software.nntp
Article #45239Re: News routing software
From: Joe Greco
Date: Sat, 25 Mar 2000 00:00
Date: Sat, 25 Mar 2000 00:00
116 lines
6455 bytes
6455 bytes
In news.software.nntp article <38dd5564$1_1@news.nntpserver.com>, mouse@NOSPAM.nibble.net wrote: :On 25 Mar 2000 16:14:43 -0600 jgreco@ns.sol.net (Joe Greco) wrote: :>Diablo's "external expire program" is fast and efficient, and at :>some future date will probably not be external (please note that I'm :>one of the folks doing hacking on Diablo, and of those who are :>actively hacking on it, I've probably been using it the longest... :>over three years). : :My design theory was to use data structures that do not need to be :expired. Not even internally. On something like a history queue :why should you have to add to the end and delete from the head. Why :not just loop back to the head and start overwriteing on top of the :oldest record. It seemed like the right way to do it and I wanted :to do it "right" from the start. Note that what I consider as "right" :may not be the same for you. The problem with this is that it becomes perilous to try to recover data correctly and safely, or you can do so but at the price of performance. Here's an example. You have a system that does a cyclical storage system. Presume you have a NULL separator to keep articles separate, in the Diablo or (early?) CNFS style. Think about the ramifications. If you want to read an article from spool, you get the history entry and fetch the location identifier. So far so good. You go to get the article. But is it really your article, or is it something that has overwritten the article you were trying to dig up? Okay, so you can try to expire history entries for old articles as they are being overwritten. Sloppy, inefficient, and s-l-o-w. Not good option. Or you can not worry about it and risk improper article retrieval. Or you can try variants, such as checking to see if it looks like a message, verifying the MID is what you were trying to retrieve. Of course, you still have to be damn careful, since you _must_ do atomic writes (and, inversely, atomic reads) unless you want to get into the perils of locking file regions - otherwise, you may hammer articles as they are being read. You also require a decent (kernel) threads implementation, because you don't want a writer to block the entire process. (Ick). I could start delving into the other 101 reasons I chose not to write my own news server package, but I'm tired. :>Having one config file is a bit of a pain, it was one of the things :>I despised about Cyclone after a while. : :Would having the ability to include other config files help? In :such a case you could, for example, have one global settings and one :feeds.conf file. Why does having everything in one file become a :pain. I felt that that way INN does it is a pain. To setup a feed :you have to edit several config files, incoming.conf, innfeed.conf, :and newsfeeds (I think). That is what I wanted to avoid. I think most anyone setting up any serious number of feeds will end up writing some custom tools to implement global policies anyways, and it's far easier to see what's going on without the data being spread throughout a 100K file. :>Diablo is nice and modular, and can be made to pull unusual tricks :>with minimal effort... such as adding UUCP batching capabilities. : :You are the author. The authors of INN say the same thing, but dumb :people like me have a hard time getting over the inital learning :curve. I do plan on adding an <FeedExternal> setting block that would :pipe a feed into an external program. The external program would just :receive the feed via stdin. Is that how your uucp batcher works? If :so your uucp batcher may even be used by my software. I don't like piping gobs of data, so, no, I pass spool location identifiers and deal with it as a variation on dnewslink. :>As far as Diablo's documentation, it's mostly there in the config >files, which is where I happen to like the detailed stuff to be. >Finding that shouldn't be too hard, and is outlined in the >documentation included with the source. :> :>In other words, I don't think you tried at all. : :I tried Diablo some time ago. Knowning what I know now I think I :could get it running, but at that time it was just too much of a :learning curve and I didn't want to spend that much time on it. : :I didn't mean to insult Diablo or INN. I just don't personaly like :the way they are setup. I like things simple so I'm writing my own. :Have you tried mine? Shit, no, and I'm not likely to. I switched to Diablo because I knew Matt's history and I trusted his engineering. He's been well known since before the days he was writing compilers. Still, Matt's stuff wasn't perfect. Some of us out here have really heavy requirements. Some of my spools store a hundred million articles. Some of my spools store two terabytes. I've both helped Matt scale up there (like the 24 million Message-ID's I handed him so he could build a low-collision hash function for history) and done some of the scaling myself. Some of my machines accept news at rates peaking at 1000 articles per second. Many of my machines have hundreds of simultaneous NNTP streams. I can't afford to see any of that hosed up for any period of time, even if I believed that your software could do any of that - which, quite frankly, I don't, seeing as how it took a relative genius like Matt over a year to come even close to getting it right. Running news should have some learning curve attached to it. There are too many Clue-- admins running around out there. You should have to do some minimal work to set up news. ... JG
Technical Details
Message-ID:
<38dd8cfb$0$1381@news.execpc.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.mbox.zip!not-for-mailReferences:
<38dd3a56$0$1373@news.execpc.com> <38dd5564$1_1@news.nntpserver.com>Show Full Headers
Complete Article Headers
Message-ID: <38dd8cfb$0$1381@news.execpc.com> Subject: Re: News routing software Date: Sat, 25 Mar 2000 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <38dd3a56$0$1373@news.execpc.com> <38dd5564$1_1@news.nntpserver.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.mbox.zip!not-for-mail X-Deja-AN: 602451619 Sender: jgreco@earth.execpc.com X-Trace: aa947GC]WWo<>B:AIRX>eabfNiaEHUgJgRYcgIRLSUEmD25fHC;ikHaiKLi?R?M:?n21Vkhja922fl=jlCRBl;3c4dTgmFn@Shg Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp X-Complaints-To: abuse@execpc.com